Flashwars Redux

A hand coded Actionscript 3 game brought back to life in Unity3D

Updated
Flashwars Redux

The internet was a vibrant ecosystem of interactive creativity

Adobe Flash was one of the greatest rapid prototyping tools of all time. From 2004 to the mid 20-teens I worked on ActionScript 2 and 3 projects for Rolls Royce, Delta Faucet, NCAA, Larry The Cable Guy, and others. It was my bread and butter in a time of bountiful creativity.

In 2010 Apple declined to support Adobe Flash on their iPhones. This had an almost overnight impact on developer outlook. Flash’s garbage collection was aptly named. Without a proficient understanding of it, a SWF could easily become a lagging memory hog. Apple wanted a great and safe user experience. It’s my opinion that they also wanted to direct creative engineers to towards Xcode and the App Store.

Somewhere in this time period I developed an ActionScript 3 arcade shooter called Flashwars. It featured a small blue sphere as a ship, that you controlled with the keyboard. Direction of fire was determined by the mouse pointer. There were several different types of enemies that had progressively difficult to dodge seek formulas, including a two different types of bosses. A high score REST endpoint kept track of the top score. Some graphics were pre-rendered in Blender, while others were drawn programmatically.

The internet descended into a decade long rut of stagnant forms void of life

Not to say that rich interaction was no longer possible, it was now more distant to obtain. The rapid prototyping dinosaur that technical and non-technical creatives were skilled at was now losing steam. WebGL and <canvas> entered the scene in 2010 and 2011 respectively. They continue to be bedrocks of rich user experience in the present age especially when paired with AI!

I dug up the source code to Flashwars from my archives, pointed Opus 5.5 at it, and asked for a modern upgrade using the

  • Unity MCP for game development

  • Blender MCP for 3d modeling

  • YuE2 Studio MCP for local music generation

  • Trailer-V MCP for local trailer generation

  • StableSFX MCP for local sound effect generation

  • ElevenLabs MCP for voice sound effect generation

Given the original source code, this was a total one-shot!

Because the initial idea in the prompt was a completed project, the output matched the original expectations perfectly. This left me in the creative drivers seat. I gave it a rendering budget and went to town dreaming of new features.

On a walk one day, I recalled the cinematic intros to Gradius III and Starfox. They were both well choreographed cut-scenes that drew you into the game in a natural way. After planning my own cut-scene, I asked Opus to implement the idea, spelling out the sequence of events, and instructing to use the YuE2 Studio MCP to generate the music.

It blew my mind

It first rendered the 30 second action score for the introductory cut-scene though YuE2 Studio MCP which translates text into ABC Notation (Text-Based Music) before synthesizing to audio.

Then Opus had the idea to render the audio as a spectrogram, a visual representation of how the frequencies of a signal change over time. This allowed it to find the timings of peaks in the music. It used these timings to synchronize the Unity animations in the cut-scene.

The result blew my mind. I just laughed. I had no words. If this is possible, what else is?

Play video: Flashwars Redux

With this newfound confidence in the model, I forged forward to explore new ideas and automate.

  • A top 10 score board with a backing API built and deployed via an Azure BICEP template.

  • Game and Scoreboard URL managed through Cloudflare MCP

  • Aegis Station concept of discharging main weapon.

  • Star Eater boss main attack.

Pictured below are the player and enemy 3D assets Opus generated through the Blender MCP.

Three lessons learned here:

  • A well defined problem can be solved quickly by a capable model.

  • UI / MCP tools like Trailer-V and StableSFX-Studio allow for observable and co-operative work between human and model.

  • ABC Music notation “is a text-based music notation system designed to be comprehensible by both people and computers.” - abcnotation.com

Play it here!