Link Search Menu Expand Document

Game Development with JavaScript

Because of the browser and the ease at which you can control visual components with JavaScript, it is fairly natural and intuitive to create games with JavaScript without a fancy game engine. Follow this tutorial from MDN for creating a 2D breakout game with JavaScript:

2D Breakout Game in Pure JavaScript

List of concepts covered in the above tutorial

  • How to use the JavaScript Canvas.
  • How to implement motion and collision.
  • How to use events to control the game.
  • How to use loops for drawing objects.
  • How to use intervals and timers to run aspects of the game.