Planet Burster

Planet Burster! Defend your planet form spontaneously appearing planets. This is another Flash experiment for the mobile platform. This time it’s to test the touch functionality of the phone and how to detect and use touch events.

Get Adobe Flash player

If you have an Android phone with flash installed you should be able to play with this little toy by simply navigating to the following link using your phone’s web browser:

http://www.lostvectors.com/mobile/test6/

Note: this toy also works with the desktop because it detects whether or not to use touch inputs or mouse.

How to play:

Press or click anywhere on the screen, drag, then release. The velocity is fixed, so the dragging only effects the angle (the length of the drag line does not matter, except that you might find it easier to aim the longer the line is).

Technical Features:

Random Planet Generator: I used a set of layered clips to accomplish this effect. Layers: Ocean, Continents, Clouds, Polar Caps, Shading. The ocean, continents, and clouds have random color transformations and filters applied to get the random colors. I manually drew a set of continents in a long strip and then offset the strip and mask it using a circle outline of the planet (same for the polar caps and clouds). Just a few simple tricks and I get some pretty cool looking random planets. Some of the random planets look weird but occasionally they are very interestingly color coordinated.

Planet Burst Effect: This was also a major technical milestone that I’ve been working on in a different project that I integrated into this demo. I was inspired by the Tron Movie character death effects: how they broke up into a bunch of cubes. After studying and experimenting with the Bitmap, BitmapData and Matrix classes I was able to achieve cool burst effect. Many developers before me have already figured this stuff (the Bitmap and BitmapData classes have been out for some time now), but it was cool to finally get around to playing with these classes.

Screen Layout Autosize: If you rotate your phone the screen will automatically adjust. This toy will work on any screen size (it is not biased towards a particular phone).

Jack-o-Lantern Maker

Get Adobe Flash player

Here’s a draft version of a Jack-o-Lantern Maker I made. I’m still adding to it. I will be adding more shapes soon. Stay tuned. Let me know what you think in the comments.

Controls:

Click and drag an item from the right side to the left side of the screen.

Click on a mode button along the bottom to change the mouse tool mode. To use a tool, click on the tool button then click on the piece you want to manipulate with that tool.

Tool modes (from left to right):
1. Drag Piece (click-hold-release)
2. Rotate Piece (click-hold-release)
3. Scale Piece (click-hold-release)
4. Flip Horizontal (click to toggle)
5. Flip Vertical (click to toggle)
6. Delete (click to delete)