Skip to content

Simple and Fast 2D Game Engine based on OpenGL and C++

License

Notifications You must be signed in to change notification settings

grazianobolla/monke-engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

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

Code Example

Compile and see how it looks:

Tilemap Gif

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

Framerate

About

Simple and Fast 2D Game Engine based on OpenGL and C++

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages