Hey all.
So I have been working on this for quite some time now and i just cant seem to figure out what method would be the best. I have a dodge ball type game that i am making and I will have 3 sprites on each side. 3 controlled by user and 3 by computer. and then some balls. what i need to do is have a collision detection method that will figure out which sprite was hit and according to that run an action. such as take away one life from that specific sprite. which method would be the easiest for this. chipmunk seems a little to much for what i need, and i haven't looked into box2d.
Thanks
-Lars
Which collision detection method to use for dodgeball type game?
(4 posts) (2 voices)-
Posted 2 years ago #
-
Besides collision detection, I would think chipmunk would come in handy for the dodge ball movement - like velocity and bouncing.
If you ONLY need collision detection, you may want to consider home grown.
Posted 2 years ago # -
Yeah all i need is collision detection that will do an action to the certain sprite it hits.
Thanks
-LarsPosted 2 years ago # -
I have the same requirement - collision only. I went down the chipmunk path myself, but tonight I will write my own collision detection. Basically maintaining an array of collide-able objects that will check for collisions each step. I like lightweight solutions but I'm not 100% sure my solution will be any better/faster. I read that chipmunk collision detection is quick.
Posted 2 years ago #
Reply
You must log in to post.