https://github.com/grazianobolla/monke-engine
Simple and Fast 2D Game Engine based on OpenGL and C++
https://github.com/grazianobolla/monke-engine
cpp game-engine opengl
Last synced: about 1 year ago
JSON representation
Simple and Fast 2D Game Engine based on OpenGL and C++
- Host: GitHub
- URL: https://github.com/grazianobolla/monke-engine
- Owner: grazianobolla
- License: mit
- Created: 2021-02-10T07:02:48.000Z (about 5 years ago)
- Default Branch: develop
- Last Pushed: 2024-05-18T02:46:30.000Z (almost 2 years ago)
- Last Synced: 2025-02-28T17:50:45.410Z (about 1 year ago)
- Topics: cpp, game-engine, opengl
- Language: C++
- Homepage:
- Size: 15.5 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Monke Engine (Game Engine)
Monke Engine aims to be a simple and fast game engine, capable of reproducing any ideas quickly and efficiently.
Made for those who want something low-level while maintaining simplicity.
# Use (linux)
- Run `mkdir build && cd build/ && cmake .. && cmake --build .` from this repos folder.
- Then just run ´./monkexe´ to run the binary, the source code is inside the _demo_ folder.
# Examples
## Single Static Sprite
This for example, is how you render a Sprite that follows your cursor:

## Multiple Animated Sprites
Drawing multiple sprites it's also quite easy, for example this is one simple way to render a tilemap.
First we load our texture, in this case a 128x32 sprite sheet with numbers:

We can then tell the engine to dynamically update the sprites *Texture Coordinates* and render them on a loop.

#### Compile and see how it looks:

As you can see, the framerate is extremely high, with this tilemap on a GTX1060 it was around 14000 FPS!
