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 […]

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

There are times when you might want to capture the screen for demonstration or tutorial purposes.  The easiest way is using the ddms application included in the Android SDK (http://developer.android.com/sdk/index.html).  This example is using Android SDK 2. Connect your phone with the computer Goto the folder where the Android SDK is, (and under tools folder) […]

There have been some questions about whether you need to be a paid developer to get the SDK. The answer is no, at least at the time I wrote this, there’s still a non-fee option to register.  Refere to this post, https://permadi.com/blog/?p=17, for more information. Note: Registering as a Free Developer enables you to download […]

Flash Gaming Summit 2010
February 13, 2010

The second annual summit will be held in San Francisco in March.  Participants include Mochimedia, Adobe, Kongregate, Traffichoney, and Gabob.  For more details, see http://www.flashgamingsummit.com/

Xcode Tips
June 9, 2009

More tips can be found in this other post: https://www.permadi.com/blog/2009/05/apple-xcode-shortcuts-and-tips/. Creating Classes Diagram There’s a handy feature to create class diagrams in Xcode, using Class Model feature.  To create a diagram for the whole project, select the project name in the Group & Files panel. Then select Menu->Design->Quick Model->Class Model.  You will be asked to […]

Using iPhone SDK 2.1.   Background User Preferences are data and settings that are saved by your application.  The iPhone OS has a mechanism that enables an application to “associate” its settings with the default iPhone user interface.  You can access applications settings by selecting the Settings icon in the main iPhone screen.  Try it […]

This tutorial assumes basic familiarity with Cocos2d on iPhone.  For Cocos2d introduction, please see this install guide, and Hello World guide.  This tutorial covers Cocos2d version 0.7.1. Introduction Transitions are effects such as: wipe, fade, zoom, and split.  You can use transitions to switch between Cocos2d Scene objects.  Scene class is derived from CocosNode and […]

In this tutorial, we will continue building a simple space-invader type game. We will be continuing from the tutorial presented in Part1 at https://permadi.com/blog/?p=1131; however, we are making some major changes, and I’ll explain why. The first change has to do with restructuring the CSS code so that most of the objects within the game […]