Repository: hactazia/tron
Tron is a simple game implemented in C. The game can be run using either SDL or ncurses for rendering.
This source code is for linux only. The build is required to have the SDL2 and ncurses libraries installed. To build the game, follow the steps below:
- Clone the repository:
git clone https://github.com/hactazia/tron.git cd tron-game
- Install the necessary dependencies:
- For SDL:
sudo apt-get install libsdl2-2.0-0 libsdl2-dev sudo apt-get install libsdl2-ttf-2.0-0 libsdl2-ttf-dev
- For ncurses:
sudo apt install libncurses5 libncurses5-dev
- For SDL:
- Build the game:
mkdir build cd build cmake .. make
- Run the game:
- For SDL:
./tron -sdl
- For ncurses:
./tron -ncurses
- For SDL:
- Enjoy the game!
- Player 1 controls: Arrow keys
- Player 2 controls: ZQSD
- Player 3 controls: IJKL
- Player 4 controls: TFGH
- Player 5 controls (numpad): 5123
- Player 6 controls (numpad): -789
- Start the game: *
- Quit or Cancel: =
- Add a player: +
- Remove a player: -
Your can add or remove players in the Options menu.