Welcome to the Partial Tower Defense Game! This project is a simple tower defense game developed in C++. The game features engaging graphics and audio, providing players with an entertaining experience.
The project contains the following files and directories:
audio/
- This directory contains audio files used in the game.constants.h
- Header file that defines all constants used throughout the project.draw.cpp
- Source file that contains the logic for rendering the game graphics.draw.h
- Header file that declares the functions indraw.cpp
.game.cpp
- Source file that contains the main game logic.game.h
- Header file that declares the functions ingame.cpp
.main.cpp
- The entry point of the application where execution begins.PTD.exe
- The compiled executable for Windows.screenshots/
- Directory containing screenshots of the game.
To compile the program, you need to have a C++ compiler installed on your system. Below are the commands for compiling the project on different operating systems and compilers:
Open your command prompt and run the following command:
g++ main.cpp game.cpp draw.cpp -o PTD.exe -lwinmm
cl main.cpp Game.cpp draw.cpp /FePTD.exe /link winmm.lib
Open your command prompt and run the following command:
g++ main.cpp game.cpp draw.cpp -o PTD -lSDL2