-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
37 lines (36 loc) · 1.52 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>JavaScript 2D game</title>
<link rel="shortcut icon" href="assets/favicon.png" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Creepster&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<canvas id="canvas1"></canvas>
<img id="player" src="assets/player.png" alt="player" />
<img id="layer1" src="assets/layer-1.png" alt="background layer" />
<img id="layer2" src="assets/layer-2.png" alt="background layer" />
<img id="layer3" src="assets/layer-3.png" alt="background layer" />
<img id="layer4" src="assets/layer-4.png" alt="background layer" />
<img id="layer5" src="assets/layer-5.png" alt="background layer" />
<img id="enemy_fly" src="assets/enemy_fly.png" alt="flying enemy" />
<img id="enemy_plant" src="assets/enemy_plant.png" alt="ground enemy" />
<img
id="enemy_spider_big"
src="assets/enemy_spider_big.png"
alt="climbing enemy"
/>
<img id="fire" src="assets/fire.png" alt="fire" />
<img id="collisionAnimation" src="assets/boom.png" alt="collision" />
<img id="life" src="assets/heart.png" alt="player's life" />
<script type="module" src="scripts/main.js"></script>
</body>
</html>