-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
123 lines (107 loc) · 2.96 KB
/
Copy pathindex.html
File metadata and controls
123 lines (107 loc) · 2.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />
<meta name="x-ogp-key" content="9e3069bf-9c1c-4896-aa3a-9235258de449" />
<meta name="x-ogp-game-id" content="e58f4e5e-1491-430f-8e25-88b04c446123" />
<title>Tofu Drift 3D - 藤原とうふ店</title>
<script src="https://sdk.play.fun/dev-mainnet/sdk.js"></script>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
overflow: hidden;
font-family: 'Courier New', monospace;
background: #1a0a2e;
}
#app {
width: 100vw;
height: 100vh;
}
#ui {
position: fixed;
top: 20px;
left: 20px;
color: white;
font-size: 18px;
text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
display: none;
z-index: 100;
}
#score, #tofu {
margin-bottom: 10px;
}
#menu {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background: rgba(26, 10, 46, 0.9);
color: white;
text-align: center;
z-index: 200;
}
#menu h1 {
font-size: 48px;
margin-bottom: 10px;
text-shadow: 0 0 20px #ff6b6b, 0 0 40px #ff6b6b;
letter-spacing: 4px;
}
#menu .japanese {
font-size: 24px;
color: #ffcc00;
margin-bottom: 30px;
text-shadow: 0 0 10px #ffcc00;
}
#menu .subtitle {
font-size: 18px;
color: #aaa;
margin-bottom: 20px;
animation: pulse 2s infinite;
}
#menu .controls {
font-size: 14px;
color: #666;
margin-top: 20px;
}
#final-score {
font-size: 20px;
color: #44ff44;
margin-bottom: 30px;
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
canvas {
display: block;
}
</style>
</head>
<body>
<div id="app"></div>
<div id="flash" style="position:fixed;top:0;left:0;width:100vw;height:100vh;background:linear-gradient(180deg,#ffdd88 0%,#ff8844 100%);pointer-events:none;opacity:0;transition:opacity 0.1s;z-index:50;"></div>
<div id="ui">
<div id="score">Tofu: 0</div>
</div>
<div id="menu">
<h1>TOFU DRIFT</h1>
<div class="japanese">藤原とうふ店 (自家用)</div>
<div class="subtitle">Click or Press SPACE to Start</div>
<div id="final-score"></div>
<div class="controls">
← → or A/D to steer | Collect tofu, avoid obstacles!
</div>
</div>
<script type="module" src="/src/main.js"></script>
</body>
</html>