I needed collisions for ongoing Doom-style FPS, without full physics but with the convenience of bump.lua. Specifically, I needed walls and circles to represent the player and things in the world. Splash.lua is my ongoing generalized implementation of that. If you don't know what bump.lua is, check it out.
The above demo is in the github repository, so If you want to run it, just download the repo and follow the instructions on github.
Code: (Github Repo)
In regards to bump.lua:
Still incomplete at this point, but Splash.lua has most of bump's functionality. The only thing missing that I can think of is a bounce collision response and custom responses, but there is probably more. Also, bump is better tested and simpler to use at this point. But I'm working on it! I have not intended to replace bump.lua, but to generalize it a bit.
Biggest TODOs:
- Implement more sweep functions, like sweeping a circle against a line segment. This would be very useful for games like top-down shooters, where a player could be a circle and walls would be line segments. Seeing as this was one of the reasons for Splash.lua, the current lack of this is annoying.
- Add a bounce collision response and custom responses. This shouldn't be too hard, (knock on wood).
- Add real tests to the specs. Right now it's just some simple tests that will pretty much always pass.