As a training project for new starters we get them to work on a game where the objective is for a character (provisionally named Roland as the inspiration came from an old 80’s game of the same name), to escape a mine which for excitement, is home to a prehistoric pterodactyl. The development is partitioned into two area, game mechanics and character modelling.
Two models have now been completed: the player character, and the enemy pterodactyl.
The player character
Below is both the player, animated as it will appear in game. The game is intended to be a modern take on an 80’s classic, so we want to initially appear to be 2D, but with the lighting and movement benefits we get from a 3D model.
Here is a screenshot of the pterodactyl in Blender with a coloured render.
Planning the pterodactyl movement…
The intention is that pterodactyl is to fly around the cave, protecting it’s eggs and hunting the game character (which it sees as a threat).
There are five external states for the pterodactyl :
- Walking / crawling
- Taking off
- Flying to destination
It seems natural that a real bird would spend the majority of it’s time at the nest, only leaving it to hunt. Also, that it would prefer not to be in the air flying unless there was a reason to be. This might be modelled with two timers:
- Time spent away from the nest
- Time spent in the air without rest
It maybe realistic for the birds simulated intelligence to try to minimise both of these times.
The bird (internally) has five states:
- Guarding the nest
- Patrolling the cave (exploring)
- Aware that prey is close
- Actively hunting
- Returning to nest
How, and when does the pterodactyl select a destination?
It seems reasonable to assume that the pterodactyl has to select a destination that is first in its line of site. We therefore have to determine what the line of site is.
And some animations showing the bird turning and walking on ledges.
One of the most noticeable issues with the game is that it doesn’t really look like a cave, so we prototype some real ledges for the game.
Look out for our next post to see the evolution of the game!
Play the game here: https://www.n-coders.co.uk/projects/roland/