iOS, Android, Games, and Source Codes

Flexible Box Layout for Cocos2d [updated]

Posted: May 23rd, 2013 | Author: | Filed under: Development | No Comments »

This is a flexible box layout for cocos2d-iphone partly based on w3c recommendation



Properties supported

justify : (start | end | center | spaceAround | spaceBetween )
align : (start | end | center | stretch)
grow :
direction : (row | column)

The layout handler is decoupled from the cocos2d node and modifies only the position.

flexible box layout

Read the rest of this entry »

Tones – a Piano App

Posted: May 18th, 2013 | Author: | Filed under: Development | No Comments »

This is a shot of my Piano App.

circus gallop

And a video of it in action.

FntBuilder with Processing

Posted: May 17th, 2013 | Author: | Filed under: Development | No Comments »

I got frustrated trying to find a free bitmap font builder on MacOS. On windows, I used BmFont over at
So I made one myself using Processing.

This is purely a developer’s tool. No GUI. Build the bitmap font through java code.

Screen Shot 2013-05-17 at 9.45.05 PM

Creating a font file is quick.

Builder builder = new Builder();
builder.init(256,256,"Marker Felt", 18);
//builder.init(128,128,"ufonts.com_maestro.ttf", 32);
//builder.init(128,128,"fayet_scripts.otf", 32);

builder.smooth = true;
builder.charPadding = 10;
builder.charSpacing = 2;
builder.textColor = color(255,0,0);



img = builder.renderAllPages(512,512,true);