O'Reilly logo

Learning Unity 2D Game Development by Example by Venita Pereira

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Sponge antics

For our second game, we will create a classic arcade game where the player will need to catch the falling grime while avoiding the falling cleaning acid.

Our main character – Spongy

Our main character is called Spongy, and it likes to keep the bathroom all sparkling clean. In order to do so, it must catch all the falling grime. However, Spongy must watch out for the falling cleaning chemicals as they contain acid that will harm it.

The bathroom

We will now create the environment of our game.

  1. To begin with, we create our bathroom environment by adding the background to the scene from the following URL:

    http://freeartsprites.com/free-art/classic-arcade/

  2. Name the background GameObject Bathroom.

    For this game, we will use the aspect ratio ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required