Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
HTML5 Game Development: 2D Platform Game Fundamentals
Rating: 4.5 out of 5(232 ratings)
1,153 students

HTML5 Game Development: 2D Platform Game Fundamentals

Learn Phaser and modern web development by building a 2D platform game for your web browser
Created byJed Hastwell
Last updated 11/2020
English

What you'll learn

  • HTML5 Game development using Phaser
  • 2D platform game fundamentals
  • Webpack and Phaser: Utilising up a robust base project
  • How to work with sprites and spritesheets
  • Loading game assets
  • Character animations
  • Capturing user input
  • Platform game physics
  • Character movement
  • Finite state machine pattern
  • Handling collisions
  • Level building with the Tiled level editor
  • Cameras
  • Parallax scrolling

Course content

3 sections46 lectures4h 28m total length
  • Tools of the Trade1:54

    Set up your cross-platform development environment for phaser-based html5 games by installing Node.js and npm and choosing Chrome as browser and Visual Studio Code as editor.

  • Project Starter Code5:08

    Set up a boilerplate HTML5 game project with webpack, npm, and assets, then install dependencies, start a development server, and view the Phaser-based game at localhost:8080.

  • Introduction to Phaser4:06

    Explore Phaser, a JavaScript framework for 2D HTML5 games, covering rendering, asset loading, physics, cameras, animations. Find Phaser 3 API docs at phaser.io and explore GitHub sources for implementation details.

  • Updated: Code Completion for Phaser in VS Code4:47
  • Outdated: Code Completion for Phaser in VS Code4:34

    Enable phaser api code completion in Visual Studio Code by adding the phaser.d.ts typings declaration and a reference path, so Intellisense reveals the Phaser scene and game properties.

  • Base Project Code Review10:09

    Review the base project code for a HTML5 Phaser game, including HTML file, index.js, config, and a single scene with preload, create, update, and asset loading.

Requirements

  • Basic experience with programming in Javascript or another programming language

Description

In this course, you'll learn the basics of 2D game development using HTML5/Javascript and the excellent Phaser game engine. The course will focus on character movement for a platform game and introduce level creation using the Tiled level editor.

We'll cover how to build a character with various moves and animations. We'll use a physics engine to get the jump and horizontal movement feeling just right similar to classic games like Mario Bros. We’ll then create a simple platform game level and setup the collision logic for our character to interact with it.

Along the way to building a super fun 2D platform game, we’ll be looking at some best practices on structuring and architecting a game project by starting with a robust boilerplate that you can use for any game, as well as exploring the finite state machine pattern as a means of controlling our character’s movements and animations. This will give you a solid foundation for continuing your journey into game development and give you a kick start in creating a full blown game!

If any of the above sounds a bit daunting, don’t worry, the course videos will explain everything in a way that’s suitable even for a complete beginner. While a little familiarity with Javascript would be beneficial, we’ll be doing everything step-by-step in enough detail that you can follow along. Basically, if you have an interest in how 2D platform games work and would like to have a go at creating your own, this course is for you.

Who this course is for:

  • Anyone with an interest in learning how they can build their own 2D platform game
  • Beginner Javascript developers curious about building games for the web