First Programming Session (Unity, Variables, Movement and Collision)

In this session we discussed the various data types in programming, mainly how and what variables are used for:

What are variables? A data type value that can be subject to change.

What could they be used for in a game? Score, player health, weapon damage, walking speed, jump height, item cost and many other values.

Then, after opening a pre-made Unity game of pong we discussed what Colliders and Ridgedbodys do:

What does a Collider do? Allows objects to physically react with each other such as two objects being able to bounce off one another.

What does a Ridgedbody do? Adds physics to an object such as gravity.

I modified the game so that the player text, ball speed, paddle speed and score were changed drastically.

net

 

 


Leave a comment