center player in tile again

This commit is contained in:
Sven Balzer 2025-02-25 20:03:52 +01:00
parent 5b29a2bd5b
commit 526316a928

View File

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