left and right are to distinguish...

Tue, 16 Apr 2024 22:06:17 +0200

author
Mike Becker <universe@uap-core.de>
date
Tue, 16 Apr 2024 22:06:17 +0200
changeset 62
5a592625e2f9
parent 61
b7954818a6b7
child 63
e3cacdd636e4

left and right are to distinguish...

test/snake.c file | annotate | diff | comparison | revisions
--- a/test/snake.c	Fri Apr 12 22:43:00 2024 +0200
+++ b/test/snake.c	Tue Apr 16 22:06:17 2024 +0200
@@ -55,14 +55,14 @@
 }
 
 static void update_score_counter(AscSceneNode *node) {
-    // tie to bottom left of the screen
+    // tie to bottom right of the screen
     if (asc_window_active->resized) {
-        asc_vec2i bottom_left = asc_window_active->dimensions;
+        asc_vec2i bottom_right = asc_window_active->dimensions;
         asc_vec2i scale = asc_get_scale2d(node);
         asc_set_position2d(
                 node,
-                bottom_left.x - scale.width - 10,
-                bottom_left.y - scale.height - 10
+                bottom_right.x - scale.width - 10,
+                bottom_right.y - scale.height - 10
         );
     }
 }

mercurial