Find online courses made by experts from around the world.
Take your courses with you and learn anywhere, anytime.
Learn and practice real-world skills and achieve your goals.
At ZENVA we specialize in making high-quality technology courses that will give you all the skills you need to turn your ideas into reality. Get in touch to find out about our latest courses and discounts:
Making games is a lot easier than you think. Imagine you could learn how to make HTML5 games that run in all browsers and Windows 8 with our HTML5 game development tutorial in only 2.5 hours! Well, that is exactly what this course does.
We know you've always wanted to make your own games. Don't keep postponing it. Start TODAY
This HTML5 game development tutorial is aimed for both beginners and more advanced users who may have HTML5 experience but haven't got into games yet.
Some of the topics you'll learn by building this game from total scratch:
● Creating a basic game that can be embed in any website and can be played with just a web browser.
● Displaying a map and characters on the screen.
● Moving a player on this map.
● Using collision detection to simulate the shooting of bad guys.
● Adding enemies to your games.
● Adding sound to your games.
● Putting it all together to create a fun playable demo.
● All game files, including images and sound are available at the end of each chapter for download.
This HTML5 game development tutorial has been created by Jacob Deichert in collaboration with Pablo Farias. Jacob has created comprehensive HTML5 game dev screencast tutorials on YouTube and other platforms. Pablo is the author of another awesome game dev course called HTML5 Mobile Game Development for Beginners, which you are also welcome to check out.
|Section 1: Drawing the background|
Download course files
Other Game Development Courses by Zenva
In this chapter, we get all of the beginning tasks out of the way. We setup our working directory, all of our files, and get the canvas to draw the background.
Drawing the Background - part 2
Drawing the Background - part 3
Drawing the Background - part 4
Drawing the Background - part 5
|Section 2: Update. Draw. Loop|
In this chapter, we create the very important update, draw, and loop functions. They are used to update and draw each frame which is requested from the browser using requestAnimationFrame.
|Section 3: Drawing the Player|
In this chapter, we create the player's object, along with it's update and draw functions which allow the player to be drawn to the canvas.
Drawing the Player - part 2
Drawing the Player - part 3
|Section 4: Controlling the Player|
In this chapter, we setup event listeners for the arrow keys as well as the spacebar. We also check which direction the player is moving and if they try to go out of bounds.
Controlling the Player - part 2
Controlling the Player - part 3
Controlling the Player - part 4
|Section 5: Blocking Objects|
In this chapter, we create the obstacle object and define where all of the blocking objects on the background are located. Then we check to see if the player collides with any of them.
Blocking Objects - part 2
Blocking Objects - part 3
Blocking Objects - part 4
|Section 6: Drawing Enemies|
The Bad Guys
The Bad Guys - part 2
|Section 7: Moving Enemies|
Moving Enemies - part 2
|Section 8: Shoot!|
In this chapter, we get started with bullets by creating the bullet object along with it's update, draw, and fire functions. We also add a sound effect for when the bullet is fired.
Shoot! - part 2
|Section 9: Bullet Collisions|
In this chapter, we check to see if the bullets collide with any alive enemies, an obstacle, or if they try to go out of bounds.
|Section 10: The Game is Ready!|
In this chapter, we finally check to see if and when the player is shooting, as well as drawing all of the bullets to the canvas. The game is finally finished and fully playable!
|Section 11: Course Evaluation Survey|
Course Evaluation Survey
Pablo is a web + mobile app developer and entrepreneur. Pablo is the founder of ZENVA. Besides teaching online how to create games, apps and websites to over 60,000 students, Pablo has created content for companies such as Amazon and Intel.
ZENVA runs four development communities featuring game, web and mobile app development tutorials: Zenva Academy,, (also known as "the hive"), and for Spanish speakers, De Idea A App.
30 day money back guarantee
Available on desktop, iOS and Android
Certificate of completion
Hours of video content