Friday, October 23, 2020

Unity Tutorial 03

 Hello! This week we started our second set of Unity tutorials. We were first introduced to some basic principles that make up a game which granted, those of us who had some experience playing games would be aware of. These are: 

  • Non-player enemies/obstacles outside of the player's control and which the player is pushed to respond to. 
  • Actions/Abilities are what the player uses to respond to these obstacles. For example, attack or defense. 
  • Finally, the element of randomness which makes the game experience unpredictable, exciting and fun. This can urge the player to remain engaged in the game.
Throughout the first set of tutorials I was introduced to the If-Statement which essentially means if a certain game condition is met in-game e.g through player's actions then the action in the If-Statement will come into effect. 

In the tutorial the If-Statement was used to keep the player 'in-bounds' which is another common feature found in games. This prevents the player from going off the side of the screen. There was a variety of ways to write up the code to keep the player travelling along the x - axis (left to right) without leaving the screen. However, the most efficient method was the xRange variable which we only had to write up once without the need to include the left and right boundary as it incorporates both. 

All in all, the way the Unity tutorials are segmented it does make it easier to process the different features of Unity and IDE code in manageable chunks. However, I will need to go over what I learned as a refresher to ensure I don't get overwhelmed when starting to build my own game. Also, for those of you that haven't, writing notes during tutorials is of BIG help, not only when reviewing what you learned but it does help with writing up the blog post much quicker when you're pressured for time (like I'm doing right now)😜

No comments:

Post a Comment

Doing

  We are nearing the end of this semester and the book we’ve been working throughout the semester is in its final editing stages. This week,...