Official development blog

Making Particles

182 Flares Filament.io Made with Flare More Info'> 182 Flares ×

I’ve already written about weapon particle effects, but previous posts have only focused on the results rather than the process behind their creation. Some readers would likely enjoy some elaboration on what went into that whole “week I buried myself in Cogmind scripts.” For everyone else, it’s also a thinly veiled excuse to show some more effects ;)

cogmind_particle_effects_03

An Ion Burst Cannon, Scatter Rockets, Ragnarok Missile, and Proton Missile to whet your appetite.

Styles

The most annoying part of working with large data sets, but an absolutely essential one, is the need to ensure consistency in presentation. Weapons that are similar in some way should also share some qualities in their particle effects.

At the simplest and most obvious level, this is achieved by adhering to logical designs when choosing a style for each weapon’s particle effect. Before assigning any particle effects at all, a long list of major weapon types was subdivided by their respective styles.

cogmind_particle_styles_gun_ki

Ballistic guns, grouped by general particle styles.

The above list could be renamed “the duh category” because it’s comprised of mostly familiar weapons that players expect to look a certain way. (In fact, I made that part of the list after the fact just to have a record of it, since it was so obvious it wasn’t really necessary to write down before working on ballistic gun particles.)

cogmind_particle_styles_gun_th

Thermal guns, grouped by general particle styles.

At the other end of the spectrum thermal guns can and tend to be more distinct since there’s more room for innovation, thus there’s almost a different style assigned to every type.

Having a list like this is useful as a centralized reference rather than having to search through the entire item data to make sure same-technology weapons are using the same style. Some guns also have “cannon” versions, i.e. same technology but bigger/cooler, and those should have similar styles as well. The cannon lists reuse many of the same styles, though with modifications to the particle effect to reflect their greater power.

Themes

Cross-style themes are used to convey other information about a weapon via color or other attributes (but mostly color). The color of an effect almost always reflects the weapon’s strength. Weaker ballistic weapons fire gray or light brown projectiles, while more powerful versions are orange/red.

cogmind_weaopn_particles_shotgun+hpw

Shotgun vs. High-powered Shotgun

Stronger ballistic weapons also tend to have more smoke/flash to their effect:

cogmind_weapon_particles_assaultrifle+HMG+gauss+massdriver

Improved Assault Rifle vs. Improved Heavy Machine Gun; Gauss Cannon vs. Mass Driver

Weaker versions of laser weapons are yellow, stronger ones are green.

cogmind_weapon_particles_pulserifles

Normal vs. Cooled Pulse Rifle

Non-laser thermal weapons, which also tend to be more powerful than normal lasers, range from orange to red.

cogmind_weapon_particles_hvyphasecannon

Heavy Phase Cannon

Plasma weapons all use similar colors, but grow larger and slower as they increase in power.

cogmind_weapon_particles_plasma

Plasma Rifle, Variable Charge Gun, and Plasma Cannon

Thermal weapons may also use randomized ASCII in their animation, but only punctuation marks--full ASCII is reserved for electromagnetic weapons. EMP weapons are especially dangerous to Cogmind, so it’s nice that they look (and sound!) very different. Almost all of them use ASCII glyphs; they’re also the only weapons to use blue.

cogmind_weapon_paritcles_lightninggun+teslarifle

Improved Lightning Gun and Tesla Rifle

Electromagnetic explosions follow the same pattern of full ASCII use.

cogmind_weapon_paritcles_tesla+gammabomb

Tesla Bomb Launcher and Gamma Bomb Array

As you would expect, normal explosions are generally yellow/orange/red.

cogmind_weapon_paritcles_grenade+rocket+missile

Entry-level grenade, rocket, and missile.

Some AOE weapons don’t fit into either of these categories and have unique effects.

cogmind_weapon_paritcles_neutronmissile_pointsingulairty

Neutron Missile and Point Singularity Launcher

Another general theme among more powerful weapons is a “charging” animation before firing. The longer the charge the more powerful the weapon. Duh. Some “charges” may only be reflected in the sound effects, like the cycling up of a minigun, but most are visible in some way.

cogmind_weapon_paritcles_HERF

HERF Cannon, for when your target needs a really good dose of EMP.

I haven’t shown any melee animations yet, mostly because they’re more functional than impressive. There’s only so much you can do within a mere handful of cells around a point-bank melee attack! Basic attacks simply flash a directional ‘/’ over the adjacent target. I’m sure you can imagine the animation without a gif… Better melee weapons are expected to look better, so there are a few styles that do what they can with the small space available.

cogmind_weapon_paritcles_melee

Melee rampage with a Shock Maul, Impact Mace, Gravity Flail, Plasma Sword, then Kinetic Spear.

The Sandbox

All my games have them. A hard-coded map that can be modified in any way necessary to suit a specific test (as opposed to game maps which would be loaded from external files and are not otherwise easily tweaked in code). Certainly not a replacement for in-game testing, but good for quick and dirty tests of specific features without all the other parts of the game getting in the way.

This is where all particle effects are designed, since combined with cheat mode it’s an easy matter to just pick up and fire any weapon in the game.

cogmind_sandbox

Cogmind’s playground, by default featuring one of every item in the game.

For testing other objects, the default sandbox also contains all possible kinds of different terrain, and one of every robot in the game.

cogmind_sandbox_robots

The original prototype menagerie, soon to grow exponentially with the advent of new robot classes.

More about robots in future posts, but before that I still have to finish off the last bit of weapon sound effects to go along with all these particles, so that will be the subject of the next few posts.

Update: On multiple occasions I’ve been contacted by colorblind players hoping Cogmind will have accessibility options for them. There will be solutions, and rather than tack on related comments here, I’ve decided to write a dedicated post on that subject. (See next post: Accommodating Color Blindness.)

182 Flares Twitter 0 Facebook 0 Google+ 0 Reddit 182 StumbleUpon 0 Filament.io Made with Flare More Info'> 182 Flares ×
This entry was posted in Design and tagged , , , , , . Bookmark the permalink. Trackbacks are closed, but you can post a comment.

2 Comments

  1. GLaDOSauR
    Posted June 16, 2016 at 4:01 am | Permalink

    First of all, those particles are awesome.

    Second, Is the sandbox included with the game? Or is that something that you put together for yourself. I always like messing around in the testing grounds for different games,(like dwarf fortress) and this game would be no different. :)

    • Kyzrati
      Posted June 16, 2016 at 9:17 am | Permalink

      :D

      No, I didn’t make the sandbox publicly available because Cogmind isn’t open to modding. I just use it for testing (at least I did so a lot early on--after a few years I mostly use the game world itself these days).

      X@COM, however, has an open sandbox with similar particle effects, and is completely open to modding. The modding community is no longer around since I stopped working on it a while ago, but it’s already capable of making some really fun stuff! The modding package is here. Eventually I’ll work on that again…

Post a Reply to GLaDOSauR Cancel reply

Your email is never published nor shared.

You may use these HTML tags and attributes <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>