It's the last day for these savings

Build Animated Physics Game with JavaScript

Design fantasy 2D worlds, animate your characters, learn 10 basic game development techniques and build a real project!

5.314 Students

4h38min

Beginner

4.8

thumbnail
  • Overview
  • Curriculum
  • Discussion
  • Review
  • Instructor

What you will learn

  • Use HTML5, CSS3 & JavaScript to build a browser game from start to finish

  • Learn how to apply collision detection to simulate 2D physics

  • Animate character sprite sheets and make them interact with each other

  • Learn how to implement 10 important techniques, useful in any game development project

  • Apply object oriented programming principles in an interactive animation codebase

  • Create animated particle systems to enhance interactivity

What are the requirements for taking your course

  • This course is beginner friendly, basic knowledge of HTML, CSS and JavaScript is needed to get the maximum value

Who is this course for

  • Beginner JavaScript developers with an interest in web animation and creative coding

Description

What makes a great game? Is it about beautiful, polished visuals or about gameplay that feels good and responsive? Is it about unique ideas, or maybe it's the little details, special secrets and Easter eggs? What are the ingredients in a perfect game development recipe?


In this class we will dive deep into sprite animation, interactivity and 2D physics. We will learn 10 important techniques every game developer needs to know and we will apply them in a real project.


Students of this class will get a lot of 2D professional high resolution game art for free. I provide environmental and character art assets in the form of ready to use sprite sheets, as well as source files with separate pieces for those of you who want to edit the colors, piece together your own mushrooms and creatures or to rig your own animations.


Today we will learn:

- How to implement a very simple AI to make the creatures feel alive

- How to control the FPS of our game and how to measure time to trigger periodic events

- How to restart the game by pressing a button

- How to apply collision detection, resolve collisions and use that to simulate physics

- How to use the built-in drawImage method to draw randomised game environments and animated characters from a sprite sheet

- How to capture mouse position and animate an 8 directional sprite sheet based on the relative position between the mouse and the player character

- How to use HTML5, CSS3 and plain vanilla JavaScript to build a game from scratch. We will write and understand every line of code, we will not rely on any external frameworks or libraries

... and much more


The pace and techniques in this course are beginner friendly. Existing knowledge of HTML, CSS & JavaScript is needed to follow the course. If you understand JavaScript basics and know what functions, for loops and arrays are, you will be able to get the maximum value out of this class.


Have fun! :)



Introduction

Introduction

Project

Basic setup

Object Oriented Programming in JavaScript

Drawing the player

Mouse controls

Making the player move

Creating obstacles

Non-overlapping obstacles

Randomized images from a sprite sheet

Positioning rules

Reusable collision detection method

Physics

8 directional sprite animation

Animation angles

Debug mode

Player movement boundaries

FPS

Egg class

img

No Discussion Found

4.8

49 Reviews

5
29
4
15
3
4
2
0
1
1
Frank Dvorak

Instructor

$15.87

This Course Includes

46 Lessons
0 Quiz
0 Assignment
29 Downloadable Resources
English
Full Lifetime Access
Certificate of completion
Go To Class

Related Skills

More Courses From Udemy Udemy