Blank Window (Tile Engine)
- Posted by Icy_Viking in April
- 371 views
Hello,
I'm wondering if anyone could help with this. When I tried making an example using my Tile Engine wrapper. The image/background that is supposed to appear doesn't show up. The window comes up with just a blank screen. I have what I have written so far bundled in zip file. The wrapper isn't finished just yet, but very close. Other things that might help I'm using the 32-bit DLL and using Windows 11 Pro and Euphoria 4.1.0 Beta 2 32-Bit.
https://katfile.com/9ie8g3zj4l8t/te.zip.html - Wrapped so far
https://github.com/megamarc/Tilengine - In case it is needed.
// Simple C Example, converted to Eu code below #include "Tilengine.h" void main(void) { TLN_Tilemap foreground; TLN_Init (400, 240, 1, 0, 0); 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 (); }
include std/ffi.e include tilengine.e TLN_Init(400,240,1,0,0) atom fg = TLN_LoadTilemap("Sonic_md_fg1.tmx","") ? fg TLN_SetLayerTilemap(0,fg) TLN_CreateWindow("",0) while TLN_ProcessWindow() do TLN_DrawFrame(0) end while TLN_DeleteTilemap(fg) TLN_Deinit()