MaxwellSalmon / DUGA

The GitHub for the DUGA raycaster
Mozilla Public License 2.0
132 stars 23 forks source link

Wrong collision boxes when loading new level #7

Closed MaxwellSalmon closed 6 years ago

MaxwellSalmon commented 6 years ago

Sometimes the collision boxes on newly generated levels are wrong. This only happens after the first generated level. No idea what is going on yet.

MaxwellSalmon commented 6 years ago

It should be fixed now. I believe it was because I only updated the collision boxes, if a level had a different amount of tiles than the previous one. In rare cases, they would have the exact same amount of tiles.