forked from Achiaga/toy-tank-war
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
123 lines (113 loc) · 4.41 KB
/
index.html
File metadata and controls
123 lines (113 loc) · 4.41 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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Toy Tank War</title>
<link rel="icon" type="image/png" href="assets/logo.png">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div id="start-screen">
<h1>Toy Tank War</h1>
<p>Select your tank and destroy the enemies!</p>
<div id="tank-preview" style="width: 300px; height: 200px; margin-bottom: 20px; border: 1px solid #333; background: #222;"></div>
<div class="tank-selector">
<div class="tank-card" data-type="heavy">
<h3>Heavy Tank</h3>
<div class="stat-bar"><div class="fill" style="width: 100%"></div></div> <small>Health</small>
<div class="stat-bar"><div class="fill" style="width: 100%"></div></div> <small>Damage</small>
<div class="stat-bar"><div class="fill" style="width: 40%"></div></div> <small>Speed</small>
</div>
<div class="tank-card selected" data-type="balanced">
<h3>Balanced</h3>
<div class="stat-bar"><div class="fill" style="width: 70%"></div></div> <small>Health</small>
<div class="stat-bar"><div class="fill" style="width: 70%"></div></div> <small>Damage</small>
<div class="stat-bar"><div class="fill" style="width: 70%"></div></div> <small>Speed</small>
</div>
<div class="tank-card" data-type="scout">
<h3>Scout</h3>
<div class="stat-bar"><div class="fill" style="width: 40%"></div></div> <small>Health</small>
<div class="stat-bar"><div class="fill" style="width: 40%"></div></div> <small>Damage</small>
<div class="stat-bar"><div class="fill" style="width: 100%"></div></div> <small>Speed</small>
</div>
<div class="tank-card" data-type="spanish">
<h3>Spanish</h3>
<div class="stat-bar"><div class="fill" style="width: 80%"></div></div> <small>Health</small>
<div class="stat-bar"><div class="fill" style="width: 100%"></div></div> <small>MUCHO CANNON</small>
<div class="stat-bar"><div class="fill" style="width: 50%"></div></div> <small>Speed</small>
</div>
</div>
<div style="margin-top: 20px;">
<label for="tank-color">Choose Tank Color: </label>
<input type="color" id="tank-color" value="#1e90ff">
</div>
<button id="start-button">Start Game</button>
</div>
<div id="top-hud">
<div id="countdown-timer"></div>
<div id="health-container">
<div id="health-bar"></div>
</div>
</div>
<div id="ui">
<div>Score: <span id="score">0</span></div>
<!-- Health moved to top-hud -->
<div>Armor: <span id="armor">0</span></div>
<div>Fire Rate: <span id="fire-rate">0.5</span>s</div>
<div id="reload-container">
<div id="reload-bar"></div>
</div>
</div>
<div id="damage-overlay"></div>
<div id="minimap"></div>
<!-- Debug Panel -->
<div id="debug-panel" style="display: none;">
<h3>🛠️ Debug Mode</h3>
<div class="debug-option">
<label>
<input type="checkbox" id="debug-immortal">
<span>Immortal (F2)</span>
</label>
</div>
<div class="debug-option">
<label>
<input type="checkbox" id="debug-notarget">
<span>No Target (F3)</span>
</label>
</div>
<div class="debug-option">
<label>
<input type="checkbox" id="debug-flying">
<span>Flying (F4) - Q/E</span>
</label>
</div>
<div class="debug-option">
<label>
<input type="checkbox" id="debug-noclip">
<span>Noclip (F5)</span>
</label>
</div>
<div class="debug-option">
<label>
<input type="checkbox" id="debug-speed">
<span>Speed x3 (F6)</span>
</label>
</div>
<div class="debug-option">
<label>
<input type="checkbox" id="debug-ammo">
<span>∞ Ammo (F7)</span>
</label>
</div>
<div class="debug-hint">Press F1 to toggle</div>
</div>
<!-- Active Debug Modes Indicator -->
<div id="debug-active-modes" style="display: none;"></div>
<div id="game-over">
<h2>Game Over</h2>
<p>Final Score: <span id="final-score">0</span></p>
<button id="restart-button">Play Again</button>
</div>
<script type="module" src="js/main.js"></script>
</body>
</html>