Good morning guys, following my last tutorial “Tutorial Cocos2d – 3: Adding a Joystick to your iPad/iPhone Game”. Today I will show a little of collisions for Cocos2D.
Well we have a lot of different algorism for collisions, some of them is a little more practical and simple and that is what we are doing today.
The first code we will be workin on is Rectangle collision. Well, what is it?
it is very simple, around our Sprites we “draw” a simple “Rectangle” to check the collision, of course the algorithm is not very accurate over the true sprite’s borders, but it is very practical, simple and “light”.
Here I will continue from where we stopped from my last tutorial, if you are here just for the collisions try to follow bellow and if you have any question or problems post your comment asking, I will do my best to help.
Continue reading “Tutorial Cocos2d Create Your Simple Game – 4: Simple Sprites Rect Collision Detection and GameOver Screen” →
Like this:
Like Loading...