A simple 2D platform fighter game built with C++ and SDL2, inspired by games like Super Smash Bros and Brawlhalla.
- Player movement with jumping and platform collision
- Basic attack system with cooldowns
- Enemy AI that patrols platforms
- Health system for enemies
- Platform-based level design
- C++17 or later
- CMake 3.10 or later
- SDL2
- Clone the repository:
git clone https://github.com/yourusername/platform-fighter.git
cd platform-fighter- Create a build directory and build the project:
mkdir build
cd build
cmake ..
make- Run the game:
./game- Left/Right Arrow Keys: Move
- Space: Jump
- Z: Attack
src/: Source filesmain.cpp: Entry pointGame.cpp: Main game loop and state managementPlayer.cpp: Player character implementationEnemy.cpp: Enemy AI implementationPlatform.cpp: Platform implementation
include/: Header filesGame.h: Game class declarationPlayer.h: Player class declarationEnemy.h: Enemy class declarationPlatform.h: Platform class declaration
This project is licensed under the MIT License - see the LICENSE file for details.