Can pause game
This commit is contained in:
		| @@ -276,6 +276,9 @@ async function startGame(gameID) { | |||||||
|     document.body.addEventListener("keydown", (ev) => { |     document.body.addEventListener("keydown", (ev) => { | ||||||
|         if(["ArrowDown", "ArrowLeft", "ArrowRight", "ArrowUp"].includes(ev.key)) |         if(["ArrowDown", "ArrowLeft", "ArrowRight", "ArrowUp"].includes(ev.key)) | ||||||
|             key = ev.key; |             key = ev.key; | ||||||
|  |          | ||||||
|  |         if(ev.key == "p") | ||||||
|  |             alert("Game paused. Close this dialog to resume"); | ||||||
|     }); |     }); | ||||||
|  |  | ||||||
|     // Automatically generate new map element if required |     // Automatically generate new map element if required | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user