this is the first time I have programmed with FBA creator, LUA and a PPC.
I'd like to thank you for the introduction to LUA and the brilliant FBA IDE. I had a lot of fun playing with it.
I'm really looking forward to writing something useful and seeing FBA improve further.
The 'game' I have written is just an experiment with tables, event handling and PPC screen handling.
It is a maze generator / solver for QVGA PPCs. I suspect it will make a mess of the screen on anything else.
I built the program using Normal screen orientation and determine the direction to draw after start, rather than building it for one way or the other. This added flexibility for me.
When you start it, it should draw the main play area in either portrait or landscape layout, depending on your handheld.
If you want to see the different behaviour on your PC, you switch from Normal to CW/CCW 90 in the FBA IDE build settings and run there or on an appropriate handheld (I have only one and it is landscape by default).
Tap New Maze to generate a new maze. Entrance at top-left. Exit at bottom-right.
Tap Solve Maze to watch the computer solve the maze.
Tap Play Maze and draw on the screen to trace a path through the maze, for fun.
Tap Bigger to make the maze area bigger. The default size is 9x9.
Tap Smaller to make the maze area smaller. The default size is 9x9.
Tap Finish to finish playing and exit.
The program is purposefully designed to generate and solve the maze slowly for visual effect.
I hope it useful to you.
Source code included. It was bigger than the 256K upload limit so I put it here:http://cid-df91554428a1b01a.skydrive.li ... |_v1.0.zip