User:Whodares/WiiBASIC

From WiiBrew
Jump to navigation Jump to search
WiiBASIC
General
Author(s)WhoDares
TypeUtility
Version0.2
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