iOS indie developers writing every day about their stuff.

Particle systems with fade in and out in cocos2d

Fábio Rodella
crocodella.com.br

Particle systems are defined in cocos2d by the start and end states (color, size, rotation, etc.), and then the engine interpolates between these values throughout the particle’s lifetime. However, that means that your particles can smoothly fade in or out, but not both. In this post I provide a simple CCParticleSystemQuad subclass that allows you to do this. Continue reading →

A pullable view implementation (like Notification Center)

Fábio Rodella
crocodella.com.br

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 →

Cry me a river

Fábio Rodella
crocodella.com.br

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 →

Project A Dev Diary – Part 4

Fábio Rodella
crocodella.com.br

It’s been a while since we shared what has been going on with Project A. For the last few months we have been working as much as we can and rushing to get a playable build of the game submitted … Continue reading →

Revisiting the RPG text box, now with UIKit

Fábio Rodella
crocodella.com.br

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 →

Project A Dev Diary – Part 3 (and a bonus)

Fábio Rodella
crocodella.com.br

For the third installment in this developer diary series, we decided to change things up once again and do a screencast. In the following video you can see some of the gameplay scenes from our upcoming RPG, Project A. If you are getting to our website for the first time, be sure to check out [...]

Project A Dev Diary – Part 2

Fábio Rodella
crocodella.com.br

Click here to see the first part Work on our RPG, Project A, has hit a major stride and as we work relentlessly everything is starting to come into place, with the result looking more and more like a game every day, instead of a big mash of components and tests. Today I will share [...]

Revealing Project A

Fábio Rodella
crocodella.com.br

Since iDevBlogADay is going through some changes, I’ve decided to change things up a bit around here as well. For this week’s post, instead of a code snippet I’ll officially start to write about our top-secret project, which is called… …PROJECT A! (Sorry about that, we do have a name in mind for the game, [...]

Resizable decorated box using cocos2d

Fábio Rodella
crocodella.com.br

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: Pretty box! This can be used to create a background for menus, dialog boxes, prompts, buttons or any other element in your cocos2d game. It [...]

The dreaded “no new content” post

Fábio Rodella
crocodella.com.br

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) which contain useful code snippets: RPG-like text box with Cocos2D Using AVPlayer to play background [...]