curioustorvald / Terrarum

Modular game engine for a side-scrolling tilemap platformer, and a game that runs on top of it
Other
13 stars 0 forks source link

Player can clip though walls if x == 0 #38

Closed curioustorvald closed 3 years ago

curioustorvald commented 3 years ago

Screenshot_20210708_112559

There is some "resistance" while you're doing the manoeuvre, but physics does not completely block the player from going left

curioustorvald commented 3 years ago

on detecting collision, hitbox's x-y coords were rounded toward zero instead of negative infinity