Packt Publishing has notified me that they released a cococ2d programming book. Here’s their press announcement: “Packt is pleased to announce Cocos2d for iPhone 0.99 Beginner’s Guide, a new book which helps in building fun and exciting iPhone games using the cocos2d for iPhone framework. Written by Pablo Ruiz, this book will help programmers make […]

One of the challenges faced when developing applicationf for the iPhone and iPad is the memory limitation.  These devices understandably have much less memory than a computer, so careful memory consumption is essential. cocos2d version introduces several improvements, and one of them is the ability to select the color-depth for sprites.  This is a good […]

If you are getting this kind of error when compiling with Cocos2d for iPhone, then see the solution below. Line Location Tool:0: collect2: ld returned 1 exit status Line Location Tool:0: symbol(s) not found Line Location Tool:0: -[Texture2D(PVRTC) initWithPVRTCData:level:bpp:hasAlpha:length:] in Texture2D.o Line Location Tool:0: -[Texture2D initWithData:pixelFormat:pixelsWide:pixelsHigh:contentSize:] in Texture2D.o Line Location Tool:0: -[EAGLView _createSurface] in EAGLView.o […]

Here are some issues that may happen when upgrading from Cocos2d version 0.71 to 073 (make sure to back-up your project before making changes as these are based on experience and may not work for you): The screen might turn blank (depending on how you configure your application). Possible solution: Remove MainWindow.xib from the project. […]

This is some examples for the topic discussed in https://permadi.com/blog/2010/03/cocos2d-color-depth-and-memory-optimizations/ kTexture2DPixelFormat_RGBA4444 Notice the severe banding. kTexture2DPixelFormat_RGBA8888 kTexture2DPixelFormat_RGBA4444 kTexture2DPixelFormat_RGBA8888 kTexture2DPixelFormat_RGBA4444 kTexture2DPixelFormat_RGBA8888

When using the Director on Cocos2d and you have a Scene object in the window, your program will not receive touch events. So, your UIApplicationDelegate implementation will not receive touchesBegan notification. You can override this behavior by   1) implementing the TouchEventsDelegate protocol, which has the following specification: 2) Associate the event handler with the […]

In this example, we will use Cocos2d’s scripted animation to create a bouncing ball animation. This example assumes familiarity with setting up a simple cocos2d project.  Please review the previous guides if necessary.  The example below is based on the cocos2d example named Click And Move which came with the cocos2d package. Note: this guide […]

Hello Cocos2d
April 8, 2009

This is a guide to create a Hello World application for cocos2d.  If you have not installed and compiled the Cocos2d successfully, then follow the previous guide here. Note: this guide is written for cocos2d version 0.71. If you are using 0.73 or later and are having issues, check the following post: https://permadi.com/blog/2010/03/cocos2d-compiling-hint/ https://permadi.com/blog/2010/03/cocos2d-for-iphone-migrating-0-71-to-0-73/ Step1 […]

Coco2d is an SDK geared toward games development for iPhone and iTouch.   It was originally written for Phyton language.  It is licensed under GNU LGPL. Where To Download: http://code.google.com/p/cocos2d-iphone/ Requirements: Mac running Mac OS that supports the iPhone SDK (mine is Mac OS 10.5.6) Xcode version 3 or newer iPhone SDK For help on installing […]