put the player in the same tile that gets collision checked
This commit is contained in:
parent
095f94b098
commit
2d583d8f72
@ -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 {
|
struct Tile {
|
||||||
Uint32 type;
|
Uint32 type;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user