In memory of Ben “bushing” Byer, who passed away on Monday, February 8th, 2016.

Difference between revisions of "User:Whodares/WiiBASIC"

From WiiBrew
Jump to navigation Jump to search
Line 6: Line 6:
 
| author      = [[User:Whodares|WhoDares]]
 
| author      = [[User:Whodares|WhoDares]]
 
| display    =  
 
| display    =  
| version    = 0.1
+
| version    = 0.2
 
| download    = N/A
 
| download    = N/A
 
| source      = N/A
 
| source      = N/A
Line 15: Line 15:
 
== About ==
 
== About ==
 
A BASIC system for the Wii, comprising of-
 
A BASIC system for the Wii, comprising of-
* A port of [http://sourceforge.net/projects/bscript/ BSCRIPT], by Ariya Hidayat
+
* A BASIC interpreter
* Extensions to support Wii devices/architecture
+
* Language extensions for Wii related features
 
* A development IDE
 
* A development IDE
  
  
 
== Current Status ==
 
== Current Status ==
Thanks to AerialX's SNAKE demo (video below). We've found several missing components to BSCRIPT, so I'm currently contemplating whether to try and implement the missing pieces, or to investigate porting a more complete interpreter.
+
After testing BSCRIPT, we found some flaws with the interpreter, and I am currently looking into other open source interpreters, and even the possibility of writing my own.
  
 
== Testing ==
 
== Testing ==
 
 
Testers (with my thanks): AerialX
 
Testers (with my thanks): AerialX
  
Line 30: Line 29:
 
See [[User:Whodares|my page]] for contact info
 
See [[User:Whodares|my page]] for contact info
  
== Example (Snake by AerialX) ==
 
  
<Youtube>o-RaE1qjI6A</Youtube>
+
== Screenshots ==
Sample game coded by AerialX. Was a great demo for showing speed and a good test of the language. Also shows the interpreter needs work before it will be of any real use. Watch this space
+
[[Image:WiiBASICintro.png]]
 +
 
  
== Example (Simple) ==
+
== Example (Simple using BSCRIPT version) ==
  
 
----
 
----
Line 84: Line 83:
 
next
 
next
 
</source>
 
</source>
 +
 +
 +
== Example (Snake by AerialX, using BSCRIPT version) ==
 +
 +
<Youtube>o-RaE1qjI6A</Youtube>
 +
Sample game coded by AerialX. Was a great demo for showing speed and a good test of the language. Also shows the interpreter needs work before it will be of any real use. Watch this space

Revision as of 01:04, 5 January 2009

WiiBASIC
General
Author(s)WhoDares
TypeUtility
Version0.2
Links
Download
Source
Peripherals
Wiimote4.svg USB Keyboard Local WiFi Internet Loads files from the Front SD slot

About

A BASIC system for the Wii, comprising of-

  • A BASIC interpreter
  • Language extensions for Wii related features
  • A development IDE


Current Status

After testing BSCRIPT, we found some flaws with the interpreter, and I am currently looking into other open source interpreters, and even the possibility of writing my own.

Testing

Testers (with my thanks): AerialX

If you would like to help testing, please feel free to contact me. See my page for contact info


Screenshots

WiiBASICintro.png


Example (Simple using BSCRIPT version)


wiimote_ir(1)

print ""
print "Welcome to the WiiBASIC example"
print "-------------------------------"

wiimote_check
wiimote_irx(1)

while wiimote_btnheld(1, 128) = 0
 wiimote_check

 xloc = wiimote_irx(1) / 16
 yloc = wiimote_iry(1) / 16

 if xloc < 0 then
  xloc = 0
 endif

 if yloc < 0 then
  yloc = 0
 endif

 cursor(xloc, yloc)
 print "X"
wend

cls

for i = 1 to 28
 cursor(1, 3)
 print ""
 print right$("Thank you for using WiiBASIC", i)
 print right$("----------------------------", i)
 for r = 1 to 600
  l = 0
 next
next

for i = 1 to 1000
 l = 0
next


Example (Snake by AerialX, using BSCRIPT version)

Sample game coded by AerialX. Was a great demo for showing speed and a good test of the language. Also shows the interpreter needs work before it will be of any real use. Watch this space