
How to make a simple 2D 'Breakout' game with JavaScript
In this step-by-step tutorial we create a simple Breakout game written entirely in pure JavaScript and rendered on HTML5 <canvas>.
To get the most out of this series of articles you should already have basic to intermediate JavaScript knowledge. After working through this tutorial you should be able to build your own simple Web games.
Step 1: Create the Canvas and draw on it Before we can start writing the game’s functionality, we need to create a basic structure to render the game inside.