This project is a simple 2D game engine built using C++ and SDL2, designed to provide a foundation for developing basic 2D games. It includes essential features such as rendering, event handling, and basic collision detection. As a demonstration of its capabilities, a small mini-game has been created where a player avoids obstacles to survive.
- Window management and rendering using SDL2.
- Basic update and render loop.
- Fullscreen mode
- Collision detection.
- Player control with keyboard input.
- Dynamic obstacle generation and movement.
- Game-over message displayed on collision.
Install my-project with git
Install the required dependencies:
- SDL2
- SDL2_image
- SDL2_ttf
git clone https://github.com/Stivenjs/Engine-game.git
cd my-project