Back in my August post I said the last big wish item for Ack Ack Attack!, and one that very much is in my wheel house, was redoing some of the effects in Houdini and bringing them in as sprite sheets. Well, I didn't use Houdini on this one in the end, at least not yet, so I figured it was a good time to go over how the effects really did get made. It happened in two goes, particles built entirely in code in June, then three free Unity effects packs rebuilt as Godot particles from July 11th, with a few good bugs along the way (a portal that exploded, and flames and steam that kept turning white). There's a fair bit to it, so it's in two parts. This one is how the effects got made, and part two is the bugs they brought with them and what's next.
The first effects went in around the middle of June, and every one of them was a Godot particle system that Claude built in code, with no texture files at all. Everything was made out of two little dots drawn in code, a soft one that fades out from the middle and a sharp one with a crisp edge, plus colour ramps to change them over their life (the ring beside them came along later, for the cartoon explosion). That was the whole texture library! Hits threw out little orange sparks, enemies dissolved in a green-cyan burst when they died, and the first explosion came on June 18th when the batteries got turned into proximity mines, with 480 fire particles and 400 smoke.
Three days later that explosion was rewritten from scratch as six layers, a white-hot flash, a fireball that cools from white to yellow to orange to deep red to black, a shower of sparks, a ring of fire racing out along the floor, a cloud of smoke and a light that flashes the whole area, 3,420 particles all told. The reason given in the check-in was that it "looked weak/cartoony", which is a bit ironic given where the effects went next! One lesson from that one, the sparks started out as stretched streaks, but anything flying sideways under the tilted camera got squashed into odd looking ovals, so they're plain round dots now. That six layer explosion is still in the game too, for the turrets, the Hunters and the boss.
The portals were particles too. The enemy spawn point started as a swirling blue-white energy field in place of a red box, then went red so it read as hostile and didn't look like the blue-green exit, and its ring went from 700 particles to 10,000. By June 20th both portals were spinning vortices of stretched streaks, and since thousands of overlapping glowing dots really want to stack up to white, the colour ramps darken over each particle's life and the other colour channels are kept low so red stays red. That's a lot of particles to ask of a phone though. By July 1st the portals were the heaviest thing on screen for the GPU, with up to 30 spawners on the late decks, so the counts got halved, 12,200 down to 6,100 for a spawner and 11,900 down to 5,950 for the exit, with each quad made twice as wide so they looked just as solid.
Steam vents went in along the walls that same day, and in the very next check-in they became a proper mechanic, standing in one drains your shield and then your health, but enemies and turrets can't see you while you're in it. The check-in that added them ends with a note for later, "Future: sprite-sheet flipbook smoke (user suggestion)", the user being me, so the sprite sheet idea goes back a bit further than my August post.
Then around July 9th I grabbed three free effects packs off the Unity Asset Store to experiment with, Cartoon FX Remaster Free by Jean Moreno, Free Quick Effects Vol 1, and Magic Effects FREE by Hovl Studio. None of it works in Godot out of the box, of course. A .unitypackage is just a gzipped tar of folders named by ID, and while the textures inside are perfectly usable, Unity's particle systems and shaders don't carry over at all. So Claude read the prefab and material files (they're plain text) for the counts, colours, lifetimes and flipbook tiles, rebuilt each effect as Godot particles, and had a capture script render 18 frames of each one in Godot so they could all sit side by side on a contact sheet. The first go at that sheet was a page of white blobs, because the extractor was reading the wrong field for burst counts, so a skull effect that's meant to throw out one skull was throwing out 15! The Cartoon FX textures also come white on black with no alpha, so the ones used as solid sprites had to be rebuilt as white on transparent, where Hovl's already come with proper alpha.
July 11th was the big port day, and among that morning's playtest fixes was the exit portal on deck 2, which had "exploded into slow white particles". The swirl was being pushed sideways every frame with nowhere near enough pull back in, so the particles always spiralled outwards, and any hitch in the frame rate flung them out wider into a big white blur. Claude fixed it by moving the particles round a set orbit instead, and then the vortices got replaced that same day anyway! The enemy spawn became Cartoon FX's red runic circle laid flat on the floor, spun in code with a ring of embers and a red light, and the new spawner and exit use about 97% fewer particles than the vortices did.
The rest came thick and fast. Enemy deaths became a purple electric short-out, bolt hits got a spiky comic flash, your shield got a blue flare when it takes a hit, and the batteries got a cartoon explosion at about 60 particles instead of a few thousand. Fire jets went into the floors from Quick Effects, four to a deck, sputtering embers for 0.7 seconds as a warning and then blasting for 2.2, the steam vents got Hovl's cartoon smoke puff, and the exit portal went from the vortex to a blue ray corona, to Hovl's purple magic circle, to a stack of blue rings and back to the magic circle, which is the one I preferred. Two things got tried and taken back out the same day, sparkly stars on drops and comic BOOM! and POW! words on kills.
That's part one! In part two it's the bugs all those new effects brought with them, the flames and steam that kept going white included, and where Houdini fits in from here. Stay tuned!