King and Pigs is a 2D game written in C++. In this game, the player controls a character who must navigate through various levels and defeat enemies.
To install the game on your computer, follow these steps:
- Go to the releases page of this repository.
- Download the latest release installer that corresponds to your operating system.
- Run the downloaded installer and follow the instructions.
- Once the installation is complete, launch the game from the start menu or desktop icon
- Clone this repo:
git clone https://github.com/png261/king-and-pigs.git
- Navigate to the
king-and-pigs
directory, run the following command to build the game:
cmake -B build && cmake --build build
- Run the game by executing the following command:
./build/king-and-pigs
Action | Setup 1 | Setup 2 |
---|---|---|
Move right | Arrow Right | D |
Move left | Arrow Left | A |
Enter door | Arrow Up | W |
Jump | Mouse Left | K |
Attack | Mouse Right | J |
Note: Setup 2 only work with English keyboard
Map editting with Tiled Map Editor
Please see https://png261.github.io/king-and-pigs/ for more informations
- Kings and Pigs asset pack
- SDL Game Development
- Game Programming Patterns
- alexdantas/sdl2-platformer
- AdriaPm/GameDevelopment_Platformer_Game
- TheLartians/ModernCppStarter
- kracejic/cleanCppProject
- SDL2
- SDL2_image
- SDL2_mixer
- SDL2_ttf
- SDL2_gfx
- Box2D
- JsonCpp
- TinyXML-2
- Tiled Map Editor
If you have any questions or suggestions about this project, feel free to contact me at:
- Email: [email protected]
- GitHub: png261
This project is licensed under the Unlicense - see the LICENSE file for details