CodinGame / codingame-game-engine

CodinGame Engine
https://www.codingame.com
MIT License
112 stars 41 forks source link

BufferedGroup doesn't show all content when scaling down #34

Closed eulerscheZahl closed 3 years ago

eulerscheZahl commented 4 years ago

When you place objects inside a BufferedGroup and set a scale less than 1, the part of the group that wouldn't be visible with a scale of 1 isn't shown.

See the following declaration: https://github.com/eulerscheZahl/Sokoban/blob/570fde89ab672ea21f403d7d38a4b341dc7df2b7/src/main/java/Sokoban/Board.java#L43-L44

With a BufferedGroup: image

With a normal Group: image

CGjupoulton commented 3 years ago

Fixed in v3.15.6 with a maximum width & height of 4096x4096 for the unscaled group