Snake - Dev Thread [version April 14th]
As my first app for the Zen and first app written in Lua I made Snake. At the moment there is some more code in it than needed, but I made some preparations for thinks I want to add.
NEW: Pause using the power button
3 play modes
CHANGED: Bounds for touch
FIXED: Turning issue
TO DO: Create levels, independent user-set settings
(Un)known issues: -
New menu with settings for different block size and snake speeds.
Support for levels.
No sharp corners possible. After a turn there is always a straight part. Solved
The controls are at the moment done by touching the screen. Touching the top half or bottom half will change the direction to up or down and touching the left or right half will change the direction to left and right. Almost like that. But the boundary is now dynamic, between the middle of the screen and the snake it's its head.
Please let me know what you think.
Remarks version 0.9.3:
I still need to restyle the menu; ideas; suggestions and code is welcome.
Delete the 4 lines of code at line 371 to remove the hardcoded background now in place as a test for levels. Uncomment some of the lines above that code to get more walls.
In the menuMain() function you can change the speed of the snake if it too fast for you.
Update: Recently I (re)started playing games on my Zen. Ending up with playing snake for hours (in total...) But that's in the train, where I cannot edit the code. But maybe I will pick that up again soon.
Last edited by Zaffo; 03-27-2011 at 10:46 AM. Reason: Update added
|Thread Tools||Search this Thread|
All times are GMT -5. The time now is 01:54 PM.