Labs

It works in my machine!

SynthesizeSingleton Macro

without comments

Reading Learning iOS Game Programming book by Michael Daley, i found this handy class created by Matt Gallagher. SynthesizeSingleton macro enables you to turn a class into a singleton class simply by adding a line of code to your header and another to your implementation. The intent of the Singleton pattern as defined in Design Patterns is to “ensure a class has only one instance, and provide a global point of access to it”.

Read the rest of this entry »

Written by Raúl

November 15th, 2010 at 3:31 pm

Posted in General, iphonedev

Tagged with , ,

KissXML

with one comment

KissXML was inspired by the TouchXML project, but it was created to add full support for generating XML as well as supporting the entire NSXML API. KissXML is a good approach for parsing xml data, and the x-path functionallity makes it more powerful, you could also use NSXMLParser, it’s not bad but it’s very very slow and it uses lots of memory.

Read the rest of this entry »

Written by Raúl

November 4th, 2010 at 3:22 pm

Posted in General, iphonedev

Tagged with ,

Getting started in to iPhone Game Development

with 2 comments

this past weeks have been exciting!, i decided to give it a try to iphone game development.
to get into it, i read the “Head First iPhone Development” book.

Head First iPhone Development

Read the rest of this entry »

Written by Raúl

November 2nd, 2010 at 8:48 pm

Posted in General, iphonedev

Tagged with ,

Robotlegs + Twitter + Flint2.2 example

without comments

here’s a demostration of using robotlegs with Twitter API and the new features of Flint v2.2
thanks to Richarld Lord for the updates they’re really great!

enjoy: http://github.com/rauluranga/robotlegs-examples-TwitterFlint.

Written by Raúl

August 31st, 2010 at 6:49 pm

Posted in AS3, RobotLegs

Tagged with , ,

Robotlegs Modular Example

without comments

i can explain all the code, step by step but i think it’s more interesting
if you go and put your dirty hands on it!

http://github.com/rauluranga/robotlegs-modular-example

just remember Mr. ModuleEventDispathcer it’s the movie star.

Written by Raúl

August 13th, 2010 at 11:47 am

Posted in AS3, RobotLegs

Tagged with ,

I’m on Twitter!

without comments

yes!, believe it or not finally i gave up and i decided to give it a try

http://twitter.com/rauluranga

Written by Raúl

August 12th, 2010 at 11:23 am

Posted in General

C4RL05 Ulloa did it again!

without comments

i can just say WOW!, C4RL05 Ulloa just continue amazing me, now with this incredible racer game made it in Unity3D go now and play it!

Written by Raúl

August 11th, 2010 at 12:00 pm

Posted in General

Tagged with

as3isolib Isometric Library

without comments


i’m going to start a personal project using an isometric view, and i just find about as3isolib
it´s a very useful library that could help you in building your own isometric game.

i uploaded already a few examples on GitHub, and i will continue uploading more examples on the road.
http://github.com/rauluranga/as3isolib-demos-bundle

you can find more info here and here.

cheers!

Written by Raúl

July 29th, 2010 at 4:53 pm

Posted in AS3, General

Playing with GitHub!

without comments

i started learning how GitHub works and created a new project http://github.com/GrupoW;
Learning git it’s a little bit more complicated than SVN, and if you are in MAC, installing it is another history! (you can go to this page for little help)
I´m going to start porting all the GrupoW googles repository to GitHub, yes……… i could export/import from SVN to GitHub but i also want to refactor some classes and remember, i´m doing this for learning purposes and because everybody is talking about git!!!.

so let’s start sharing code!

Written by Raúl

July 20th, 2010 at 11:30 pm

Posted in General

Tagged with ,

Weakreference + Robotlegs

without comments

yesterday i was wondering why i just couldn’t get the eventMap.mapListener to work as expected.

in my mediator class i have the next code:

1
2
3
override public function onRegister():void  {
	eventMap.mapListener(view, CustomEvent.CLICK, onClick);
}

the onClick handler never happens… (using Flash CS4)
but if i change that line to this:

1
view.addEventListener(CustomEvent.CLICK, onClick)

it works!

it also works with:

1
eventMap.mapListener(view, CustomEvent.CLICK, onClick ,CustomEvent,false,0,false);

after two hours of digging in, downgrading Robotlegs version, downgrading Flash IDE version, changing from PC to MAC, i just realized that i needed to ask to google san. (yeah!! after two hours i just realized that!, can you believe it??)

made the next search: “Weakreference + Robotlegs

google’s response: 0.37 segs
google’s first result

my fix was, changing this:

1
2
3
4
5
6
7
8
public class Main extends MovieClip {
	public function Main() {
 
		var context:MainContext = new MainContext(this,false);
		context.startup();
 
	}	
}

for this:

1
2
3
4
5
6
7
8
9
10
public class Main extends MovieClip {
	private var context:MainContext;
 
	public function Main() {
 
		context = new MainContext(this,false);
		context.startup();
 
	}	
}

the GC was only doing his duty!
man, if i would have asked to google before, it would have saved two hours of my lifetime!.

Written by Raúl

July 14th, 2010 at 12:31 pm

Posted in General