Day 6. Asteroid not falling. UI menu.
You might saw the news:
Hopefully, in the Space Shooter, a player enjoys three lives. That is the exciting part.
Today I programmed an asteroid. It stays at one point and turns. After the player hits it with a laser — the game starts.
Lives become visible on the screen as well as the scoring system. By hitting an enemy, you earn 10 points. “GAME OVER” sign programmed as well. It is flickering like in a real arcade game.
while (true)
{
_gameOverText.text = “GAME OVER”;
yield return new WaitForSeconds(0.5f);
_gameOverText.text = “”;
yield return new WaitForSeconds(0.5f);
}
The infinity loop filling up and remove the text in a field. It is running by coroutines.
A player can start the game again by pressing the “R” key.
Lot’s of work done with UI. The main menu at the start shows the game logo with credentials. VFX effects flooded almost every object. Next: post-processing and audio. Wow!