So I thought I'd take Flash 9 and try out its power. I decided to make a 'curtain fire' shooter; if you haven't played Perfect Cherry Blossom or Imperishable Night, it's a shooter that focuses on dodging impossible numbers of bullets that fly around in pretty patterns on the screen.
I did a prototype, it ran at 30 FPS. It was fine, but not all that exciting to watch or play. So I decided to 'perk it up' a bit by running it at 60 FPS - boom! It's gorgeous! The game's going to be hot when it's done, I can promise you that.
But I *can't* promise it'll be hot if you play it on Newgrounds. This is because you'd be playing the game in a browser, instead of in a standalone player. In a browser, the game drops to 40-50 FPS, with the accompanied slowdown. It just feels like it's suffering from permanent slowdown problems.
After the promises of Flash 9's improved scripting engine, I'm disappointed. :(
Thing is, it's not the Actionscript that's causing the trouble here. I did some timing tests, and in both the standalone and browser versions, moving hundreds of bullets and doing hundreds of collision tests only cost me about 1 millisecond.
However, when I do timing on the entire frame instead of the frame's code, a 60 FPS game runs at 16 ms per frame in the standalone (which is about right) and varies wildly from 18-30 ms in the browser.
Apparently, you can make the Actionscript engine as fast as you want, but you can't shake off the chains that the browser puts on Flash >:( , chains that are apparently there to cover fscommands or Javascript communication, or other stuff that I wish I could disable or get rid of somehow.
If you want a demonstration, head to
http://media.putfile../FireFlies-Prototype
and play the game.
Click the logo to start; use arrow keys to move, X to fire, Z to move slowly.
Shoot the demon 199 times before losing your three lives.
Your weakpoint is located in your head, be careful.
Then, download the file for yourself and play it in your Flash 9 standalone. (Technical details of how to directly download this file, and how to get your hands on a Flash 9 standalone are up to you, I'm afraid.) Witness the true power of 60 FPS Flash gaming in Flash 9.
I'm going to finish the game, slowdowns or not. I'll just have to put in a note, encouraging players to play it in a standalone player for themselves.