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”

Tutorial Cocos2d Create Your Simple Game – 3: Adding a Joystick to your iPad/iPhone Game

Screen Shot 2013-02-04 at 5.38.40 PM

Hello Guys, sorry for the lack of updates here, I’m working a lot on the My Project”s Sprites, it is really a GREAT problem, and takes a long time, but today, We are just following my last Tutorial HERE.

And today we are going to work over the Game Play and Add a Simple Joystick Pad for our Game.

Open your XCode and load “our” project from Continue reading “Tutorial Cocos2d Create Your Simple Game – 3: Adding a Joystick to your iPad/iPhone Game”

Tutorial Cocos2d Create Your Simple Game – 2: Creating the “Start Game Screen” for your iPod/iPhone/iPad Game

Hello Guys, today we are going to learn how to create a “Start Game Screen for your iPod/iPhone/iPad game with Cocos2d.

Before Begin, you must haveĀ  XCode and Cocos2d installed in your iMac computer and if you haven’t, you can read my previous tutorial and install it. JUST CLICK HERE.

Let’s begin.

Screen Shot 2013-01-26 at 4.42.06 AM

First of all open your XCode and Create a new Project, this screen bellows will pop up, choose cocos2d on the left part bellow of: “iOS, Application, Framework & Library, Other” and choose again cocos2d Continue reading “Tutorial Cocos2d Create Your Simple Game – 2: Creating the “Start Game Screen” for your iPod/iPhone/iPad Game”