Pixel perfect collision in lua (SOLVED)

I need a custom module for collision.
Something like pixel perfect collision.
In game i have a pixel screen. And all object a also pixels. So i need to make pixel perfect collision.
I read some articles, which says that i can use bitmask and bit operators to make such type of collision. Looks like it fast, and what i need. But in lua i can’t use bit and bit operators.

How can i make such collisions?

Sure you can: API reference (bit) It might not be super performant but it’s certainly possible.

2 Likes

Awesome, that what I need :grinning: