• AIR for Android performance

    I wrote the Tumble Game app in the Android Marketplace, which was published in Flash Builder 4. After a few iterations of the app, I figured out how to get better game play performance.

    First I set the the renderMode in the XML settings to “gpu”.

    Then for each game piece, I used an PNG graphic instead of a movieclip, and I set the cacheAsBitmap to true and the cacheAsBitmapMatrix to a new Matrix.

    
    [Embed( source="assets/greenStar.png" )]
    private var Asset:Class;
    
    var assetBitmap:Bitmap = new Asset( );
    assetBitmap.smoothing = true;
    assetBitmap.cacheAsBitmap = true;
    assetBitmap.cacheAsBitmapMatrix = new Matrix();
    
    

    After doing those few things, the frames per second went from 9 to 22. Thats a big improvement.

  • I took a simple virtual joystick Flash app, and made it work with multitouch controls on the Motorola Droid using the Android AIR app. The app I created has two virtual joysticks that respond to multitouch.

  • I took my Flash app for Android one step further and added the control of a tank and a turret using the two virtual joysticks.

  • Are you being followed? Because I’ve been seeing people behind your back.

    —  Demetri Martin - Break up lines

  • New to Tumblr

    Just starting out fresh here with a new website. I got rid of Wordpress because I was sick of the spam, and I like the idea of micro-blogging.

  • Amazing new Photoshop feature, you must watch this to see it in action. It works like magic.