Jumat, 29 Juni 2007

Into the Abyss with AS3..

Yes, it's official, AS3 is awesome. After 2 weeks of consistent AS3 tinkering, I'm wondering how I ever made games without it. Programming in AS3 is definitely tricky. There's no easy way to remove MovieClips anymore, and even passing parameters to functions can be a pain-in-the butt with all the new compiler errors that pop up should you misplace your variable definitions, but by and by it stands head and shoulders over AS2 in many departments.

Something I've been cheerful about is that- contrary to my initial belief- AS3 doesn't necesserily have to be coded in solid OO (what the hell is a public/private function anyway?), and you CAN thankfully code in an almost similar manner to AS2 just by learning the appropriate methods to migrate your AS2 code to AS3. And yes, though the proper programming protocol would be to have your game consist of a bunch of class.as files and give you a headache over all the encapsulation/polymorphism and that sort of tosh, you can actually circumnavigate all that and do it the old fashioned way I'm used to, ie having the game code entirely on the first frame and bugger all OO. Naturally I do intend to gradually turn my games into full OO, but it's a relief to know that my coding doesn't have to come to a flat halt while I'm on the baby steps to mastering that particular style of programming. Subsequently I wont be releasing any tutorials based on AS3 until I'm comfortable that I'm coding properly in OO- but you can expect a few new games out soon.
It's great perkt that I can stick to my usual style of programming and yet still benefit from the TASTY speed increases AS3 has to offer. Already it's clearly obvious to me that the power of AS3 is superior to AS2 in many ways, and if you take a look at some of the demo's online showing the differences between the two you can see it for yourself. It's like having a new Testarosa in your garage- all good fun and I shan't be going back to AS2 anytime soon.
Bounty Hunter 2 (AS3) is in the works. I realise the first one is well... shit, but it was fun to code and there's still a lot of functions in there I think I can reuse. Think of Bounty Hunter 1 & 2 as the equiv of Mad Max and the sequel. They're going to be light years apart in excellence. I've already a little prototype up and running on my machine with an astronaut that can enter ships littered around a galaxy, and an R-Type style beam weapon in operation that is looking rather fab if I don't say so myself. I won't post a pic or an swf as firstly there's a few bugs still in there and also the graphics are all placeholder and crap to look at. I figure I'll start out making a skirmish mode demo that sets you against 20 bots in a deathmatch, and if that does ok with the public I'll turn it into a long-term (and I do emphasise 'long-term') multiplayer project that will have teams against teams. I think the beauty lies in the Paradroid style ability to defeat and then occupy the enemy, assuming all of their special abilities and such. Almost like a Space Sim GTA. It's a play mechanic that I think will be huge fun, with people competing to get or destroy the best ships. Throw in some special super-rare super-hard-to-get street cred ships and you've got a winning game I reckon.
What I've been working on for the last few days though is actually the Streets of Rage engine. It now has throws, combos, some sfx and enemies, and is working well. This will be my last AS2 project for sure, I'm dumping AS2 like a frumpy girlfriend who's no longer good in the sack, for AS3, my new Swedish PlayBoy centerfold. The SOF engine will combine the mechanics of some of my favourite beat-em-ups, Final Fight, SOR, and Spike-Out. It's like Tarantino says- if you want to make great movies, you've got to be a great movie watcher, and I'm pretty confident that I know exactly what it is that makes some fighting games better than others.


Tidak ada komentar:

Posting Komentar