-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
129 lines (113 loc) · 4.96 KB
/
index.html
File metadata and controls
129 lines (113 loc) · 4.96 KB
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./style.css" />
<title>PAC</title>
<link rel="icon" type="image/svg+xml" sizes="32x32" href="https://static.itch.io/favicon.ico">
</head>
<body>
<span class="expl"></span>
<div class="todo">
<p> TODO : </p>
<p>- <s>add restart btn on pause</s> </p>
<p>- <s>add game win</s></p>
<p>- <s>add game win</s></p>
<p>- <s>add game win</s></p>
<p>- add history</p>
<p>- adjust invaders img size</p>
<p>- <s>add gif for explo</s> </p>
<p>- <s>adjust player w/h</s> </p>
<p>- prevent spamming keys </p>
<p>- <s>invader bullet hit the player correctly</s> </p>
</div>
<nav>
<svg tabindex="1" id="open" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50">
<polygon fill="#fff" points="4 8 4 13 50 13 50 8 " />
<polygon fill="#fff" points="4 20 4 25 50 25 50 20 " />
<polygon fill="#fff" points="4 32 4 37 50 37 50 32 " />
</svg>
<div class="settings">
<div>
<label for="hor">- Enimies Hor Speed : <em></em> </label>
<div id="hor">
<span></span>
<input type="range" name="" min="2" max="10">
<span></span>
</div>
</div>
<div>
<label for="ver">- Enimies Ver Speed : <em></em></label>
<div id="ver">
<span></span>
<input type="range" name="" min="5" max="50">
<span></span>
</div>
</div>
<div>
<label for="bullet">- Bullet Speed : <em></em></label>
<div id="bullet">
<span></span>
<input type="range" name="" min="2" max="10">
<span></span>
</div>
</div>
</div>
</nav>
<!-- TODO : win popup -->
<div class="game-win-popup popup">
<h1>You win</h1>
<h1>Score : <span>0</span></h1>
<button tabindex="2">play again</button>
</div>
<div class="start-popup popup">
<h1># </h1>
<button tabindex="2">Start</button>
</div>
<div class="restart-popup popup">
<h1>GAME OVER</h1>
<h1>score : <span>0</span> </h1>
<p></p>
<button tabindex="2">restart</button>
</div>
<div class="pause-popup popup">
<h1>paused </h1>
<p>
<span></span>
</p>
<div class="btns">
<button>restart</button>
<button>REsume</button>
</div>
</div>
<div class="options">
<div class="count-down">
<span>01:10</span>
</div>
<div class="options-score">
<p>Score : <span>0</span></p>
</div>
<div class="options-lives">
<p>LIVES :
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="size-6">
<path
d="m11.645 20.91-.007-.003-.022-.012a15.247 15.247 0 0 1-.383-.218 25.18 25.18 0 0 1-4.244-3.17C4.688 15.36 2.25 12.174 2.25 8.25 2.25 5.322 4.714 3 7.688 3A5.5 5.5 0 0 1 12 5.052 5.5 5.5 0 0 1 16.313 3c2.973 0 5.437 2.322 5.437 5.25 0 3.925-2.438 7.111-4.739 9.256a25.175 25.175 0 0 1-4.244 3.17 15.247 15.247 0 0 1-.383.219l-.022.012-.007.004-.003.001a.752.752 0 0 1-.704 0l-.003-.001Z" />
</svg>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="size-6">
<path
d="m11.645 20.91-.007-.003-.022-.012a15.247 15.247 0 0 1-.383-.218 25.18 25.18 0 0 1-4.244-3.17C4.688 15.36 2.25 12.174 2.25 8.25 2.25 5.322 4.714 3 7.688 3A5.5 5.5 0 0 1 12 5.052 5.5 5.5 0 0 1 16.313 3c2.973 0 5.437 2.322 5.437 5.25 0 3.925-2.438 7.111-4.739 9.256a25.175 25.175 0 0 1-4.244 3.17 15.247 15.247 0 0 1-.383.219l-.022.012-.007.004-.003.001a.752.752 0 0 1-.704 0l-.003-.001Z" />
</svg>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="size-6">
<path
d="m11.645 20.91-.007-.003-.022-.012a15.247 15.247 0 0 1-.383-.218 25.18 25.18 0 0 1-4.244-3.17C4.688 15.36 2.25 12.174 2.25 8.25 2.25 5.322 4.714 3 7.688 3A5.5 5.5 0 0 1 12 5.052 5.5 5.5 0 0 1 16.313 3c2.973 0 5.437 2.322 5.437 5.25 0 3.925-2.438 7.111-4.739 9.256a25.175 25.175 0 0 1-4.244 3.17 15.247 15.247 0 0 1-.383.219l-.022.012-.007.004-.003.001a.752.752 0 0 1-.704 0l-.003-.001Z" />
</svg>
</p>
</div>
</div>
<div class="canvas">
<div class="player"></div>
</div>
<script type="module" src="./scripts/script.js"></script>
</body>
</html>