Tony Polinelli
Tarwin Stroh-Spijer

contact [at]
touchmypixel.com

6/25 Easey Street
Collingwood, 3066
Vic, Australia

+61 3 8060 5321

February 13th, 2014

December 29th, 2011

I realise this should have been posted almost a year ago, but better late than never right? This was our entry for the 2011 Game Jam (Melbourne), where we won the “best gameplay” award. Yay us. (2012 Game Jam coming up soon!)

http://touchmypixel.com/games/floodlight/

There’s also an updated version available that is a little harder, and is probably more like what I’d want to put out on a tablet. Have fun!

http://touchmypixel.com/games/floodlight0.2/

And I think the source is available soon

http://globalgamejam.org/2011/floodlight

December 23rd, 2011

There was some interest on the haxe mailing list about recordings from the inaugural haxecon, probably because of the new, bigger 2012 WWX to be held in Paris, France.

So I’ve finally got around to a quick edit of the sessions I recorded, and managed to put them online for listening enjoyment. Can’t promise the recording quality is great but should be some interesting things in there for those haxers.

If there are links to slides people have please email then to me and I’ll add them here too …

uFront/uForm : Web development made easy, Franco Ponticelli

haXe/C# and haXe/Java : implementation and applications, by Cauê Waneck

haXe Past Present and Future, Nicolas Cannasse
Sorry, I missed the beginning of this one

Making cross platform games in haxe, Tarwin Stroh-Spijer

Haxe in the Cloud – Lee McColl Sylvester

October 19th, 2011

You Were In My Dream, a project we helped out with last year, has been featured in IdN (see the article here).

You can see Isobel and Van’s new work “It’s a Jungle in Here” by heading over to Screen Space in Melbourne, between 13th and the 29th of October.

April 25th, 2011

We’ve been asked to give a presentation at FlashONGames, a Bay Area (read San Francisco, California) group that runs a regular meetup / mini conference normally held at Adobe’s headquarters in San Jose.

If anyone has anything they think I should talk about, or things I should show, please comment or email me directly at tarwin@touchmypixel.com.

Please come along if you’re in the area. You can also check a live stream out if you want to learn (laugh) from afar! You can register for either here (down the bottom).

FlashONGames: http://flashongames.com/

My Presentation: http://flashongames.com/post/4535797807/building-multi-platform-games-in-flash-html5-and

And for anyone who had trouble finding the address of where it’s being held, it only tells you during registration:

Adobe Systems Inc.
601 Townsend St.
San Francisco, CA 94103

March 30th, 2011

For the last few months I’ve been the technical editor on a book written by Emanuele Feronato, Flash Game Development by Example. It seems like a great book for Flash newbies, but I would warn that the syntax may read a little “old-school”.

Do you think there’s a need for a haxe version of this?

Read more here, or buy it here if you’re interested.

July 8th, 2010

We were asked to speak at the Monash Boot Camp a few months ago. It’s horrible how quickly these things come to be “oh my god it’s tomorrow I’m speaking” so we hope we did a good job.

The boot camp is run annually for kids (year 10, 11 and 12) and this year goes for a whole 7 days! There’s speakers from vendors such as Microsoft, Adobe and game publishers and studios and sound guys and game comps and a whole bunch of stuff. Seems pretty amazing.

We tried to talk about making small games. We hope we helped them a bit – kept them entertained for at least 50 mins which is good – and got a bit of a haXe plug in there if anyone was listening.

If you’ve never done public speaking before it’s really worth being involved in this kind of thing – get’s you over the fear pretty quickly.

The  guys on stage are Tony and Tarwin (from Touch My Pixel) and Andre Spierings (the Bunni Bunni guy!). So happy he joined us at the last minute – thanks for saving our arses!

You can now read all about it at Invest Victoria Games Blog as well.

- Tarwin (really hope I’m not forever remembered as “Tarwien“) Stroh-Spijer

February 22nd, 2010

I recently started on a 3D Flash job and was chuffed to find that Cauê Waneck has been porting Away3DLite to haXe. Anyway, suffice to say I was super-happy that I didn't have to do any AS3.

What's there currently is a direct port of the Away3dLite library, but in haXe. It makes a big use of the AS3 (FP10) native Vector (Vectora<Float>) so it's quite fast, but not directly portable to platforms other than Flash 10 yet. As far as I can tell performance is the same as, or similar to the FP10 AS3 release, but Cauê has assured me that he's having fun optimizing it.

Away3DLite is missing some functionality that is in the full version, things that I need for my current project, including the Morpher and AnimatedBitmapMovieMaterial classes. The first I've ported myself and the second has been ported by Cauê (thanks mate!).

So, here's a demonstration of Morphing working: Morph Test and here's another: Mouth Morph Test.

And the Morpher.hx class.

