capalmer1013 / 2d-survival

2 stars 3 forks source link

generalize collision detection #9

Closed capalmer1013 closed 2 years ago

capalmer1013 commented 2 years ago

list of tuples of (type, type) and implement collide(type) method for both to handle their collision logic in the collision checking function just do a nested loop of all objects of type a and type b and run their collision logic