reload on f5
This commit is contained in:
parent
eb28beaf75
commit
b3ac24237c
1 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue