Skip to content

Minimal 2D game engine in modern C++ using SDL2. Lightweight, open-source, and built for clarity, speed, and simplicity.

License

Notifications You must be signed in to change notification settings

alexandrerodrigopinheiro/tiny-engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tiny Engine

🕹️ Minimalist 2D Game Engine in C++ using SDL2
Open-source, lightweight, and built for clarity, speed, and simplicity.


🧭 Overview

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.


✨ Features

  • 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

⚙️ Requirements


🔧 Build Instructions

1. Clone the repository

git clone https://github.com/your-org/tiny-engine.git
cd tiny-engine

2. Configure and build with CMake

mkdir build && cd build
cmake ..
cmake --build .

3. Run the demo

./tiny-engine-demo

🧪 Project Structure

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

🚀 Getting Started

To start your own project:

  1. Copy the src/ and include/ folders
  2. Use the provided main.cpp template
  3. Extend the engine with your own components

🧾 License

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.


🤝 Credits

About

Minimal 2D game engine in modern C++ using SDL2. Lightweight, open-source, and built for clarity, speed, and simplicity.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages