English | MP4 | AVC 1280×720 | AAC 48KHz 2ch | 1.5 Hours | 204 MB
- HTML canvas element
- for loops
- 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 material in this course is adapted from MDN, licensed under CC-BY-SA 2.5.
What Will I Learn?
- Understand how the <canvas> element works</canvas>
3 Attribution to MDN
Introduction to the Canvas
4 Set up and Basic Shape Creation
5 More Practice with the Canvas
6 Extra Information About the Canvas
Creating our Breakout Game
7 Creating and Moving the Ball
8 Canvas Grid System and Draw function
9 Collision Detection
10 Updating the Collision Detection
11 Creating the Paddle
12 Game over State
13 Review of Arrays and Objects
14 A Note Before Starting the Next Lecture
15 Creating the Brick Field
16 Brick Field Collision Detection
17 Keeping Track of the Score
18 Adding Mouse Controls
19 Mouse Controls Exercise Solution
20 Adding Player Lives
21 Adding the drawLives Function