I release this under the CC0 1.0 license: https://creativecommons.org/publicdomain/zero/1.0/
This a simple collision system I wrote for fun. It can handle hit boxes with varying sizes and with different amounts of reference/sample points. It can handle collisions using tiles or used x/y positions from objects.
Also, in this example there's code for an 8 way movement system with acceleration and sliding along walls.
The code is VERY commented, so you can follow along and see what each part of it is doing/why it's there.
Feel free to use this in any sort of project.
If this was useful to you, consider buying me a coffee: https://ko-fi.com/profpatonildo70266
[Please log in to post a comment]