Apr 13, 2010

Spring Cat

Welcome to the second Game Inventor!

An anonymous challenged The Game Inventor with this request: a Cat must Jump in a Forest when the user Presses some Keys to Eat.
Since I were out of time with my relocation, I used again the physaxe library.
There are some static objects and some clouds with isStatic to true.

This time I added some animated birds using swfmill frames.
Again, the drawing program is InkScape but this time the drawer is Nieves ;-)
Since she used some heavy filters on top of svg files, we preferred to export the graphics in png format.

On this game I had some problems since Nieves was drawing while I was programming. At the end, the physics objects were not aligned with the two trees' branches. The solution was quite easy: divide the background into two different png: a transparent foreground image with trees and a solid background.
By drawing the physaxe world and the foreground, you can simply align the physics elements with the image details. After that, you can avoid to draw the physaxe world and reactivate the background drawing.
To play the SpringCat haxe game, use the left and right arrows keys to change the cat angle and press the space bar to jump.
You must eat all the 5 birds to win.

Post your Best times as comments of this post ;)
Mine is 24 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 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

Jan 28, 2010


Welcome to The Game Inventor!

In this web site you can fill in the Inventor's form and I'll develop a simple flash game using your hints.
I started this blog to make experience with the haXe programming language.
You can find out how to install haXe in http://haxe.org/ .
The good things about this "new" language are:
- it can use all the ActionScript 3 libraries;
- it can compile for Flash, PC, Mac, Linux and iPhone;
- it is free!

Send me your game idea and please... don't blame me for the graphics! :-)
I hope you'll enjoy my blog!
Read more


Read more

Jan 26, 2010

The Game Inventor

Read more