🕹️ Minimalist 2D Game Engine in C++ using SDL2
Open-source, lightweight, and built for clarity, speed, and simplicity.
Tiny Engine is a compact and extensible 2D game engine written in modern C++, using SDL2 as its foundation.
It was created to offer a clean and minimal alternative for indie developers, prototypes, and learning projects.
Its goal: No frills, just a simple and functional game loop.
- 2D rendering via SDL2
- Simple game loop with fixed timestep
- Sprite rendering and animation
- Input handling (keyboard/mouse)
- Asset loading (images, fonts)
- Scene management and entity loop
- Minimal external dependencies
git clone https://github.com/your-org/tiny-engine.git
cd tiny-engine
mkdir build && cd build
cmake ..
cmake --build .
./tiny-engine-demo
src/
├── core/ → Engine core (loop, timing, config)
├── graphics/ → Renderer, textures, sprites
├── input/ → Keyboard & mouse handling
├── scenes/ → Scene and entity logic
examples/ → Sample games
include/ → Public headers
To start your own project:
- Copy the
src/
andinclude/
folders - Use the provided
main.cpp
template - Extend the engine with your own components
This project is released under the MIT License.
© Gaming Innovators — Open-source with ❤️.
Feel free to fork, modify, and use in personal or commercial projects.
- SDL2
- Dear ImGui (optional)
- Contributors & indie developers