Monday, 28 July 2014

Emergency July Blog: Fancy Ribbon FX: The Ribboning

No dev blog this July? Ah there were multiples last month ... but let's sort that out.

Some time ago I'd asked/pleaded/badgered (delete as applicable) Tim from MaxGaming Tech (whose mech combat game is on steam now) on their IRC channel (irc://irc.maxgaming.net/garagegames) for some old code for attaching fancy ribbons to moving objects in a FreeSpace type manner. He duly obliged and after a cursory look at it all and some grumbling about a lack of code comments - I make gameplay, fancy C++ and rendering stuff isn't my area of expertise - I ended up being snowed under with other dev related things.



Originally I'd envisioned using the ribbon effect for a tech demo of another game concept but continued Airship Dragoon dev had put the kibosh on that.

However noting that Lukas of WinterLeaf had created a ribbon emitter based on the stock particle emitter. This was quite cool and a quick compile later I had a Nyan Cat trooper running about. Scrounging other peoples' code snippets is one of the joys of using an Open Source Game Engine! :P


Turned out he wasn't actually supposed to be trippy Nyan Cat colours after all, and the shader was taking the colour from the normals rather than the colour because the addresses in the rendering code were not matching order. I nodded sagely in pretense that I knew what any of this meant while other people asked me to swap code lines around and report the effects. That fixed, it was a pretty simple job to create ribbon types based on ammunition types for all weapons. Swag.



Whilst testing my latest build I annoyingly found that the instanciating file for arid level 2 had corrupted for reasons beyond mortal man's understanding (stares suspiciously at the stars and blames the Reptoids/Cthulhu/Ming) and whilst collision for troops was working it wasn't passing collision for raycasts or projectiles. Simply updating the file and resaving it fixed this annoyance. All this and a few other tweaks and fixes for minor issues will be finding their way into the next update/patch.

Right now I am mostly working on the forthcoming Steam build. My original trailer is now woefully out of date as the characters, animation, audio and various other stuff has changed since release. It's also boiling hot even in my dreary little bit of Yorkshire and my ancient PC coughs and splutters as I run Airship Dragoon full screen with the settings on high to try and get some decent video footage.