put the player in the same tile that gets collision checked

This commit is contained in:
Sven Balzer 2025-02-27 11:14:01 +01:00
parent 095f94b098
commit 2d583d8f72

View File

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