Tilengine
Tilengine is a free, open source cross-platform 2D graphics engine for creating classic/retro games with tilemaps, sprites and palettes. Its scanline-based rendering system makes raster effects a core feature, the same used on actual 2D graphics chips.
Current release: 2.15.1 Apr 23th 2023
Basic example
The following snippet illustrates how easy is to use Tilengine in your program. It initializes the engine at 400x240 resolution, with one background layer, no sprites and no animation slots. Then loads a map in Tiled TMX format, attaches it to the layer, and finally creates a display window and does a main loop until the user closes the window.
#include "Tilengine.h"
void main(void){
TLN_Tilemap foreground;
TLN_Init (400,240,1,0,0);
foreground = TLN_LoadTilemap ("assets/sonic_md_fg1.tmx", NULL);
TLN_SetLayerTilemap (0, foreground);
TLN_CreateWindow (NULL, 0);
while (TLN_ProcessWindow())
TLN_DrawFrame (0);
TLN_Deinit ();
}