This is a premium course. To view and assign premium course, you must upgrade your account
Learn the fundamentals of JavaScript by building your own game
We will begin our understanding of JavaScript by looking at how to store data in memory
Learn to use if statements and keyboard input to control your character
Use objects to create walls and draw them using the rectangle function
Learn to create functions by programming a rectangular collision detection function
Use loops to prevent the player from walking through wall objects
Arrays and while loops can work together to save us from having to write tons and tons of duplicate code. Always remember that if something seems needlessly tedious- it probably is!
Use your knowledge of functions, arrays, objects, and loops to create a new character in your game which bounces and sends the player back to the start upon collision
All programming is a way for you to communicate your ideas to the computer. In this lesson I will supply you with a design and I want you to build it