Skip to main content

Concept: Monster Spawns.

Today I had some ideas on what to do about monster and room management spawns.

I want to add random objects, monsters and props such as tables to the map, but I want them to be placed in a way that makes sense and has some kind of internal narrative.

I don't want you to enter a room and see:
  • an empty book case
  • a skeleton
  • an elf
  • a potion of speed
  • a rug
  • a telescope
  • a green slime
  • some writing on the wall
  • a puddle of rats blood 
What I want is that you enter a room and see:
"Some guards standing around a table, on the table is a lunch buffet of green cheese and mushroom sandwiches. In the corner two guards are sleeping on bedrolls. A guard captain is sitting at a card table playing cards."
The above situation would be the result of three themed spawns:
  1. A table with appropriate contents and some appropriate monsters standing around it.
  2. Sleeping monsters on bedrolls (perhaps with optional equipment spawns nearby)
  3. A card table with one or more themed monsters. 
The spawns would be packed in to the room, if there wasn't enough room another spawn would be substituted.

I'd use a dictionary a little like this:
Yes, that's right arrays can contain function calls.

There are other indexes in the dictionary as well as the object spawn arrays, the level index would restrict spawns to different levels, the x_size and y_size are not really needed as you could just measure the array lengths to get that info, but you could include a theme key here such as "insects" or "horror".

The random monster function calls a random monster from the meta list of monsters using a guideline of max xp cost and starting state, allowing sleeping, frozen, stone or polymorphed (etc...) monsters to be placed.

With this kind of method you could have spiders (a monster) and cocooned prey (a prop), or a book case and scattered books (all props) or a barracks with beds, chests and sleeping guards and lookouts. Further refining the random monster function, you could use a wild card such as False or None instead ofXP amount to use XP from a general spawn pool (calculated in relation to the player's strengths and weaknesses). Or you could add an extra argument to the function such as monster type, which only adds monsters with that type to the random generation pool. A typical type would be "furry" which would generate giant rats, wererats, werewolves, cave bears and such, or "insect" which could generate all kinds of bugs, or "human" or whatever. The more tags you have, the more you can control the spawns and create more narrative for your game, but the more chance of getting an empty list.

For instance you spawn a monster formation on level one which includes a random monster call for a "demon". The xp pool is just 100 xp, but the lowest level "demon" monster is 5000xp. That's going to result in no monsters being spawned unless you have a fall back, like:

else:
       monster_instance = monster("giant_rat", "crazed")

In which case the player is going to be so busy dealing with a berserk Giant Rat they may not notice the "pentagram" and "sacrificial_altar" props in the room.

The above concept may need tweaking a little, the final game is going to include props that can block your movement but also others that don't (such as a puddle). In that case it would be fine for a spawn location to include a prop as well as a monster or object. Objects could also be placed inside or on props (such as food on a table).
Imagine entering a room and seeing a zombie feasting on a fresh corpse, or an egg that splits open to release a juvenile giant spider.

Anyway, today I'm going to be experimenting with saving and loading and maybe try moving a player object around the map.

As a closing video I'm going to post this, which is exactly what I don't want my game to be like:


 

I hate the way you can upgrade the rusty helm (which doesn't look nearly crappy enough to be a rusty helm by the way) while still fighting and running around. How? Does he have an army of crafting gnomes stuffed into his loin cloth?
And you can speed up the upgrade by paying for it. Again, how does that work?
Although the worst thing was the massive in game tutorial pop-up which completely covered the bossfight (and the bosses spawn was ruined by happening mainly off screen).

No wait, the worst part was:
tap=slash
tap=slash
tap=slash
tap=slash
tap=slash
etc...

He had several special abilities, but there seemed little point in using them as every enemy fell to a few quick slashes of his mighty rusted sword.

I don't have full details of the combat system I'm going to use yet, but rest assured it will feature more than just tap=slash, and special abilities will be useful.

Comments

Popular posts from this blog

Vinland 1936

What have I been up to this month?

Well you can see it in a couple of development blog videos, here, here and here.

Vinland 1936 is a game I've been working on (on and off) for about 3 years. It is somewhat based on the old Nirval interactive game, Blitzkrieg;





I hope you've played it since it is one of the best games ever!!! (IMHO)
Blitzkrieg was a real time tactics game. You didn't build a base, or spawn units. It wasn't about rushing the enemy. You got a small number of troops and vehicles that could be replenished or repaired if you had access to a supply base and the right supply trucks, but couldn't be replaced if lost. Once your vehicles were destroyed and your infantry killed you were finished. You couldn't just churn out some more from your factory and have another go at rushing the enemy guns. This made you invest a lot in each of your units. They really mattered.

It was also procedurally generated. Each mission (except for the historical missions) was…

Reboot / Remake / Restart

Although the roguelike project was going well I had a few issues with some parts of the code, and the sheer size of the project was something I could see stretching away in front of me for years with no guarantee that people would actually want to play it when it's finished.

It's time to try something a little less ambitious.
I'm going full rogueLITE!

Using a lot of the code from the roguelike project, I started making a more limited game.
There will be a single character, combat will be more arcade like, there will still be a chance to upgrade and develop your character's stats, but they represent only a single class and have fixed equipment.

I've got a fun character, an interesting setting and an exciting story lined up. It still utilizes my low poly style, but things are going to be a little more cartoony.

Game play involves mostly chucking bombs at the enemy.

But there's also a lot of platforming, jumping from multiple levels is part of the game. And you ca…

Telling a story; Creating a Compelling Narrative.

Telling a story; Creating a Compelling Narrative. In this blog I will talk about my own recent brush with story telling and go on to talk about how tools from creative wring can help you to better author the narrative in your games, whether they have a traditional linear narrative or a procedurally generated interactive narrative.

Narrative and structure in traditional fiction  last week I started writing a story set in the world I'm developing for my game Vinland: 1936.

I hope the story will help me to flesh out my game world and develop my own expanded universe which will be a good place to set my games in the future.

After about a week of work, on and off I've progressed the story to outline stage. For each character thread I have half a dozen chapters which plot a course through the events of the story. Each thread is told from the perspective of a different character.


Actually I started writing as soon as I had my outline, but I've since gone back and deleted what …