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:

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).

Bookmark the permalink.

6 Responses to Planet Burster

  1. SonOfBDEC says:

    This looks really cool. I’ll have to try it with my mom’s phone. Maybe if the length of the green line adjusted the power of the bullet(Like the click and drag in Bowmaster) it would work a bit better. right now it’s just working the angles and seeing where it will go before you shoot. But awesome for a phone game test. I like it.

    Hot debate. What do you think? Thumb up 6 Thumb down 3

  2. homebrew_Ds says:

    i like it its pretty nice but can you add more space to pull back and shoot? it makes it easier on the computer for me thx

    Thumb up 2 Thumb down 2

  3. Zekto says:

    Je suis français,j’ai 12 ans et j’aime beaucoup ce site!

    Thumb up 3 Thumb down 3

  4. Gingusa says:

    i dunno about others but.. like 99% of my planets r allways at the bottom leftish it gets really repetitive and boring quickly

    Thumb up 0 Thumb down 0

  5. Alethea says:

    No Root ߋr Jailbreak desired expected ɑnd tɦere’ѕ yyou don’t have
    to invest cash.

    Thumb up 0 Thumb down 0

  6. Surveillez sobrement la vidéo promotionnelle sobre notre neuf clash of clans tromperie pour
    gemmes illimités, or even illimité ain élixirs illimités.

    Thumb up 0 Thumb down 0

Leave a Reply

Your email address will not be published. Required fields are marked *