About the GP2X
The GP2X was a handheld console released by GamePark Holdinds in 2005. Unlike my failed attempt to create something for the GBA, I actually managed to create a couple of games for this more familiar system.
The GP2X was a handheld console released by GamePark Holdinds in 2005. Unlike my failed attempt to create something for the GBA, I actually managed to create a couple of games for this more familiar system.
Pong is obviously a clone of one of the first video games ever. You move a bat up and down on the left hand side of the screen, and the "CPU" moves the other one on the right. The moving square is the ball you try to get pass the other player's bat.
This is what came out of the first test program I created after I had installed the GP2X's SDK. Getting something playable was actually quite easy. SDL 1.2 (included in the SDK) has a function for drawing filled rectangles and it is modified to map the consoles controls to joystick buttons. (The joystick on the left isn't really a joystick as we know them.) That means there is everything we need to draw the two bats and a square ball and make them move. Text was added later and blitting text isn't that difficult either.
A nice feature is that the game automatically underclocks your GP2X to 50 MHz to avoid draining your batteries (without needing a fancy launcher like GMenu2X which can do that for any program.)
The title screen of Pong for GP2X.
The press "Start" to exit is funny but it was the standard on the GP2X. :-)
Pong is released under the GNU General Public License, version 2.
The zip archives contains a binary for the GP2X and its source code.
Note: The v0.0 binary is dynamically linked to libraries that may be unavailable in firmware before version 2.0.0. On the upside, the binary is only 10 kilobytes! The v0.1 is the exacly the same game but compiled with the Open2x SDK and statically linked (and huge 655 kB.)
Simon is a clone of the old electonic game. It is played with the right hand A, B, X, and Y buttons. The game adds one random light to the sequence each round, starting with only one, and you must repeat the complete sequence correctly each time. There is no need to hurry.
Simon is released under the GNU General Public License, version 2.
The zip archives include a binary, required data files, and the source code.
The newer source should compile with the Open2X SDK with GP2X=1 make
as long as you have the SDK's bin in your path. If you omit the
GP2X=1
, the Makefile will compile a version for your computer
instead. (Playable in a small window using arrow keys. The Esc key
exits the game.)
You can reach me via email at