Game Creation Mastering Development

Find grid cells in 2D grid based on object size and rotation

I am working on a game that uses a grid system that allows the player to place buildings in the world. Each cell in the grid is 64×64. All buildings will be a multiple of 64×64, so everything will evenly fit in the the grid. Below shows an example of a building that is 128×64 […]