put the player in the same tile that gets collision checked
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user