Home Game Development Looking for simple gravity + collision Javascript library for platformer game

Looking for simple gravity + collision Javascript library for platformer game

0
Looking for simple gravity + collision Javascript library for platformer game

[ad_1]

I’ve been looking all over, but all the libraries I’ve found seem to fall into two categories: “Everything and the kitchen sink,” or “We detect collisions, but don’t actually resolve them.”

I first tried making my own from scratch and got about 90% of the way there, but there seemed to be an infinite amount of weird edge cases to deal with where it’d make more sense just to use a library for the time being.

I’m currently using MatterJS, but getting precise platformer movement (i.e. when you let go of the button the player stops moving) is a massive PITA since Matter wants to do everything “properly,” by simulating momentum and stuff, which is the opposite of what I want.

All I need is gravity + box collisions. Anyone know of a simple stripped down library like that provides this? Honestly, even just proper collision detection/resolution would be OK as I can do gravity myself.

[ad_2]