From 2d583d8f72706b114944505282362ba8ec92dc14 Mon Sep 17 00:00:00 2001 From: Sven Balzer <4653051+Kyuusokuna@users.noreply.github.com> Date: Thu, 27 Feb 2025 11:14:01 +0100 Subject: [PATCH] put the player in the same tile that gets collision checked --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 699d1b9..fcc8a09 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -66,7 +66,7 @@ Instance tiles_instances[view_width * view_height] = { }; -Instance player_instance = { { 0.5f - 0.5f / view_width, 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;