flip the direction of y now y increases upwards

This commit is contained in:
2025-10-19 14:19:00 +02:00
parent 1d93c22a73
commit 64bd8ee530
3 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -400,7 +400,8 @@ impl TweenController {
});
}
TurtleCommand::Goto(coord) => {
target.position = *coord;
// Flip Y coordinate: turtle graphics uses Y+ = up, but Macroquad uses Y+ = down
target.position = vec2(coord.x, -coord.y);
}
TurtleCommand::SetHeading(heading) => {
target.heading = normalize_angle(*heading);