Build Animated Physics Game with JavaScript
Build an Animated Physics Game with JavaScript, Design fantasy 2D worlds, animate your characters, learn 10 basic game development techniques and build a real project!
Course 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! 🙂