codeandkey / boom

WIP platforming game
3 stars 6 forks source link

Slopes in maps #115

Open codeandkey opened 4 years ago

codeandkey commented 4 years ago

It's about time we added stairs. It may require a refactor of the collision system but it should be feasible to have Terraria-esque autoclimbing in the game.

quigley-c commented 4 years ago

How were you imagining this @codeandkey? Would it benefit us more to use half-height platforms or try to implement slanted collision?

To put it another way, do we want things like ramps and momentum conserving platforming or is that an unnecessary addition?

codeandkey commented 4 years ago

I think we should keep the player decoupled from the physics engine and roll our own collisions. A 1/8 or 1/4 size block might be a good size for the collision resolution, which should allow us to create stairs and other slopes.

codeandkey commented 4 years ago

With much optimization it also might be worth it to just implement pixel-perfect collisions on a certain world layer.