Showing posts with label cocos2d. Show all posts
Showing posts with label cocos2d. Show all posts

Saturday, 12 January 2013

Tank Rampage's Tank 2- Tracks



            Tank Rampage’s tank is our pièce de resistance. It’s build up from 25 separate sprites and 27 joints. Its movements are fully simulated, including the tracks and antenna.  
Making simulated tank tracks in Box2D is not as straightforward as it sounds.

Friday, 11 January 2013

Tank Rampage's Tank 1 - Barrel


Tank Rampage’s tank is our pièce de resistance. It’s build up from 25 separate sprites and 27 joints. Its movements are fully simulated, including the tracks and antenna. 

Sprites & Spritesheets


Sprites
            CCSprite is one of the most important classes of Cocos2d. A CCSprite contains an image & GL square (that determines the size of the texture) and values such as position, z-value, scale etcetera.

Thursday, 10 January 2013

Cocos2d position best practice

This will be a short post about the best way to handle position in your Cocos2d project.

The structure of a Cocos2d project


A Cocos2d project has a buildup somewhat comparable to applications such as Adobe Photoshop. 
A Cocos2d game consists of scenes, which contain layers, which contain sprites, labels and other objects.

The advantages of Cocos2d


When developing an iPhone game it is advisable, especially as a beginner, to not spend the time and effort needed in order to develop your own game engine. Unless the game needs a very advanced feature, the engines currently available on the market (both open source and commercial) are up to the task.