This week, well, more composable sprites!

If you're thinking "not again" or even "huh, what's that?" I'll just point you to the latest video demonstrating equipment, below. Put it on max speed to save time. I love the results, but I'm biased as hell. It contains the same character (hobo looking dude; wanted to try long hair) wearing different equipment, but this time including: robes, 3 types of cloaks, 3 types of armor, 7 types of helmets, staff and scepter.

Demonstrating different equipment. Everything works with everything.

Most equipment is from oryx sprites (scale mail is mine), that I used to extract the bits of interest and add the appropriate metadata (alignment info, some material info, etc)

Equipment and materials

The material is typically reflected in the equipment colour. I'll have various materials that correspond to different qualities and effects, and there will be visual representation. I've assigned the grey-ish colour to iron, that you can see in the videos. Leather has an orange colour. You can see in the video above that metal gauntlets and leather gauntlets (and similar with boots) are actually shown on the sprite, even if it's the colour of 4-5 pixels in total.

Long hair drama

I wanted to achieve something, but it did NOT work out and I lost a day of development. I wanted to support long hair in a way that if the character wears a helmet, part of the hair would show, as appropriate. E.g. long hair would partially show (anything under ear level) whereas a tall mohawk would not show. Long story short, none of my ideas were bulletproof or remotely user-friendly (weird special-case distance fields or hand-pixeling things, ugghhh), so I ditched the concept. If the player adores their characters long mane or beautiful afro style or whatever, there's going to be the essential option of "hide helmet", otherwise, when a helmet is worn, it will either naturally cover the hair pixels (e.g. tiara and crown in above video), or it will remove the hair (and maybe the beard) layer(s).

Misc

  • "Bots" (behaviours that are a mix of devtools and AI) can now be spawned from console. At the moment I have 2 bots: one that makes dungeons, enters and takes screenshots, and another that creates all these variations on skin colour and equipment.
  • Added some editor window to test cosmetic changes
  • Added some editor window to help align sprites (super useful when adding new equipment sprites)
  • Fixed a bug where the colour of the hands (skin) could be different than the face colour.
  • Changed layers so that cloak is behind body.
  • The hands are now in a different layer, on their own. Actually the layers look more and more similar to the equipment slots
  • I've changed the palette recolouring: before a magenta shade between 0 and 255 would correspond to the shade of the palette colour, multiplied by that intensity. Now, full intensity is reached at 127, and the rest are used to interpolate between the palette colour and white, to add the capability to have highlights (e.g. for metal equipment)
  • In levels, I would occasionally spawn bunny bosses. A bunny boss does not make much sense, as bunnies are peaceful and never attack, so I'd only allow elite peaceful creatures to spawn, but never bosses.

A few equipment combinations