Game
Rock/Opera
10 years ago

Dev Log: smoke trails & dash flash!


Hi

I’m @arrogantgamer , and I’m going to call myself the “gameplay programmer”. @nomoon does all the important coding, like making controllers, sound, and networked multiplayer work right. I do stuff like make Rock jump… and shoot! Jump n’ shoot.

One of our goals in building Rock/Opera was to have it match Megaman X as closely as possible. Most recently I added a system for adding tiny decorations. I like to program “good”, but also fast, so in this case I made a little constructor that creates sort of generic “decoration” constructors. Yes, a constructor constructor. That’s how I roll. Rock is controlled by a big finite state-machine, and the FSM is in charge of adding these decorations. For example, as long as Rock is in the “dashing” state, the FSM is creating these little smoke trails. So, when Rock slides down a wall, or dashes through the air, she leaves a rad trail of smoke. Similarly, when she dashes, she makes sparks.

The decorations are in charge of their own lifecycles: so smoke, for example, just fades away after a few frames. The spark trail is a little more compllicated: if you dust off your ZSNES and run Megaman X at a low framerate, you’ll see that X’s dash-sparks are a four frame animation that aborts as soon as he stops dashing. So in our case, the decoration is aware of whether Rock is still dashing, and destroys itself if she isn’t. You can barely see this in the video I’ve provided, but it’s there.

The interesting thing for me, with these decorations, is that they are versatile enough to allow for all kinds of other neat play. The particle effect when Rock charges up her shot will probably be a decoration too. I’m currently refactoring the FSM so that we will be able to include multiple weapons (by creating an arsenal of FSMs and swapping them out), and because the decorations are tied to the FSMs we could add all kinds of other neat stuff later on. I’m kind of planning to use the Rock/Opera code base to make a metroidvania later on as a kind of biography of the life of a good friend. This friend, James, is an ageless wizard, so the game will probably need a lot of crazy decorations!

Here’s a video, demonstrating these tertiary animations. No art yet, just flashy dashing!

Thanks,

z.



0 comments

Loading...

Next up

Did you know that today is #InternationalJazzDay? 🎷😎

No? 😯 Well, we couldn't pass up this date!

And what better to celebrate this day than #Pecaminosa #OST? 🎷

Let us know what you think about it and have a great weekend!

Been working lately on lots of 'behind-the-scenes' boring stuff that no one really cares about, so here’s a guy playing the sax for some reason.

#screenshotsaturday

We made a lot of improvements on the Freezing Plains visual. Things like pine trees, tiny bushes, some rocks, and others game props!

#IndieGame | #IndieDev | #GameDev | #PixelArt | #WaifuQuest | #WifeQuest | #screenshotsaturday

Quantum precognition is one of the most powerful cards. End game cards & equipment. Demo/alpha build boss is no match for this deck.

Just a Pico sprite

In the quest for accessibility, I'm adding Resurrection Shrines for players on the 'novice' end of the platforming spectrum.

In order to unlock the power of a Shrine, you must collect 3 'Souls' from your dead corpses! (the floating blue orbs)

One of the most critical update for Sunblaze demo. Now you are able to pet a cat! Finally!

Hi everyone! I started to create some environment props for my new video game, here is a cozy house in the forest. I'm planning to switch from Unity to Unreal... Let's see what new challenges I have to face. Made in Blender and Substance Painter.

Alone Together....

Coming Soon...