-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
77 lines (57 loc) · 2.61 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" />
<!-- code for favicon -->
<link rel="apple-touch-icon" sizes="180x180" href="favicon_io/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicon_io/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicon_io/favicon-16x16.png">
<link rel="manifest" href="favicon_io/site.webmanifest">
<!-- Google fonts-->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Audiowide&display=swap" >
<link rel="stylesheet" type="text/css" href="shooter.css" />
<!-- defer loads html first then JS -->
<script defer type="text/javascript" src="shooter.js"></script>
<title>Space Shooter</title>
</head>
<body onContextMenu="return false" > <!-- onContextMenu prevents right click menu -->
<canvas id="canvas"></canvas>
<!-- draggable prevents mouse drag of image -->
<figure class="craft">
<img src="assets/spacecraft.png" draggable="false" id="spacecraft" />
</figure>
<figure class="craft alien">
<img src="assets/0.png" draggable="false" id="alien0" />
</figure>
<figure class="craft alien">
<img src="assets/1.png" draggable="false" id="alien1" />
</figure>
<figure class="craft alien">
<img src="assets/2.png" draggable="false" id="alien2" />
</figure>
<figure class="craft alien">
<img src="assets/3.png" draggable="false" id="alien3" />
</figure>
<figure class="craft alien">
<img src="assets/4.png" draggable="false" id="alien4" />
</figure>
<figure class="craft alien">
<img src="assets/5.png" draggable="false" id="alien5" />
</figure>
<figure class="craft alien">
<img src="assets/6.png" draggable="false" id="alien6" />
</figure>
<figure class="craft alien">
<img src="assets/7.png" draggable="false" id="alien7" />
</figure>
<p class="score"></p>
<div class="portfolio">
<a href="https://dany-cervantes-portfolio.pages.dev/" target="_blank">
Visit My Portfolio
</a>
</div>
</body>
</html>