CodePug: Programming Resources

Hamster Fight

Help Pixel the hamster protect her cage from an invasion of worms. This is a two player game, which involves using the arrow keys, I, J, K, M, space, and control to move each player.

As an added bonus, the source for the game is available. See how Hamster Fight implements a game loop, double buffering, and horizontal image flipping.

License: Freeware
Last udpated: 2010-06-13 19:04:46

Feel free to download and give it a try!


Download

The content and/or source code for the "Hamster Fight" application has been made available as a reference below. It is our hope that it will be an encouragement to others learning to program other freely available applications.

Filename Vers. File type Size Comments
HamsterFight 1.0 Win32 EXE 1002k Supports Windows XP and Vista.
HamsterFightSrc.zip 1.0 C Source 2011k Requires Win32 LCC Compiler to compile.

Note: This code has not been fully tested. Please do not run this unless you acknowledge that you assume all risks associated with its operation.