test/snake/snake.c

changeset 151
42960d0c879b
parent 149
560772519ff9
child 154
4dff9cc488fe
--- a/test/snake/snake.c	Sat Jun 14 12:38:37 2025 +0200
+++ b/test/snake/snake.c	Sat Jun 14 14:02:16 2025 +0200
@@ -28,7 +28,7 @@
 #include <ascension/core.h>
 #include <ascension/ui.h>
 #include <ascension/sprite.h>
-#include <ascension/shader.h>
+#include <ascension/2d.h>
 
 #include <cx/printf.h>
 
@@ -195,6 +195,12 @@
     // create spaceship
     create_spaceship();
 
+    // TODO: play around with the test rectangle
+    asc_ink_rgb(255, 0, 0);
+    asc_scene_add_node(MAIN_SCENE,
+        asc_rectangle(.x = 200, .y = 250, .width = 100, .height = 75)
+    );
+
     // Main Loop
     do {
         // quit application on any error

mercurial