Prev Previous Post   Next Post Next
Old 04-06-2010, 05:23 AM
Zaffo Zaffo is offline
Junior Member
Join Date: Mar 2010
Location: Holland
Posts: 21
Default 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.

Version 0.9.3
Pause using the power button
3 play modes
Multiple collectables
CHANGED: Bounds for touch
FIXED: Turning issue
TO DO: Create levels, independent user-set settings
(Un)known issues:

Version 0.9

New menu with settings for different block size and snake speeds.
Support for levels.
More collectables.
Known Issues:
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.
Have fun.

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.
Attached Images
File Type: png Snake v0.9.3 Game3.png (28.2 KB, 75 views)
File Type: png Snake v0.9.3 Game2.png (28.2 KB, 71 views)
File Type: png Snake v0.9.3 Menu.png (41.6 KB, 59 views)
Attached Files
File Type: zip Snake (11.1 KB, 89 views)
File Type: zip Snake (4.7 KB, 159 views)

Last edited by Zaffo; 03-27-2011 at 11:46 AM. Reason: Update added
Reply With Quote

Advertisement [Remove Advertisement]


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -5. The time now is 12:54 AM.