Enemies and health
Goal: to make the enemies move at certain speeds and make them have an effect on the snowman.
Then I started to work on my enemies. I didn't know what to do, so I surveyed again. Therefore, I made the Evil Santa, Evil Elf, Red Robot and the UFO the enemies in my game.
The evil Santa was my main enemy, so I made more copies of it. I made it move at one hundred pixels per decasecond.
Then I started to work on my enemies. I didn't know what to do, so I surveyed again. Therefore, I made the Evil Santa, Evil Elf, Red Robot and the UFO the enemies in my game.
The evil Santa was my main enemy, so I made more copies of it. I made it move at one hundred pixels per decasecond.
The evil elf spawned less frequently but flew faster. It moved at one hundred and fifty pixels per decasecond.
The Red Robot spawned less than the evil elf, but flew the fastest of all the enemies. It moved at a speed of two hundred pixels per decasecond.
Last of all, I made the UFO, which was the enemy boss. It had fifty lives and it could shoot bullets but moved at twenty pixels per decasecond.
Whenever one of the enemies collided with the snowman, the snowman died. Later, I thought that would be way too hard, as there were going to be more enemies on each level and each level would be more difficult. So I decided to make lives.
I made the snowman have five lives to start with. I tested it and realised that I needed more lives, otherwise it would still be too hard. Therefore I made ten lives instead of five, but it still wasn't enough. So I made the snowman have forty lives. After, I thought it wouldn't make sense if a snowman could revive after dying and the screen couldn't have fifty mini snowmen to show the lives. So I decided to make a health bar. This time it was more realistic because the health bar shrunk after colliding with enemies.
Conclusion: whenever the enemies collided with the snowman, the snowman lost one fortieth of its health