diff --git a/scripts/main.c b/scripts/main.c index 90b9607..3a144d4 100644 --- a/scripts/main.c +++ b/scripts/main.c @@ -232,6 +232,9 @@ void update(void) { projected_points[j].x *= (window_width / 2.0); projected_points[j].y *= (window_height / 2.0); + // invert y to account for flipped screen y coordinates + projected_points[j].y *= -1; + // Translate the projected points to the middle of the screen projected_points[j].x += (window_width / 2.0); projected_points[j].y += (window_height / 2.0);