- Emma Choi pd. 4
- Darius Jankauskas pd. 4
- Sunan Tajwar pd. 4
- Greg Zborovsky pd. 4
This is a top-down kart-racing game similar to Mario Kart or F-Zero with decent graphics, collisions, typical game logic, and networked multiplayer, with up to four concurrent players supported.
- SDL 2.0
sudo apt-get install libsdl2-dev
- SDL 2.0 TTF
sudo apt-get install libsdl2-ttf-dev
- pkg-config
sudo apt-get install pkg-config
To build the game, run make
(assuming all required libraries have been installed). To run the game, run make run
.
After game start up, click "Single Player" in the menu. Your kart will appear on one of three different tracks, each with its own music.
This is the primary mode. Have one person click the start "Create Multiplayer," while all other players click "Join Multiplayer." Players who click "Join Multiplayer" will be prompted to enter the IP address of the hosting computer on the command line in order to connect to it. A countdown will appear on the screen and when it reaches 0, the game will start. At least two players are needed to start a multiplayer game. The countdown will be reset whenever a client joins the server until its maximum capacity is reached. On a randomly selected track, each of the karts will appear.
In the game, the A and D keys will rotate your kart while the W and S keys will allow you to move forward and backwards, respectively. You are unable to move through walls, but you can smooth move along them. You can only rotate while moving above a certain speed.
To win the game, be the first to finish three laps around the track. All other players lose. After winning or losing, the player will be redirected to the main screen after 5 seconds.
If at any time you wish to quit a game (or waiting period before a race starts) hit the Escape key to return to the menu.
- The server may occasionally not shutdown requiring manual killing.
- You may need to wait a minute between starting several servers.
- Because of the timing mechanism used, cpu usage is high, so launching several instance of the game on a single machine may cause lag.
- The incorrect winner may be reported.
- Users may be booted off the server for some reason.
- We used SDL 2.0 to implement graphics and audio support.
- We used Simple-SDL2-Audio as a wrapper around SDL audio functionality to facilitate development. The code was slightly modified, and is contained in
audio_utils.h
andaudio_utils.c
. - Used audio from https://www.youtube.com/watch?v=3UvgkDJV-YQ
- Used audio from https://www.youtube.com/watch?v=PKQdWvVou1c
- Used audio from https://www.youtube.com/watch?v=3nXl3re6vBI
- Makefile from https://spin.atomicobject.com/2016/08/26/makefile-c-projects/