![]() |
[Maemo 5] SDLCave : a very basic clone of SFCave
Some years ago, when I was still using a Palm to browse the web from my bed, I used to play an addictive little game called SFCave, where we were controling a line threw an infinite cave.
The cave would get smaller and smaller while the line would go faster and faster. The line was continuously falling ; but we could however make it move up by touching the screen. I made an SDL clone of this game, thanks to SDL_gfx. It's still pretty basic : no obstacles, no advanced hiscores, all lines of the cave are 0.2*height-of-screen long, but it works. The source code is also as horrible as this remark lets you imagine... Controls : touch the screen to start a game, then touch it to make the line go upward. When finished, you can also use the keyboard with r to restart and q to quit in addition to the buttons on the touchscreen. http://yannbng.free.fr/sdlcave.png Package file : http://yannbng.free.fr/sdlcave_0.1-5_armel.deb Source code : http://yannbng.free.fr/sdlcave_0.1-5.tar.gz |
Re: [Maemo 5] SDLCave : a very basic clone of SFCave
I like it. Simple but pretty fun! Although, if you make another version, consider making the text a bit bigger. Currently its so small I can't really see it while I'm playing the game.
|
Re: [Maemo 5] SDLCave : a very basic clone of SFCave
sweet. I loved this game when I had my Palm(s). - will try it out
|
Re: [Maemo 5] SDLCave : a very basic clone of SFCave
I made a little update with a bigger font : 10x20 vs 8x8 ; texts should be easier to read now :-)
EDIT : Another little update. Nothing remarkable ; something just bugged me : the font file (10240 bytes) was smaller than expected (10*20*256/8 = 6400 or (10*20=200 and 256*256/8 = 8192) or (16*24*256/8 = 12288 - bigger ?!)). Instead of just reading 6400 byte, it now reads 10240b, so we can be nearly sure it misses nothing. |
Re: [Maemo 5] SDLCave : a very basic clone of SFCave
Another little update : now using 16bpp mode, which is a lot faster on this device...
|
Re: [Maemo 5] SDLCave : a very basic clone of SFCave
i would appreciate if you upload this to repos , thank you
|
Re: [Maemo 5] SDLCave : a very basic clone of SFCave
It's already uploaded to extras-devel :-)
|
Re: [Maemo 5] SDLCave : a very basic clone of SFCave
Good one...I am now spending lot of time on this...Not able to score above 1200 :)
Sometimes it crashes in between...anyone observed this problem? |
Re: [Maemo 5] SDLCave : a very basic clone of SFCave
Quote:
EDIT: just crashed again after a new high score (but saved the score). |
Re: [Maemo 5] SDLCave : a very basic clone of SFCave
I made 1560 a long time ago :-)
I experience sometime the same bug. It seems that it tends to happen more when there is a little load on the CPU. It happens much less with the last version, but I should take a look when I have more time. Something to do with frameskipping, making the menu not to display at the end of a game. |
All times are GMT. The time now is 14:30. |
vBulletin® Version 3.8.8