Well, after procrastinating for a while, I finally published my first iTunes Mac App Store app, which you can see here: https://itunes.apple.com/us/app/jigsaw-summer-joy-puzzles/id659813149?ls=1&mt=12.  This is not a mobile app, but a desktop version built for Mac OS  from the same code base that has been used for mobile builds here: https://itunes.apple.com/eg/app/jigsaw-summer-joy-puzzles/id659813149?mt=12.   I want to share my experience in […]

Using UIWebView is an efficient way to make an About screen, Help screen, or other sort of hard to layout. Consider how easy it is to lay out your ‘page’ in html, instead of having to build it using Interface Builder. You can even use JavaScript and add interactivity if you want. You can even […]

ARC is a good idea; however it may cause issues when using old libraries or if you have some code which use it and some which don’t. You might also accidentally clicked on it when creating the project and decide, no, I don’t really want it. ARC is not a bad idea, but it will […]

iOS 5 introduces something interesting, which is some sort of Facial Detection capability. Right now it only detects the position of eyes and mouth but expect it to have more in future iOS versions. First, the requirements: Compile with iOS SDK version 5 or later You need to include CoreImage.framework into your project. Your build […]

Have some free-time? Interested in AI programming? Then why not download one of our iPhone and iPad apps. Free for a limited time — click here. Don’t have an iPhone or iPad? Play the Java applet here. Background The puzzle 8 – also known as the sliding-block puzzle or tile-puzzle – is one of the […]

Continuing from: https://permadi.com/blog/2009/05/dashcode-invader-using-dashcode-to-create-a-game/ Base class for the objects in the game. Let’s consider what objects will be in our game. I can think of three-types: Player ship Enemy ship Bullet These objects have in commons these charateristics: They all have positions. They all can move (needs speed variable). Let’s call the base class GameObject from […]

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

1 2 3 4