
An introduction to the course
Create a project in Unity and configure the Unity editor layout
Create the paddle that will be used to hit the ball
Allow player to move the paddle horizontally using left and right arrow keys, A and D keys and a joystick
Prevent the paddle from moving off the left and right edge of the screen
Create the ball the player will hit with the paddle to knock out bricks
Disable gravity in the ball object's rigidbody and add code to replace it with a constant velocity
Add a function that resets the ball to the center of the screen whenever it falls off the bottom of the screen (player misses hitting it with the paddle)
Allow player to reset the ball by pressing the R key
Create the walls that will cause the ball to bounce off the left, right and top edge of the screen
Create the brick prefabs that will be used to draw the bricks on the screen
Create and assign the variables that will be used in the code that draws the bricks
Add the code that will draw the bricks on the screen
Add the code that makes bricks disappear when the ball hits them
Create and configure the score display object
Create and configure the lives objects
Create and assign the variables that will be used in the coding of the score and lives
Add code for score and lives
Adding and configuring the You Win Panel
Create and assign You Win dialog variables
Add the UnhideBricks function
Add the Restart function
Add the code that activates the You Win panel
Creating the Game Over dialog - object, variables and code
Create and configure the Exit Game panel
Add variables and code for the Exit Game dialog
Course conclusion
Project files
All software and resources used in this course are free.
In this course, you will learn how to create a complete Breakout game in Unity from an instructor with 40 years application development experience. No unity or programming experience needed. All you need to do is follow what the instructor does. This is what you will learn in the course.
- How to create a Unity project
- How to change the layout of the panes in the Unity editor
- How to create the paddle, ball and bricks in a Breakout game
- How to add a rigidbody to an object
- How to turn off the gravity in an object's rigidbody and give the object a constant velocity
- How to add a physics material to a rigidbody and configure the physics material to make the object bounce off other objects
- How to detect when an object has collided with another object and determine what type of object it has collided with
- How to add walls for the ball to bounce off of
- How to determine when the game is won
- How to determine when the game is lost
- How to create You Win, Game Over and Exit Game dialogs
- How to test a game throughout the development process
- How to investigate and correct errors