Orros Ball and Can Game #1

 


In this first activity in creating in Introduction to Game Development, we did a game where the cans will fall when the ball clashes to the cans. For the ball, you will add the components such as Box Collider 2D and Rigidbody 2D. In Rigidbody 2D for the ball , the gravity scale is set to 0 so that it won't fall while you're moving it around. For the Box Collider 2D, edit it's bounding volume so that it will only surround the ball. Then, adding a script which is the code that gives the ball its movement and you can add speed by clicking the drop arrow which reveals the speed so that its movement can go faster or slower. The table also has a box collider so that cans won't fall down. The cans also have Box Collider 2D and RigidBody 2D with a gravity of 2 so that they won't go past the table and fall down.

Ball Movement Script


Comments

Popular Posts