CleverGameDev / Cleverfall

https://clevergamedev.itch.io/cleverfall
1 stars 0 forks source link

Simplify layers and tilemaps #25

Closed nathanleiby closed 4 years ago

nathanleiby commented 4 years ago

context: these are some cleanup items I did while investigating the physics bug in #24


Layers: Get rid of everything except "player". Render player layer last in the sorting order.

Tilemaps: Get rid of everything except Background, Collideable, and PlayerSpawnPoints.

Hopefully this simplifies life by removing placeholders we had before (e.g. spikes) that weren't actively in use, as well as renaming "Ground" => "Collideable". Previously, both Platforms and Walls were tagged as "Ground", so I find the new naming a bit clearer. If we later have some collideable that wont make the player grounded as far as jumping, we can revisit.

nathanleiby commented 4 years ago

Makes sense! I've split up the layers into Walls and Platforms, both of which have tag = Collideable

nathanleiby commented 4 years ago

Also included a new layout for the dungeon level https://github.com/CleverGameDev/Cleverfall/pull/25/commits/1c6b7111888a83c0fd18fc048324633a27823349

image