forked from henrihal/DeepMindHackathon
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
147 lines (134 loc) · 6.09 KB
/
index.html
File metadata and controls
147 lines (134 loc) · 6.09 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Anything Arcade</title>
<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=Press+Start+2P&display=swap" rel="stylesheet">
<link rel="stylesheet" href="/src/style.css">
</head>
<body>
<!-- ═══════════════════════════════════════ -->
<!-- TITLE / MENU SCREEN -->
<!-- ═══════════════════════════════════════ -->
<div id="menu-container">
<div class="scanlines"></div>
<div class="title-block">
<h1 class="game-title">ANYTHING<br><span class="title-accent">ARCADE</span></h1>
<p class="subtitle">⚡ PIXEL BRAWLER ⚡</p>
</div>
<div class="controls-wrapper">
<div class="menu-section">
<h2><span class="pixel-icon">▶</span> P1 CONTROLS</h2>
<label>UP <input type="text" id="p1-up" value="W" maxlength="10"></label>
<label>LEFT <input type="text" id="p1-left" value="A" maxlength="10"></label>
<label>RIGHT <input type="text" id="p1-right" value="D" maxlength="10"></label>
<label>ATTACK <input type="text" id="p1-attack" value="F" maxlength="10"></label>
</div>
<div class="menu-section">
<h2><span class="pixel-icon">▶</span> P2 CONTROLS</h2>
<label>UP <input type="text" id="p2-up" value="UP" maxlength="10"></label>
<label>LEFT <input type="text" id="p2-left" value="LEFT" maxlength="10"></label>
<label>RIGHT <input type="text" id="p2-right" value="RIGHT" maxlength="10"></label>
<label>ATTACK <input type="text" id="p2-attack" value="SHIFT" maxlength="10"></label>
</div>
</div>
<div class="characters-wrapper">
<div class="menu-section character-section">
<h2><span class="pixel-icon">♦</span> P1 SPRITE</h2>
<p class="hint-text">Upload photo for custom fighter</p>
<label class="file-label">
<span class="file-btn">CHOOSE FILE</span>
<input type="file" id="p1-sprite-image" accept="image/png, image/jpeg, image/webp">
</label>
<div id="p1-sprite-preview-container" class="preview-container">
<img id="p1-sprite-preview" class="preview-img" />
</div>
</div>
<div class="menu-section character-section">
<h2><span class="pixel-icon">♦</span> P2 SPRITE</h2>
<p class="hint-text">Upload photo for custom fighter</p>
<label class="file-label">
<span class="file-btn">CHOOSE FILE</span>
<input type="file" id="p2-sprite-image" accept="image/png, image/jpeg, image/webp">
</label>
<div id="p2-sprite-preview-container" class="preview-container">
<img id="p2-sprite-preview" class="preview-img" />
</div>
</div>
</div>
<div class="server-status-row">
<small id="sprite-server-status">CHECKING SERVER...</small>
</div>
<div class="menu-section arena-section">
<h2><span class="pixel-icon">★</span> ARENA</h2>
<label>BASE IMAGE
<input type="file" id="bg-image" accept="image/png, image/jpeg, image/webp">
</label>
<label>AI PROMPT</label>
<input type="text" id="bg-prompt"
value="A chaotic cyberpunk fighting arena, 2d platformer background, high quality, dark lighting"
class="prompt-input">
<small class="powered-by">POWERED BY GEMINI API</small>
</div>
<button id="start-btn">
<span class="btn-icon">▶</span> START BATTLE
</button>
<p class="insert-coin blink">INSERT COIN TO CONTINUE</p>
</div>
<!-- ═══════════════════════════════════════ -->
<!-- LOADING SCREEN -->
<!-- ═══════════════════════════════════════ -->
<div id="loading-screen" style="display: none;">
<div class="scanlines"></div>
<div class="loading-content">
<h2 class="loading-title">LOADING...</h2>
<div class="progress-bar-container">
<div id="progress-bar" class="progress-bar"></div>
</div>
<p id="loading-text" class="loading-status">INITIALIZING...</p>
<div class="fun-fact-box">
<span class="fun-fact-label">DID YOU KNOW?</span>
<p id="fun-fact-text" class="fun-fact-content">The first fighting game was "Heavyweight Champ" released in 1976!
</p>
</div>
<div class="pixel-animation">
<span class="pixel-dot dot1">■</span>
<span class="pixel-dot dot2">■</span>
<span class="pixel-dot dot3">■</span>
<span class="pixel-dot dot4">■</span>
<span class="pixel-dot dot5">■</span>
</div>
</div>
</div>
<!-- ═══════════════════════════════════════ -->
<!-- GAME SCREEN -->
<!-- ═══════════════════════════════════════ -->
<div id="game-container" style="display: none;">
<div id="ui-container">
<!-- P1 HUD -->
<div class="hud-player hud-p1">
<div class="hud-name">P1</div>
<div class="hud-bar-track">
<div id="p1-health-bar" class="hud-bar-fill"></div>
</div>
<div id="p1-score" class="hud-dmg">0%</div>
</div>
<!-- VS -->
<div class="hud-vs">VS</div>
<!-- P2 HUD -->
<div class="hud-player hud-p2">
<div id="p2-score" class="hud-dmg">0%</div>
<div class="hud-bar-track">
<div id="p2-health-bar" class="hud-bar-fill"></div>
</div>
<div class="hud-name">P2</div>
</div>
</div>
<div id="phaser-game"></div>
</div>
<script type="module" src="/src/main.js"></script>
</body>
</html>