test/snake/snake.c

changeset 160
80700db530ff
parent 159
da7ebfcdd159
--- a/test/snake/snake.c	Wed Jun 18 23:55:08 2025 +0200
+++ b/test/snake/snake.c	Thu Jun 19 19:22:07 2025 +0200
@@ -196,12 +196,40 @@
     // create spaceship
     create_spaceship();
 
-    // TODO: play around with the test rectangle
+    // TODO: play around with the test rectangles
     asc_ink_rgb(255, 0, 0);
     asc_scene_add_node(MAIN_SCENE,
         asc_rectangle(.x = 200, .y = 250, .width = 100, .height = 75,
             .thickness = 4, .radius = 15, .filled = true, .border_color = asc_col4i_new(0, 255, 0, 255))
     );
+    asc_scene_add_node(MAIN_SCENE,
+    asc_rectangle(.x = 50, .y = 150, .width = 100, .height = 75,
+        .thickness = 4, .radius = 15, .filled = false, .border_color = asc_col4i_new(0, 255, 0, 255))
+    );
+    asc_scene_add_node(MAIN_SCENE,
+    asc_rectangle(.x = 50, .y = 25, .width = 100, .height = 75,
+        .thickness = 4, .filled = false, .border_color = asc_col4i_new(0, 255, 0, 255))
+    );
+    asc_scene_add_node(MAIN_SCENE,
+    asc_rectangle(.x = 250, .y = 25, .width = 100, .height = 75,
+        .thickness = 4, .filled = true, .border_color = asc_col4i_new(0, 255, 0, 255))
+    );
+    asc_scene_add_node(MAIN_SCENE,
+    asc_rectangle(.x = 350, .y = 250, .width = 100, .height = 75,
+        .radius = 15, .filled = true)
+    );
+    asc_scene_add_node(MAIN_SCENE,
+    asc_rectangle(.x = 350, .y = 50, .width = 100, .height = 75,
+        .filled = true)
+    );
+    asc_scene_add_node(MAIN_SCENE,
+    asc_rectangle(.x = 50, .y = 350, .width = 100, .height = 75,
+        .radius = 15)
+    );
+    asc_scene_add_node(MAIN_SCENE,
+    asc_rectangle(.x = 350, .y = 350, .width = 100, .height = 75)
+    );
+
 
     // Main Loop
     do {

mercurial