MultiTanki is a multiplayer game written in C using SDL2. It is inspired by the Tanks! game from the Wii Play, but unlike the Tanks! it is fully made of top-down 2D graphics instead of 3D. It communicates through a simple UDP P2P connection between computers to achieve the multiplayer feature.
To install dependencies on Ubuntu:
$ sudo apt-get install libsdl2-dev
$ sudo apt-get install libsdl2-image-dev
$ sudo apt-get install libsdl2-mixer-dev
$ sudo apt-get install libsdl2-ttf-dev
To compile:
$ make
To run:
$ ./multitanki
- w a s d : Move the tank/cursor
- Left Mouse Button : Shoot bullet to current cursor position
- SPACE : Select on title/gameover screen
- If no sound plays or there is a big delay, try launching the game again
- The reset function is not implemented yet, so re-starting the game after a game over will cause memory leak