Skip to content

Commit

Permalink
Fix level 1 rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
jobe-m committed Feb 7, 2025
1 parent 089da78 commit 5710032
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,9 @@ class LevelMapAssets {

if (hasParallax) {
// TODO: Get world height and width from WorldGridvania 2D array
worldData.width = 1 * (ldtkWorld.ldtk.worldGridWidth ?: 1) // gridVaniaWidth
worldData.height = 1 * (ldtkWorld.ldtk.worldGridHeight ?: 1) // gridVaniaHeight
// * 2 because level 1 has still double height
worldData.width = 2 * (ldtkWorld.ldtk.worldGridWidth ?: 1) // gridVaniaWidth
worldData.height = 2 * (ldtkWorld.ldtk.worldGridHeight ?: 1) // gridVaniaHeight
}

// TODO: fill WorldData class with levels
Expand Down

0 comments on commit 5710032

Please sign in to comment.