https://github.com/defgameengine/defgameengine
defGameEngine is a cross-platform game engine. Available on Windows, Linux and (probably) MacOS. Requires C++20 or higher
https://github.com/defgameengine/defgameengine
cpp emscripten game game-dev game-development game-engine gles gles3 glfw glfw3 gui imgui imgui-glfw lua opengl opengl3 web
Last synced: 1 day ago
JSON representation
defGameEngine is a cross-platform game engine. Available on Windows, Linux and (probably) MacOS. Requires C++20 or higher
- Host: GitHub
- URL: https://github.com/defgameengine/defgameengine
- Owner: defGameEngine
- License: gpl-3.0
- Created: 2022-05-11T04:56:55.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2026-04-03T19:49:08.000Z (2 days ago)
- Last Synced: 2026-04-03T21:40:13.037Z (2 days ago)
- Topics: cpp, emscripten, game, game-dev, game-development, game-engine, gles, gles3, glfw, glfw3, gui, imgui, imgui-glfw, lua, opengl, opengl3, web
- Language: C++
- Homepage:
- Size: 14.3 MB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# Overview
defGameEngine is a lightweight, cross-platform (Windows, Linux, MacOS) 2D game engine designed for simplicity and ease of use. It provides essential tools for rendering graphics and handling input. The engine supports both desktop (via GLFW) and web (via Emscripten) platforms.
# Features
- Cross-Platform: supports Windows, Linux, macOS, and web browsers.
- 2D Rendering: draw shapes, sprites, textures and text with various blending modes.
- Input handling: keyboard, mouse and touch input (web) support.
- Sprite & texture management: load, manipulate and render fully rotated and scaled images.
- Layers: organise rendering into layers with custom shaders.
## Getting Started
To use this game engine in your project, follow the [install instructions](/README.md#installation), clone this repository and start exploring the code and examples. Check out the [Examples repository](https://github.com/defGameEngine/Examples) for a comprehensive set of already made demos using the game engine.
## Installation
### Platforms
- [Windows](Docs/Install_Instructions_Windows.md)
- [Linux](Docs/Install_Instructions_Linux.md)
- [Mac](Docs/Install_Instructions_Mac.md)
- [Emscripten](Docs/Install_Instructions_Emscripten.md)
****Note**:* C++20 or higher is required
## Documentation
[defGameEngine](Docs/GameEngine_Doc.md)
## Demos
### Online
1. [Raycaster](https://defini7.itch.io/defgameengine-raycaster)
2. [Minesweeper](https://defini7.github.io/demos/minesweeper)