diff --git a/src/main.js b/src/main.js index 3c37773..3487f01 100644 --- a/src/main.js +++ b/src/main.js @@ -84,7 +84,8 @@ function setup () { up = keyboard(38), right = keyboard(39), down = keyboard(40), - space = keyboard(32); + space = keyboard(32), + f5 = keyboard(116); left.press = () => { player.vx = -SPEED @@ -135,6 +136,10 @@ function setup () { lastKey = new Date().getTime() } + f5.release = () => { + window.location.reload() + } + objects = [] maxX = 0