maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Games (https://talk.maemo.org/forumdisplay.php?f=12)
-   -   [Maemo 5] SDLCave : a very basic clone of SFCave (https://talk.maemo.org/showthread.php?t=63902)

Yann Benigot 2010-10-16 19:04

[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

glug 2010-10-16 19:49

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.

nikolajhendel 2010-10-16 20:05

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

Yann Benigot 2010-10-16 21:37

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.

Yann Benigot 2011-01-16 18:07

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...

ZogG 2011-01-16 19:11

Re: [Maemo 5] SDLCave : a very basic clone of SFCave
 
i would appreciate if you upload this to repos , thank you

Yann Benigot 2011-01-16 19:48

Re: [Maemo 5] SDLCave : a very basic clone of SFCave
 
It's already uploaded to extras-devel :-)

yogi900 2011-01-24 17:16

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?

nikolajhendel 2011-01-26 10:13

Re: [Maemo 5] SDLCave : a very basic clone of SFCave
 
Quote:

Originally Posted by yogi900 (Post 927490)
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?

Yeah, crashes a few times for me too - happened when I got a new high score. Oh, 1225 is my best.

EDIT: just crashed again after a new high score (but saved the score).

Yann Benigot 2011-01-27 09:25

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