phoboslab / Impact

HTML5 Game Engine
MIT License
1.99k stars 204 forks source link

Fix collisions when moving from one-way to slopes #92

Open matt-flaig opened 2 years ago

matt-flaig commented 2 years ago

When moving from one-way tiles to upward slopes, entities would get stuck at the edge of the slope and require upwards momentum to be able to continue moving forwards.

Here's a sample entity trying to move up a slope from a one-way tile, previously: Before

Here's the entity freely moving up the slope with this fix: After