Game concept
Before we can start building a game, we need a game concept. It's very important that you know what you want to create before even writing one line of code. Let's have a look at our game concept. Our game is about a running vampire who can slide, jump, or deflect projectiles by lifting his shield up. These actions are useless if they have no purpose. So we will add some obstacles, this way our hero can use his actions to get around these obstacles.
The game will contain three mechanics to keep things fun and interesting:
Our hero runs from the left-hand side to the right-hand side, avoiding obstacles using his actions:
Sliding under a swinging iron ball
Jumping over rusty spikes
Raising the shield to deflect falling rocks
Each action will be represented by a button on the Head-up display (HUD), but they will swap places after being pressed. This way it's more challenging to select the appropriate action.
We will increase the game speed each time we pass a certain amount of obstacles...