Edit ─ Add top margin to game canvas

This commit is contained in:
nocode committed 2026-05-07 15:34:15 +02:00
1 parent d5f56c6595
commit 636a1ad7cf
1 file changed
+1
+1
View File
@@ -2,6 +2,7 @@ const canvas = document.querySelector("#game");
canvas.width = 1500, canvas.height = 800;
canvas.style.backgroundColor = "rgba(100,0,0)";
canvas.style.marginTop = "5rem";
let player = {