Tue, 16 Apr 2024 22:06:17 +0200
left and right are to distinguish...
test/snake.c | file | annotate | diff | comparison | revisions |
1.1 --- a/test/snake.c Fri Apr 12 22:43:00 2024 +0200 1.2 +++ b/test/snake.c Tue Apr 16 22:06:17 2024 +0200 1.3 @@ -55,14 +55,14 @@ 1.4 } 1.5 1.6 static void update_score_counter(AscSceneNode *node) { 1.7 - // tie to bottom left of the screen 1.8 + // tie to bottom right of the screen 1.9 if (asc_window_active->resized) { 1.10 - asc_vec2i bottom_left = asc_window_active->dimensions; 1.11 + asc_vec2i bottom_right = asc_window_active->dimensions; 1.12 asc_vec2i scale = asc_get_scale2d(node); 1.13 asc_set_position2d( 1.14 node, 1.15 - bottom_left.x - scale.width - 10, 1.16 - bottom_left.y - scale.height - 10 1.17 + bottom_right.x - scale.width - 10, 1.18 + bottom_right.y - scale.height - 10 1.19 ); 1.20 } 1.21 }