Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

alex-oren/tiny-engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

5 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

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /