-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
95 lines (81 loc) Β· 3.43 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>π§ β₯ Star Zombie Chase (Made by Starciad)</title>
<!-- STYLES -->
<link rel="stylesheet" href="css/styles.css">
<!-- SCRIPTS -->
<script src="js/main.js" type="module" defer></script>
<script src="js/game.js" type="module" defer></script>
<script src="js/render.js" type="module" defer></script>
</head>
<body>
<div id="dialog-container">
<!-- Settings -->
<dialog id="settings-dialog">
<form method="dialog">
<fieldset>
<legend>Map Settings</legend>
<label for="map-size">π β’ Size:</label>
<input type="number" id="map-size" min="3" max="10" value="5" required>
</fieldset>
<fieldset>
<legend>Entity Settings</legend>
<label for="zombie-count">π§ β’ Zombie Count:</label>
<input type="number" id="zombie-count" min="1" max="10" value="1" required>
<label for="obstacle-count">β β’ Obstacle Count:</label>
<input type="number" id="obstacle-count" min="1" max="10" value="2" required>
<label for="item-count">π§ͺ β’ Item Count:</label>
<input type="number" id="item-count" min="1" max="10" value="1" required>
</fieldset>
<menu>
<button id="close-settings-button" type="reset">β β’ Cancel</button>
<button id="restart-game-button" type="submit">β
β’ Apply</button>
</menu>
</form>
</dialog>
<!-- Game Over -->
<dialog id="game-over-dialog">
<section>
<h2>β β’ Game Over β’ β</h2>
<p>You were caught by a zombie!</p>
</section>
<menu>
<button type="button" id="restart-game-button">β» β’ Restart Game</button>
</menu>
</dialog>
<!-- Victory -->
<dialog id="victory-dialog">
<section>
<h2>β¨ β’ You Won! β’ β¨</h2>
<p>You collected all the items!</p>
</section>
<menu>
<button type="button" id="restart-game-button">β» β’ Restart Game</button>
</menu>
</dialog>
</div>
<div id="app-container">
<header>
<h1>Star Zombie Chase</h1>
<menu>
<button type="button" id="open-settings-button">β β’ Game Settings</button>
<button type="button" id="restart-game-button">β» β’ Restart Game</button>
</menu>
</header>
<main>
<div id="game-info">
<p>Current Turn: <span id="round">1</span></p>
<p>Items Collected: <span id="collected-items">0</span>/<span id="total-items">1</span></p>
</div>
<div id="game-board" class="grid"></div>
</main>
<footer>
<p>Game made and developed by <a href="https://github.com/Starciad" target="_blank" rel="noopener noreferrer">Starciad</a></p>
<p><a href="https://github.com/Starciad/StarZombieChase.git" target="_blank" rel="noopener noreferrer">Go to the game repository</a></p>
</footer>
</div>
</body>
</html>