Zombies, Code Snippets and Signature Abilities

Zombies!

Today, I added procedurally generated zombies. Here are some screenshots:

Code Snippets

While going through my code of my procedural model generator, I found a few code snippets that I wanted to share with you. I found them quite funny and thought they might give you some insight how my generator is working.

For the undead faces I have a rule that half of them look angry, even in neutral mood:

In Cube World, 10% of male humans are bald:

And even half of dwarf men. (They still have goblin haircuts, still need to change that)

Signature Abilities

One thing I always wanted to do is to give each enemy type in Cube World a distinct combat behavior, e.g. by giving them signature abilities. That way, we get more variation and players need to adapt their tactics to each enemy.

So I started by giving bats the signature ability ‘Vampiric Bite’, which bats can use to deal damage and heal themselves at the same time. In this is case, it’s a good idea to prioritize dodging these attacks.

To better visualize such abilities, I added small cast bars that display the name and duration of them.

I already have some ideas for more signature abilities. For example, slimes will be able to split themselves into smaller slimes. Hornets will be able to shoot poisonous stings. For zombies I will test the ability to grab the player so he can’t move.

Published by