diff examples/example-debug/main.c @ 390:ae2dcf40c1eb

examples: fix with last game changes
author David Demelier <markand@malikania.fr>
date Wed, 16 Feb 2022 08:56:02 +0100
parents 460c78706989
children
line wrap: on
line diff
--- a/examples/example-debug/main.c	Wed Feb 16 08:44:21 2022 +0100
+++ b/examples/example-debug/main.c	Wed Feb 16 08:56:02 2022 +0100
@@ -32,6 +32,7 @@
 #define W 1280
 #define H 720
 
+static struct state *states[1];
 static int mouse_x;
 static int mouse_y;
 
@@ -86,6 +87,7 @@
 		.draw = draw
 	};
 
+	game_init(states, UTIL_SIZE(states));
 	game_push(&state);
 	game_loop();
 }