Froggix 1.0
So in my spare time I decided to tackle another fun project to brush up my programming skills. It had been a bit of time since I had done some C work so I decided to tackle SDL and C by creating a clone of the classic Frogger designed to run in Linux, titled Froggix.
This is a first rough “release” of sorts. All of the basic game play is there. You can dodge cars, ride logs and turtles, reach the goal and advance levels with increasing difficulty. There is a lot that is not implemented as well as a number of bugs. Since this is really a work in progress please bear with me. I know there’s no game over screen, the score flickers and in the Win32 compile there’s no score at all displayed and when you get the frog in a goal there’s no indication aside from the happy frog — oh and after starting a new game some variables such as the frogs in the goals don’t get reset, the free life doesn’t get reset and the speed of the first row of cars never resets on a new game either. I am sure this is a short list of bugs.
As far as yet-to-be-implemented, there is no snake, alligators, badgers or flies. I also need to improve some of the game play. Frogger is very sensitive to cars, if he gets anywhere near one he dies, but as far as jumping on turtles and logs, he can have a toe on the edge of the log and be safe. So there is work yet to do. There is also no 2 player mode, regardless of what the title screen says. There is also a fair amount of information being dumped to STDOUT and STDERR that can safely ignored.
The Windows version runs in XP under VMware, that is as far as my testing went. It was compiled using mingw cross compile libraries on an Ubuntu 8.10 system. There is also no Windows installer for Froggix. Just unzip it and double click on ‘froggix.exe’. Windows includes all the necessary SDL libraries, which is why the binary download is much larger than the Linux version.
If compiling from source a simple, ./configure && make will do the trick. You do need the SDL libraries as well as SDL_image, SDL_ttf and SDL_mixer. Also move ~/src/froggix up one directory so it finds it’s sounds, fonts and graphics. There is a warning while compiling about ‘VERSION’ being declared twice, this can be safely ignored. If compiling for Windows, using the convieniently included ‘cross-configure.sh’ and ‘cross-make.sh’ should do the trick if the mingw and SDL environments for cross compiling are in place. I have never compiled this directly under Windows, but I would assume the same environment in cygwin is necessary.
Everything is rough around the edges on this release, even the method I’m releasing. But please feel free to comment or e-mail me.
The screen shots in this post are all taken from the Linux version of the game. The only major difference with the Win32 release is the lack of the score being displayed; score is being kept in the background.
I would consider porting this to MacOS X but my only access to a OS X system is via really, really old 400MHz G3 system that after a few days of compiling never was able to get a fully development environment built. One day I’ll try and tackle this again.
Btw, this post is the docs for the project thus far. That’s weak, I know. Here are the files:
Linux Binary:
froggix-bin-1.0.tar.gz MD5: 5dc8a489bff00fc7227ad489dfda9d90
Windows Binary:
froggix-win32-1.0.zip MD5: 07cb1e398cb93399e7dafa962567bb1a
Source:
froggix-src-1.0.tar.gz MD5: a30cdc6f0b2346a91d066a3e29b305fd





