Tutorial Cocos2d Create Your Simple Game – 5: More Rect Sprites Collision Detection, Random Values and Adding Score

Hellow. πŸ™‚

Today we will continue our game, checking some more collisions and adding a Score System to our game. πŸ˜‰

Screen Shot 2013-03-05 at 4.22.26 AM

Before to start, if you’re following this tutorial’s series from the beginning (you may check the preview tutorial HERE) Continue reading “Tutorial Cocos2d Create Your Simple Game – 5: More Rect Sprites Collision Detection, Random Values and Adding Score”

Tutorial Cocos2d Create Your Simple Game – 4: Simple Sprites Rect Collision Detection and GameOver Screen

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”