From 526316a928f2030991fa3af237cf8204a24f3cb1 Mon Sep 17 00:00:00 2001 From: Sven Balzer <4653051+Kyuusokuna@users.noreply.github.com> Date: Tue, 25 Feb 2025 20:03:52 +0100 Subject: [PATCH] center player in tile again --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 594dc58..fc13e43 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -63,7 +63,7 @@ Instance tiles_instances[view_width * view_height] = { }; -Instance player_instance = { {0.5f, 0.5f, 1.0f / view_width, 1.0f / view_height}, 0, {0, 0, 1, 1}}; +Instance player_instance = { { 0.5f - 0.5f / view_width, 0.5f, 1.0f / view_width, 1.0f / view_height}, 0, {0, 0, 1, 1}}; struct Tile { Uint32 type;