The original Armed with Wings was developed in Flash using ActionScript 2.0. In order to minimize development time, Rearmed was built on top of the original AS2 project. I’ve made MASSIVE changes to the code in order to make it more optimal and readable. Coders, if you saw what the original source looked like, you’d vomit and die – I’m sure of it.
The thought of rewriting the game in AS3 has crossed my mind many times during development. I’ve even contemplated porting the game over to Starling or Haxe (two different GPU based frameworks far faster than traditional flash). Up until now I’ve keep the game in AS2, which has saved me a considerable amount of time.
The problem with AS2 is that it’s old. Really old. Modern features are unavailable such as gamepad controls and it doesn’t connect with many API for score and achievements. It also makes packaging in Adobe Air difficult.
My workaround to all the AS2 shortcomings is rather clever. The AS2 game is wrapped in an AIR AS3 project. The AS3 wrapper takes care of all the connection issues external APIs while AIR handles packaging the game as a desktop executable. By using bridge connections, I’m able to get the AS3 and AS2 projects to talk to each other (normally, they cannot send data between each other).
But now, I think I’ve hit a wall. Xbox controls. My hypothesis was to use the AS3 wrapper handle xbox controller input and send the data to the AS2 game. It works, actually. The issue is this: It seems like the bridge connection between the two has a nasty delay at times. The delay causes 1-2 seconds of input lag. Truly horrible.
I must investigate further to see if the issue is the connection lag, of perhaps if there is another workaround. But currently it looks like I’ll need to port the game to ActionScript 3.0. The bad news is that it’ll take some time. The good news is that it gives me more control. Additionally, it shouldn’t be difficult to do thanks to my earlier efforts in fixing up the horrendous code from 2008. The other option is to ditch Xbox controls – or add the feature in an update post launch… we’ll see.
To be honest, I have some AS2 pride. I like the fact that I’m using a super old method for game dev. I guess… sometimes you need to swallow the pride and move on.
Code issues aside, the game is looking just fantastic! Fullscreen is working brilliantly! This is actually big news because Flash runs terrible in high resolutions. The game runs in 720p, which is upscaled to fullscreen.
Whats this?! A white world!? This is the tutorial level, currently quite empty – but beautiful. I plan on adding more of these special levels.
Very exciting times! I’m closing in on development overall and the game is already Greenlite! Can’t wait to get this game to you guys!
For more AwW updates, tune into the facebook page – I’m updating there oftern!
Also, join me on Patreon and help support Armed with Wings! My C key on my laptop fell off today, I could fix it with some Patreon cash.
Happy New Year!