dummey / CS50-Cohort-Project-Redux

2 stars 0 forks source link

Enhance collision detection performance by moving shapes into different layers #21

Closed jbtule closed 9 years ago

jbtule commented 9 years ago

We should put shapes in the the bit mask layers so it doesn't spend the effort for calculating collisions when we don't care.

So Player: 1 (0b01) Laser_beam: 2 (0b10) UFO & Asteriod: 3 (0b11),

jbtule commented 9 years ago

depends on issue #17

emeraldvision commented 9 years ago

I think UFOs should collide into asteroids, killing the UFO and breaking the asteroid into smaller pieces (similar to player).

jbtule commented 9 years ago

@dummey completed this issue in commit fb5a833430c0f5ea58b186b279640c889d2f1374