Feb 6, 2010


I'm back with THE FIRST GAME INVENTOR!!! :-D

TaconesSinTapas challenged The Game Inventor with this request: a Tomato must Eat in a Fridge when the user Presses a Key to Become Ketchup.

For this game, I choose to play with the angular velocity of the tomato.
Again, I used the fast physaxe library to build add static objects to the world and I added some graphics on top of it. The news about this game is that all the background graphics are loaded from a resource file created with swfmill.
The program I used to draw the background is another great open source application: InkScape.
I saved the InkScape file as a standard SVG and I wrote the resource.xml file.
I compiled it using
swfmill simple resources.xml resources.swf

Remember to add the
-swf-lib resources.swf
line to your compile.hxml file before to use the resource from your code with

To play the Salsa haxe game, use the left and right arrows keys to change the angular velocity of the tomato.
Remember: you MUST eat all the 5 aubergine slices before to enter in the blender.

Post your Best times as comments of this post ;)
Mine is 41 seconds!

To request your game, go to The Game Inventor page.

I also publish the source code hoping you'll find it useful. ;-)
Read more

Feb 1, 2010


Inspired by the classical italian game "Zicchinetta", I come up with this pinball-like game.
To score a point, you have to use the flippers to push the ball in the green zone.
Since this is more a proof of concept than a game, that are no goals to achieve or enemies to destroy... sorry :-)

This time I'll release the source code because the physaxe library has no documentation and I spent something like 8 hours to make the flippers work.
If your problems is, like mine, to move static objects, I can anticipate you the solution: set the isStatic field of your body object to true, update its position manually at every frame and call the world.sync function passing it the body reference.
Furthermore, use the phx.Shape groups variable to avoid collisions between your manually moved objects and the background static object. I used groups=1 for the background objects, groups=2 for the flippers and groups=1|2 for the ball.

Enjoy the Zicky flash game! ;-)
...and it's photorealistic fire effect...

Read more


So... let's start with my first flash game!
I wrote Ponxe in more or less 4 hours while I was taking the first haXe steps.
Since this is the first game, I'm going to tell you some details.

Since there are no decent IDE for haXe, I installed and used the fastest: geany.
Geany is freeware and compatible with linux and Mac (using macports).
The biggest obstacle I found programming Ponxe was the use of flash.display.Shape class.
You must remember to close each beginFill wit an endFill to avoid the overlapping of shapes that can cause holes in your final image.
Since there are a lot of tutorials for haXe basic concepts, I'm not going to release the source code of this game.
Enjoy Ponxe!

Read more