Bitmap collisions somehow?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
ffive
Prole
Posts: 16
Joined: Wed Oct 22, 2014 3:22 pm

Bitmap collisions somehow?

Post by ffive »

Is it possible to check bitmaps for collisions (overlapping of opaque pixels) in love2d?
.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙
User avatar
pgimeno
Party member
Posts: 3550
Joined: Sun Oct 18, 2015 2:58 pm

Re: Bitmap collisions somehow?

Post by pgimeno »

I do that in Thrust II reloaded. See https://github.com/pgimeno/Thrust-II-re ... e.lua#L456

Note I use small sprites and a separate collision shape image.
User avatar
ffive
Prole
Posts: 16
Joined: Wed Oct 22, 2014 3:22 pm

Re: Bitmap collisions somehow?

Post by ffive »

Thank you.
.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙
Post Reply

Who is online

Users browsing this forum: No registered users and 96 guests