center player in tile again
This commit is contained in:
parent
5b29a2bd5b
commit
526316a928
@ -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 {
|
struct Tile {
|
||||||
Uint32 type;
|
Uint32 type;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user