diff --git a/src/content/platformer/step01_en.md b/src/content/platformer/step01_en.md index 49e5dd5..00c8d1f 100644 --- a/src/content/platformer/step01_en.md +++ b/src/content/platformer/step01_en.md @@ -23,7 +23,7 @@ download: /assets/platformer/steps/step01.js ### Initialise Phaser and the canvas -1. HTML5 games need a `` element to draw graphics. Phaser can create one automatically when we initialise the game. We need to supply the ID of the element that will wrap the canvas –in our case, it will be a `
` that we have in our `index.file`. We will also be providing the canvas' dimensions (960✕600). +1. HTML5 games need a `` element to draw graphics. Phaser can create one automatically when we initialise the game. We need to supply the ID of the element that will wrap the canvas –in our case, it will be a `
` that we have in our `index.html`. We will also be providing the canvas' dimensions (960✕600). To do that, open `js/main.js` in your text editor and edit the `window.onload` function to initialise Phaser: