Category Archives: Programming

A pullable view implementation (like Notification Center)

For an app I’m designing at the moment I had the need to use a pullable view (sliding drawer) similar to how the iOS 5 Notification Center works, where you can flick or drag a handle to reveal or hide … Continue reading

Posted in Programming | Tagged , | Leave a comment

Cry me a river

I’ve always given special attention to water effects in games. It’s something that usually has no impact on gameplay (exceptions are games that use water as its core mechanic, such as Sprinkle), but it makes all the difference in truly … Continue reading

Posted in Art, Development diary, Programming | Tagged , | Leave a comment

Revisiting the RPG text box, now with UIKit

A while back I shared a piece of code which implemented a traditional RPG-like text box using cocos2d. Recently a commenter asked how he would go about doing something similar using UIKit, so I decided to include a new implementation … Continue reading

Posted in Programming | Tagged | 1 Comment

Resizable decorated box using cocos2d

This week’s code snippet is really simple, but still useful. With the DecoratedBox class you will be able to use a single texture to draw bordered boxes such as this: This can be used to create a background for menus, … Continue reading

Posted in Programming | Tagged , | 5 Comments

The dreaded “no new content” post

Well, it finally happened. Other obligations have kept me from writing so unfortunately this iDevBlogADay post will not have any new content, but I’d still like to take this chance to bring to light some older posts (from before iDevBlogADay) … Continue reading

Posted in News, Programming | Tagged | Leave a comment

Java-style servlets in Obj-C using Mongoose Server

Continuing the series of code snippets, in this post I’ll introduce a wrapper class for the Mongoose web server which tries to emulate the concept of Servlets, common to Java developers. While this code was not written with our games … Continue reading

Posted in Programming | Tagged , , | 5 Comments

Positional audio with cocos2d and CocosDenshion

If you are creating a game project using the cocos2d XCode project template, there’s little reason not to use CocosDenshion for your audio needs. It’s already there, requires minimal configuration, it’s easy to use and it allows you to go … Continue reading

Posted in Programming | Tagged , , | 6 Comments

Leveraging cocos2d actions for cutscenes

Hello iDevBlogADay This is our first post in iDevBlogADay (thanks @mysterycoconut for all your hard work!), but I’ll not waste your time with lengthy introductions. If you want to know more about Crocodella Software, take a look at the 1-year … Continue reading

Posted in Programming | Tagged , | 6 Comments

RPG-like text box with Cocos2D

One of the most striking characteristics of classic JRPGS is the use of text boxes for conversations, where the characters appear one by one and the player can advance to the next page when the current one is finished. In … Continue reading

Posted in Programming | Tagged | 26 Comments

Using AVPlayer to play background music from library

With the release of iOS 4, Apple finally allowed some sort of multitasking for apps running under it. One of these (and for some, the most important) is background audio, so users can continue to listen to the audio your … Continue reading

Posted in Programming | Tagged | 8 Comments