Log In  

Cart #moveandcollision-0 | 2022-06-02 | Code ▽ | Embed ▽ | No License
3

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

P#112642 2022-06-02 19:42


[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2022-12-06 23:00:55 | 0.005s | Q:10