forked from jennylihan/snakesquad_fromglitch
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgame.html
More file actions
21 lines (20 loc) · 731 Bytes
/
game.html
File metadata and controls
21 lines (20 loc) · 731 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!--
game.html
This code displays what you see when you first load https://t1-snakesquad-completed.glitch.me/game.html, which
is mostly a HTML5 canvas (that the game will appear on).
It relies on game.css for styling and game.js for interactivity.
-->
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="/game.css">
</head>
<body>
<canvas width="600" height="600" id="game"></canvas>
<div style="display:none;"> <!-- These are hidden elements that we will display in game.js -->
<img id="avatar" src="https://mdn.mozillademos.org/files/5397/rhino.jpg" width="300" height="227">
<audio id ="background_audio" src="" loop = "loop" ></audio>
</div>
<script src="/game.js" defer></script>
</body>
</html>