MoonEngine (or Moon) is a 70KB game engine/framework that I've (oti) been working on, that's quite modular with help of backends (i.e. SDL2 and derivs).
NOTE: Because this engine is under rapid development, this is Alpha (expect breaking changes!).
Some features of the engine include:
Camera
- A camera systemFont
- A font rendering systemInput
- An input handlerMap
- A Tiled renderer and parserSound
- A sound system
...and more!
Plugging these 10 lines of code into a working environment will give a blank window:
#include "MoonEngine.h"
int main() {
Window window;
InitWindow(&window, 1024, 720, "Moon");
while (WindowIsOpen(60)) {
printf("Window open, running at 60 fps!\n");
}
End(window);
return 0;
}
This is the same code in "main.c".
To compile Moon, you need:
- SDL2_ttf
- SDL2_image
- SDL2
- SDL2_mixer
- SDL2_gpu
- SDL2main (on Windows)
Extract all of the files from the Github repos, them leave them as is. You'll need the original folders in the CMake.