Responsive

This commit is contained in:
sageTheDM 2024-12-17 14:42:17 +01:00
parent 418c2a30e8
commit 3051b3f3d9
7 changed files with 204 additions and 25 deletions

View file

@ -8,6 +8,14 @@
</head>
<body>
<canvas id="gameCanvas"></canvas>
<!-- Virtual buttons for mobile -->
<div class="controls">
<button id="leftBtn" class="control-btn" onmousedown="btnMoveLeft(true)" onmouseup="btnMoveLeft(false)">Left</button>
<button id="shootBtn" class="control-btn" onclick="btnShoot()">Shoot</button>
<button id="rightBtn" class="control-btn" onmousedown="btnMoveRight(true)" onmouseup="btnMoveRight(false)">Right</button>
</div>
<script src="game.js"></script>
</body>
</html>