UQdeco2800 / 2022-studio-3

MIT License
4 stars 0 forks source link

Team 6 fixed MapService bug #246

Closed kaitlyn-lake closed 1 year ago

kaitlyn-lake commented 1 year ago

Fixed bug in MapService caused by MapService.getAllOccupiedPositions using an incorrect scale to get all tiles occupied by an entity. Fixed by adding functionality to TextureScaler to calculate the width, height and position actually taken up by an entity. See the correct entities rendered to the minimap. At the moment this fix can only be applied to entities with a TextureRenderComponent, so therefore buildings and other static entities.

(This is for Sprint 4, ignore branch name.)