A simple game developed using SDL2 as a personal project to learn C++.
This game includes the following features:
- Collision Detection: Basic collision mechanics to interact with game objects.
- Movement System: Smooth character movement controls.
- Animator: Animation handling for character sprites.
- Input Handling: Responsive input system for keyboard controls.
- Rendering: Efficient rendering of game graphics.
In future updates, I plan to implement:
- Collision Triggers: Advanced collision detection for interactive elements.
- Sound Effects: Audio integration for a more immersive experience.
- Vector Class: A custom vector class for improved mathematical operations.
The art assets used in this game are sourced from the Godot demo platformer. You can find them here.
To run the game, ensure you have SDL2 installed on your system. Follow these steps:
- Clone the repository:
git clone https://github.com/Jersonrn/game_scratch
- Navigate to the project directory:
cd game_scratch - Compile the project
mkdir build cd build cmake .. make - Run the game:
You can run the game with the following command, where the argument
trueenables collision visualization andfalsedisables it:./main true
