Wee Basic Log

version 0.4

To use the demo program,put Wee and all of the gif files and demo.txt into the root directory of your card.
Then load the demo in Wee Basic, press A or start to run and enjoy!
Don't forget to DLDI patch Wee for your card.

Fixed:

- bugs with nested ifs

added/changed

- neo splash screen
- sprites on both screens (must be gif files)
- backgrounds on both screens (must be gif files)
- can uses start or A to start a program running
- new commands:

loadspr number,screen,x,y,,width,height,file name (creates a sprite specified by the file name on the screen specified at the specified coordinates)
movspr number, screen, x,y (moves an existing sprite specified by the number to new coordinates x and Y on the screen)
delspr number, screen (deletes the specified sprite)
backgr screen, file name (creates a background on the specified screen with the gif file specified by the file name)


Notes:

- file names must be valid gif files and you must specify the full file name
- gif files must be kept in the root directory of your card
- don't try to move or delete sprites that you haven't created
- each screen has its own numbered sprites, so you can specify the number 1 for a sprite on the top and bottom screens but don't specify the same number for sprites on the same screen

(Look at the demo program for examples)


version 0.3

fixed:

- editor: return key swallowing a character
- editor: hopefully fixed remaining save bugs

added/changed:

- basic programs now have access to both DS screens and stylus input
- hide or show keyboard with commands 'keyhide' and 'keyshow'
- you must hide the keyboard before printing to, or using graphics on, the bottom screen
- cls, print, plot and line can now be used on both DS screens.  You must specify a screen number.  Syntax is now (s= screen number 0 or 1):

print s [at x,y] <string or variable>
plot s x,y,colour
line s x1,y1,x2,y2,colour
cls s

(s = screen number 0 or 1)

- stylus coordinates can be obtained using stx() and sty()

eg, let sx=stx() let sxy=sty()

- check whether bottom screen has been touched with stt()

eg, let touched=stt()
stt() returns 1 for touched and 0 for not touched

- new example showing the above features




Alpha 2

fixed:



added/changed:

- variable names are no longer restriced to 1 character.  Wee Basic now supports variable names of up to 8 characters, starting with a letter
but can otherwise use a combination of letters and numbers. eg test, a1, string12, a1b1, hello$
- one dimentional string and numerical arrays are now supported.  To use them you first have to declare them with the "dim" statement.
eg. dim a1(10) dim hello$(5)
- there is a maximum of 100 numerical and 100 string variables
- each string array is limited to 30 members
- each numerical array is limited to 100 members
-you can print at a particular position on the screen using "print at x,y", where each of x and y is a numerical expression 



Alpha 1c:


fixed:

- for/next error on first parse
- let statement not ignoring white space
- assingment not ignoring white space
- boolean functions for if statement not ignoring white space
- boolean expression for if statement returning incorrect value when using brackets
- print statement not handling variables that have a value which is a negative decimal

added/changed:

- added basic graphics: 
plot x,y,colour (x,y are coordinates; colour: 1-4 to display, 0 to erase).  See pong demo
line x1,y1,x2,y2,colour.  See pong demo

- added log(), sin(), cos() and tan(), sqrt()

- cursor moves to the top of the document after load file
- if there is an error in the basic code, cursor will move to the point of (or close to) the error after the program is ended to
make it easier to debug
- you can now use up and down (as well as left and right) to navigate in the editor




(c)opyright marovada 2007-2008
This program remains the property of marovada and is provded with no warranty whatsoeve.  Use at your own risk.


