Archive for the ‘Experimental’ Category

Rhythm Surfer: Xtreme! An AIR Game (sort of)

This is my entry for Code::XtremeApps::2008. It was a 24 hours coding competition. Sadly, my entry didn’t even get pass the preliminary round. As usual, I conclude the judges didn’t know what they were doing and they are not good enough to judge my idea.

Download Here!

Papervision3D LookAt problem and work around

In Papervision3D, all classes that extend DisplayObject3D inherit its lookAt function. But the problem is the result of A.lookAt(B) sometimes ends up as A back facing B. This problem is more obvious when you want to rotate a plane to face the camera. The plane becomes invisible because it’s back facing the camera. If you set the material to double-sided, the material is mirrored which is not acceptable in some cases.

To work around the problem without touching 3D rotations, you can create an empty object3D as C and place it along vector BA and call A.lookAt(C). Vector BA can be calculated as {A.x-B.x, A.y-B.y, A.z-B.z} and the position for C should be {BA.x*1.1+A.x, BA.y*1.1+A.y, BA.z*1.1+A.z}. The number 1.1 is just an arbitrary number. Any number greater than 1 will do the trick.

I’ve done this piece of ugly thing as a demonstration and the source is here.

Using ActionScript 3 Flickr Library

>>Enjoy<<
>>Source<<

Failed - Safe high score list for Flash games with SWFEncrypt - not safe

Thanks for guycalledseven’s help. AVE Imperator can de-compile SWFEncrypt-ed files. I’m going to say bye bye to ASV.
(more…)

ASCII Image

Letters form image. This is a sample done in Chinese.
che quevara che guevara
(more…)

Psycho line

>>source<<

Fishballs

Balls following mouse like a school of a fish a.k.a fishballs (more…)

Love Bubbles updated

>>source<<

Quote of the day

Inspired by dreamwire’s question in actionscript.org. I created this “quote of the day” thing. (more…)

Playing GIF in Flash

In my recent project, I need to generate a thumbnail from the user’s screen. BitmapData is the only solution. The algorithm is straight forward, read the color of every pixel -> save them -> redraw every pixel according to the recorded colors. (more…)