CS 491 Lab 2 – Breakout
First, if you have checkpoints left over from last lab, get them inspected during the first 15 minutes of this lab. No credit will be awarded past these 15 minutes.
Breakout
Breakout is a metaphor for email: every time you send a message, another comes back to you. After a while, lots of conversations are volleying back and forth, and ultimately, things get going so fast that the only way out is to let the bouncing messages go unanswered. Losing is winning your life back.
Let’s implement this game! Why? To make sure that you can say the following about your Unity skills:
- I can control a character using
Rigidbody2D
and keyboard input. - I can use colliders to stage an object’s destruction, to retain the player in the game area, to expire offscreen projectiles, and so on.
As a team, you draft a plan of what you should do to get this up and running. Observe these guidelines:
- Work in small, incremental steps, jumping from testable milestone to testable milestone.
- Rotate team members at the keyboard between milestones. (The chairs spin!)
- Create a game that lets the player destroy a wall structure by bouncing a ball into it. Make use of
Rigidbody2D
, colliders, physics materials, and whatever else comes in hand. I recommend not using gravity. Instead overload theOnCollisionEnter
callback and reflect the ball’s velocity aroundcollision.contacts[0].normal
.
Credit will be granted if you can demonstrate the game during this lab or the first 15 minutes of the next lab. If you do not finish during this lab, get your team together and finish it before the next lab.