diff examples/example-animation/example-animation.c @ 468:91ce23a36143

core: sprite -> mlk_sprite
author David Demelier <markand@malikania.fr>
date Mon, 27 Feb 2023 11:08:28 +0100
parents 01f5580e43d1
children 0d6206cee6b9
line wrap: on
line diff
--- a/examples/example-animation/example-animation.c	Mon Feb 27 11:06:45 2023 +0100
+++ b/examples/example-animation/example-animation.c	Mon Feb 27 11:08:28 2023 +0100
@@ -48,7 +48,7 @@
 static struct state *states[1];
 static struct texture numbers;
 static struct mlk_animation animation;
-static struct sprite sprite;
+static struct mlk_sprite sprite;
 static int completed = 1;
 
 static void
@@ -119,7 +119,7 @@
 		.draw = draw
 	};
 
-	sprite_init(&sprite, &numbers, 48, 48);
+	mlk_sprite_init(&sprite, &numbers, 48, 48);
 	mlk_animation_init(&animation, &sprite, 1000);
 
 	mlk_game_init(states, UTIL_SIZE(states));