From c05b2ec5466cd95b68731b50c962d4e0bcf21f3f Mon Sep 17 00:00:00 2001 From: James Johnson Date: Mon, 8 May 2017 21:41:22 -0500 Subject: [PATCH] Fix index.html file typo. Closes #8. --- src/content/platformer/step01_en.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/platformer/step01_en.md b/src/content/platformer/step01_en.md index 49e5dd5..6701541 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` file. 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: