|
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. |
Archive for the ‘Experimental’ Category
|
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. |
|
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. |
|
ASCII Image
Letters form image. This is a sample done in Chinese. |
|
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…) |

