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

UISlider can be skinned to produce output like these: There are three sections that you can change: The bar portion on the left side of the thumb, using setMinimumTrackImage:UIImage The bar portion on the right side of the thumb, using setMaximumTrackImage:UIImage The thumb, using setThumbImage:UIImage For the UIImage, you will most likely need to stretch […]

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

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

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

1 2 3 4