An open API service indexing awesome lists of open source software.

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++

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:
![Code Example](https://github.com/grazianobolla/monke-engine/blob/develop/readme/simple_sprite_code.png "Code Example")

## 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:

![Code Example](https://github.com/grazianobolla/monke-engine/blob/develop/readme/sheet.png "Code Example")

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

![Code Example](https://github.com/grazianobolla/monke-engine/blob/develop/readme/tilemap_code.png "Code Example")

#### Compile and see how it looks:

![Tilemap Gif](https://github.com/grazianobolla/monke-engine/blob/develop/readme/tilemap_gif.gif)

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

![Framerate](https://github.com/grazianobolla/monke-engine/blob/develop/readme/tilemap_framerate.png "Framerate")