Thursday, February 20, 2020

Unity's Own: Unity Tutorial 04

Another week, another set of unity tutorials. This week we start another unit of tutorials, this unit taught us how to make yet another type of game.

This game is about being a farmer and throwing slices of pizza to woodland creatures while they are running at you from the top of the screen. The assets were provided for us but we had to make our own code following the tutorials just like in the last unit. 

For this game we are taught how to code for items to shoot when a key is pressed, for instance when the space key is pressed a piece of pizza shoots across the screen, and disappear once they are outside the bounds of the game, so as to not clutter the game and possibly break it.

We are also taught how to have the game spawn the animals at random from the three animal prefabs that are present, a moose, a deer and a fox and to have them spawn in a wide area around the player. These too disappear once they leaves the bounds of the game.

I look forward to seeing what else this unit has in store as I really like the idea of this game.

Screenshot of Animal Game

No comments:

Post a Comment