JavaScript Game Development: Create Your Own Breakout Game

Visit Tutorial Page ( Report)
Take a step-by-step approach to learning how to build a complete JavaScript game. In this course we will cover the basic set up of the HTML and CSS pages and then we will dive right into coding our game! Starting from creating basic shapes on our canvas element to animating a ball, and then finally keeping track of the player's lives and score. We will cover many interesting topics, including: HTML canvas element for loops arrays objects creating custom functions mouse controls And much more! There are only two things that you need to take this course: an internet connection and a computer. There is no need to download any paid software or set up complex development environments. The course is 1.5 hours long and is structured in a step-by-step manner, from simple to more difficult concepts. We build the JavaScript game from the ground up and cover each game component one at a time - so you will never feel overwhelmed with the content. With the knowledge gained in this course you can move forward and build more complex JavaScript games, and use the game you created at the end of this course to add to your portfolio or just impress your friends. The material in this course is adapted from MDN, licensed under CC-BY-SA 2.5. I hope to hear from you soon, and look forward to having you in my course! Who is the target audience? This course is for all skill levels, however, those who already have some familiarity with HTML, CSS and JavaScript may find it easier to follow along. Nevertheless, it's still strongly encouraged for beginners and novices to take this course as well, because challenging yourself is the only way to improve – at the very least, you’ll understand areas in your learning that need improvement.
  • Getting Started
    • Prerequisites
    • Tips
    • Attribution to MDN
  • Introduction to the Canvas
    • Set up and Basic Shape Creation
    • More Practice with the Canvas
    • Extra Information About the Canvas
  • Creating our Breakout Game
    • Creating and Moving the Ball
    • Canvas Grid System and Draw function
    • Collision Detection
    • Updating the Collision Detection
    • Creating the Paddle
    • Game over State
    • Review of Arrays and Objects
    • A Note Before Starting the Next Lecture
    • Creating the Brick Field
    • Brick Field Collision Detection
    • Keeping Track of the Score
    • Adding Mouse Controls
    • Mouse Controls: Exercise Solution
    • Adding Player Lives
    • Adding the drawLives() Function
Write Your Review

Reviews