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!

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store