I had a lot of trouble getting it working to start with but it's pretty easy once you get the ideas down. The main problem I had was the fact that neither the Collada object, nor the Object3D you get from it when doing .parseGeometry() has any vertices, so I got nothing when I passed it to the Morpher. What I'd missed is that I need to get one of the children from the Object3D that I get from the Collada .parseGeometry(). This is because, as Bartek Drozdz points out, "a Collada file represents a scene, not a single 3d object".

The next thing to know is that you should wait for the ParserEvent.PARSE_SUCCESS events dispatched from your Collada objects. When these are done you can use .getChildAt(0) on your .parseGeometry(colladaData) object to get a Mesh which you can then parse to your Morpher. In my example I have:

Actionscript:
  1. m0 = cast c0.parseGeometry(daeData1); // used to restet Morpher to original state
  2. m1 = cast c1.parseGeometry(daeData1); // the model that I scene.addChild(m1) to
  3. m2 = cast c2.parseGeometry(daeData2); // the model to Morph to

As you should notice I'm using the same daeData for both m0 and m1. I make my new Morpher passing it m1, then on each enterFrame:

Actionscript:
  1. mp.start();
  2. mp.mix(cast m2.getChildAt(0), (1 + Math.sin(Lib.getTimer() / 150)) / 3);
  3. mp.mix(cast m2.getChildAt(0), (1 + Math.cos(Lib.getTimer() / 250)) / 3);
  4. mp.finish(cast m0.getChildAt(0));

Hope that helps someone else, I was stuck for days :(

Tarwin
Yay my first post in months!

February 3rd, 2010

We are working on a top down racing game, where the background scrolls vertically. This soulds like something flash should be able to do - no sweat! I've run into two issues:

1 - massive screen tearing - as the whole screen is scrolling vertically

2 - fluctuations in the processing time of frames, causes non-smooth motion (i think)

Here is a simple test of black balls falling down the screen. You should see tearing on the circles, rending issues (the bottom of the circle is cropped off sometimes) and jumpy verticle motion. I've tested on various computers+systems & it seems the issues running from worst to best are as follows:

VIEW TEST - maximise the window for most shocking results

WORST
mac osx
windows 7
windows xp x64
windows vista
windows xp
BEST

To me it doesnt make much difference between firefox, ie, chrome. Most tests were run on QuadCore 2.5ghz comps. Except windows XP, which is P4 3.0, and macbook 2.4. - funnily the slowest comp (p4) ran the best.

It is quite common knowlege that flash doesnt perform any doublebuffering or v-sync, to fix screen tearing. UnitZeroOne has a great article on this. Luckily flashPlayer 10 has a new WMODE - DIRECT, which seems to fix the issue a fair bit.  According to adobe it: "The direct WMODE will use your video card to paint pixels to the screen as fast as possible while freeing up your CPU to work on other tasks"

This seems to have a few issues with rendering (for us thus far) But it is a LOT smoother. It seems that it shouldnt have too much of a speed decrease (like transparent/opaque) either, after looking at some tests

Circle test in:

Window

Transparent

Opaque

Direct

GPU

The final issue:

AS you can see, the motion is still not totally smooth in DIRECT mode. It seems that flash has issues with updating the frames at a constant interval, which is noticable when i want a constant scroll. I dont know if there will ever be any way to get around this.

any ideas?

download test source

Cheers! Tony

UPDATE:

I've made a new version which moves the balls based on time, rather than frames. It basically moves 300pixels/second. ~ the same speed as before. It doesnt seem to make too much differnce - sometimes you get large jumps as the time lapses, and then the balls need to catch up - so not a great fix, but interesting.

Window - Time based

Direct - Time based

download v2 test source (only haxe version is time based)

December 23rd, 2009

For the upcomming article that Tarwin wrote for .NET magazine on Caching Animations in Flash here is a quick rundown & downloadable example.

The code is split into two classes:

AnimationCache

This is a very simple singleton class used to cache the rendered frames of any animation (MovieClip) that you want. All you need to do is call .cacheAnimation(identifier)  with the library identifier of your movieClip to store its frames in memory.

Animation

An animation displays the cached frames. You can retrieve instances from the AnimationCache via the getAnimation method. This will save memory, as each instance of the animation (if you have many jellyfish for example) will be referencing the same bitmap data. You can also create a new Animation(identifier), to create and cache a new animation from the library.

The animation class has similar functionality to MovieClip - play(), stop(), gotoAndPlay, etc.

To define the region that is cached (the first frame might be small, while frame 10 might be HUGE for example), you can define a 'bounds' clip. This is a child clip on the first frame of the MovieClip to be cached. It can also be used to crop an animation.

There are a few extra little features that we have in there that were used in scarygirl, you can find them out yourself ;P

Note: we have removed the queued caching system that we used in scarygirl, to simplify the code. If you are caching a lot of animations, you will need to look at ways to asyncronously cache frames. hint: think timeouts ;P

DOWNLOAD EXAMPLE HERE

cheers Tony

Our Friends:

Powered by haXe / poko cms | Copyright 2008-09 TouchMyPixel