Handmade Hero»Forums»Code
Todor
1 posts
World Coordinates
In episode 31 you created the world units to tilemap mapping. But you used 1.4f as a tile heights. I feel that value was arbitrarily chosen. A better mapping would have been 1.0f so a tile = meter. I feel this will make the world simpler to understand and work with.

Second, you can have the character be 0.75 x 0.75 wide, such as he won't clip entirelly in the tile above it. Call it the character base, as such it can be used for pathing.
World Coordinates
We could have tile side = 2.0f and boy height =1.4f so that he is smaller than the tiles.