πΉοΈ 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-enginemkdir 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.cpptemplate - 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