Merge branch 'master' of https://git.etud.insa-toulouse.fr/nbillard/sokoban
This commit is contained in:
commit
380cebd36d
3 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@
|
||||||
<meta name="description" content="">
|
<meta name="description" content="">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
|
||||||
<link rel="icon" href="./res/mario.png"/>
|
<link rel="icon" href="./res/player.png"/>
|
||||||
<!-- Place favicon.ico in the root directory -->
|
<!-- Place favicon.ico in the root directory -->
|
||||||
<link rel="stylesheet" href="./style.css"/>
|
<link rel="stylesheet" href="./style.css"/>
|
||||||
|
|
||||||
|
|
BIN
res/mario.png
BIN
res/mario.png
Binary file not shown.
Before Width: | Height: | Size: 263 KiB |
|
@ -5,7 +5,7 @@ import { MoveDirection } from '/modules/enums.mjs'
|
||||||
let canvas = document.getElementById('canvas');
|
let canvas = document.getElementById('canvas');
|
||||||
let ctx = canvas.getContext('2d');
|
let ctx = canvas.getContext('2d');
|
||||||
window.ctx = ctx
|
window.ctx = ctx
|
||||||
let playground = generatePlayground(level1Blueprint, canvas.width, canvas.height);
|
let playground = generatePlayground(level2Blueprint, canvas.width, canvas.height);
|
||||||
window.addEventListener("keydown", (event) => {
|
window.addEventListener("keydown", (event) => {
|
||||||
if (!event.defaultPrevented) {
|
if (!event.defaultPrevented) {
|
||||||
switch (event.key) {
|
switch (event.key) {
|
||||||
|
|
Loading…
Reference in a new issue