This commit is contained in:
jb 2025-07-15 15:29:28 -07:00
parent 5b72bd3337
commit 9a3f070d6c

View File

@ -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);