update demo window

This commit is contained in:
2026-10-06 10:30:39 +02:00
parent f5be3992a6
commit 6b3b5b0241
+4 -4
View File
@@ -25,10 +25,8 @@ client_poll_event()
void void
client_update_framebuffer() client_update_framebuffer()
{ {
// single green demo pixel // example window contents
game_state->framebuffer[0] = 0x00FF00; clear_framebuffer(0xFFFF00);
put_rect(0, 0, 1100, 200, 0xFFFF00);
put_string("Hello, traveller. You have come\nto the right place!", put_string("Hello, traveller. You have come\nto the right place!",
20, 20, 2, 2, 3, 0x000000, 0xFFFF00 20, 20, 2, 2, 3, 0x000000, 0xFFFF00
); );
@@ -39,6 +37,8 @@ main()
{ {
// initialize the engine // initialize the engine
if (engine_init( if (engine_init(
500, 100,
"Dangerzone",
client_poll_event, client_poll_event,
client_update_framebuffer client_update_framebuffer
)) { )) {