03-19-2021, 09:17 PM
(This post was last modified: 03-19-2021, 09:19 PM by Kr3m77.
Edit Reason: clarify where running the app from
)
I'm running Tilengine 2.9.0 on Windows 10 Pro x64. I compiled the following code listed on the Github repo's README.MD file and am getting a blank screen when I run the app from the samples folder.
Code:
#include "Tilengine.h"
void main(void) {
TLN_Tilemap foreground;
TLN_Init (400, 240, 1, 0, 0);
TLN_SetLoadPath ("assets/sonic");
foreground = TLN_LoadTilemap ("assets/sonic/Sonic_md_fg1.tmx", NULL);
TLN_SetLayerTilemap (0, foreground);
TLN_CreateWindow (NULL, 0);
while (TLN_ProcessWindow()) {
TLN_DrawFrame (0);
}
TLN_DeleteTilemap (foreground);
TLN_Deinit ();
}