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 http://www.w3.org/TR/css3-flexbox.

Features:

VerticalBox
HorizontalBox
FlexibleBox

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 angelcode.com.
So I made one myself using Processing.

https://github.com/icedman/fntbuilder

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);

//builder.build("abcdefghijklmnopqrstuvwxyz1234567890!ABCDEFGHIJKLMNOPQRSTUVWXYZ");
builder.buildInMatch("[a-zA-Z0-9`~!@#$%^&*()_+-={}/[/];':\"<>]");
//builder.buildAllCharacters();

builder.saveFNT("myfont");

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


Animated Pixel People ~ Again

Posted: January 2nd, 2013 | Author: | Filed under: Development | No Comments »

BVH animation files
+
Minecraft skins
=
Animated Pixel People
ken

spy

trooper


Animated Pixel People

Posted: March 14th, 2012 | Author: | Filed under: Development | No Comments »

I’ve started a little 2D skeletal animation tool. I plan to use this with the pixel people that I could already generate using my other tool.

So far the progress looks encouraging.


Poker Project

Posted: December 19th, 2011 | Author: | Filed under: Development | No Comments »

I was just commissioned to create a online poker game.
Before doing any work, research is always needed. No need to reinvent the wheel. I think there are many poker libraries that I can use.

Here is a list of poker hand evaluators.

Game Engines


Eclipse Errors

Posted: December 7th, 2011 | Author: | Filed under: Development | No Comments »

Once in a while Eclipse crashes. And refuses to startup afterwards.
There are many info on the net the doesn’t always help.

Here are the steps that i try for fixing this Eclipse/xulrunner related/XPCOM error.
In no particular order.

$ gedit /.eclipse/org.eclipse.platform_3.5.0_155965261/configuration/.settings/org.eclipse.ui.ide.prefs
$ eclipse -clean
$ rm -rf /workspace/.metadata


MMO Development

Posted: December 7th, 2011 | Author: | Filed under: Development | No Comments »

Research for a socket server solution for multiplayer games, I came across these:

player.io – A socket server framework with features that are useful social gaming. Includes hosting plans

commercial socket servers
smartfoxserver
photon

open sourced socket servers
reddwarfserver
SlimIOCP

comparison chart

open source poker game
http://code.google.com/p/bluffin-muffin/

socket.io (javscript interface)

Haven’t really tried any yet. But I might have to choose one or look for more options in the coming days.


Android Painter

Posted: November 29th, 2011 | Author: | Filed under: Development | Tags: , | No Comments »

I’m looking to see if I could make a good painter’s tool for Android Tablets

These are my notes:

Android-Cairo
git clone –recursive http://github.com/anoek/android-cairo.git
make // add ndk path to $PATH

MyPaint
http://mypaint.intilinux.com/
their Brush Engine looks really cool


Voxels 128

Posted: October 29th, 2011 | Author: | Filed under: Development | No Comments »

This is a voxatron-like engine using irrlicht3d.

Voxel Engine 128x128x64 view only

Here is a raycast version of the engine

Download Demo