ajout du gitignore et de la todo list

This commit is contained in:
2026-07-31 20:15:21 +02:00
parent 81e2623e2a
commit 0395882ca7
4 changed files with 26 additions and 3 deletions

View File

@@ -7,7 +7,7 @@
<body>
<h1>Bonjour !</h1>
<p>Ceci est une page statique servie par Express.</p>
<canvas id="maze" width="490" height="490" style="border: 1px solid #333; display: none;"></canvas>
<canvas id="maze" width="490" height="490" style="border: 1px solid #333;"></canvas>
<input type="text" id="input" placeholder="message">
<button id="sendBtn">Envoyer</button>
<script src="/socket.io/socket.io.js"></script>
@@ -23,7 +23,7 @@
canvas.style.display = "block";
render();
} else {
canvas.style.display = "none";
drawBlind();
}
});
@@ -51,6 +51,10 @@
const cellSize = 70;
const player = { x : 1, y : 1};
function drawBlind(){
ctx.fillStyle = "black";
ctx.fillRect(0,0, canvas.width, canvas.height);
}
function drawMaze(){
ctx.clearRect(0, 0, canvas.width, canvas.height);