DEV Community

loading...

Introduction to Creating a JavaScript Game

codingwithadam profile image CodingWith-Adam ・1 min read

In this video we will create a simple javascript game. We will create a circle aka the little green blob that we will move around the screen. You will learn about taking input from the keyboard to move a character on the screen. Create a form of collision detection by detecting the edge of the screen. Lastly we will create a game loop which continuously draws the screen. We will implement the game loop with 2 different methods setInterval and requestAnimationFrame.

With the skills we learn from this introduction to game development we will then tackle games such as Pac-Man, Tetris and Snake in later videos.

Discussion

pic
Editor guide