Last Attack is a Tower Defense game available for both Windows and Linux platforms. The game is developed using C and built using SDL2, SDL2_ttf, SDL2_image, SDL2_gfx, and tmx. Below you'll find detailed instructions for building and running the game on both platforms.
- Tower cost: 5
- Tower upgrade cost: 10
- Each upgrade has 5 tiers
- Number of HP: 5
- Number of waves: 3
- ESC: exit the game
- V: toggle tower range when you hover over them
To build Last Attack, you will need the following libraries installed on your system:
- SDL2
- SDL2_ttf
- SDL2_image
- SDL2_gfx
- tmx (bundled for Linux; Windows requires installation)
On Windows, you can use vcpkg to install the necessary libraries:
On Linux (specifically tested on Ubuntu or WSL Ubuntu), install the required libraries:
sudo apt-get install libsdl2-dev libsdl2-ttf-dev libsdl2-image-dev libsdl2-gfx-dev libxml2-devClone the repository or extract the game files from the source.
Navigate to the Game Directory. Open a terminal and navigate to the project directory, then create a build directory:
mkdir build
cd buildRun CMake to Generate Build Files: Generate the build files using CMake:
cmake ..Build the Project: Run the following command to compile the game:
makeRun the Game: After building the game, you can run it using:
./Last Attack