UPDATE: It’s been 2 years, and I am using Cocos2d again, and I discovered that the old Hiero binary seems … More
Tag: cocos2d
Review: Cocos2d for iPhone 0.99 Beginner’s Guide
This book is written by Pablo Ruiz, a very active member of the Cocos2D iPhone community forums, he even helped … More
How to have an “add” effect in Cocos2D?
This code imitates the “add” effect from Photoshop. [sheet setBlendFunc: (ccBlendFunc) { GL_SRC_ALPHA, GL_ONE }];
How to load and animate multiple spritesheets in Cocos2D?
The problem: I can’t fit all my animation frames in one spritesheet, so I made two, can I use multiple … More
Code Tip: How to move your Cocos2D sprite in the direction of a rotation?
From the Cocos2D forum: ccpForAngle(angle) will return a normalized directional vector for angle (in radians). You can multiply that vector … More
Code Tip: How to optimize bullet hell shooters?
Pencil Logic (TwinThumbs) made a game called I.S.U.D. (It Shoots, You Dodge), which is basically a crazy bullet hell game … More
Code Bit: How to flip your Cocos2D sprite?
sprite.flipX = -1; sprite.flipY = -1; Sprite is well… your sprite, and then flipX to flip horizontally, while flipY to … More
Code Bit: How to speed up or slow down your Cocos2D game?
Place this anywhere in your code (prolly triggered by a button or an event): [[CCScheduler sharedScheduler] setTimeScale: timeScale]; For speeding … More