-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgame.html
159 lines (159 loc) · 5.08 KB
/
game.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
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
148
149
150
151
152
153
154
155
156
157
158
159
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<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=Bokor&family=Montserrat:wght@700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./assets/css/header.css">
<link rel="stylesheet" href="./assets/css/footer.css">
<style>
body {
margin: 0;
padding: 0;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
background: #000 url('./assets/main_site_bkg.jpg') no-repeat center center fixed;
background-size: cover;
}
body::before {
content: '';
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
z-index: 0;
}
.game-container {
position: relative;
z-index: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
padding: 0 20px;
margin-top: -5vh;
}
.title-container {
position: relative;
text-align: center;
margin-bottom: 2rem;
}
.game-title {
font-family: 'Bokor', cursive;
font-size: 140px;
letter-spacing: 0.05em;
margin: 0;
padding: 0;
white-space: nowrap;
line-height: 1;
background: linear-gradient(180deg,
#e8f1ff 0%,
#a8c6e8 40%,
#5d89b3 50%,
#a8c6e8 60%,
#e8f1ff 100%
);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
-webkit-text-stroke: 2.5px #000;
position: relative;
text-shadow:
-1px -1px 0px rgba(232,241,255,0.4),
1px 1px 2px rgba(93,137,179,0.4);
filter:
drop-shadow(0 0 8px rgba(0, 0, 0, 0.8))
drop-shadow(4px 4px 0 #000)
drop-shadow(0 0 12px rgba(168,198,232,0.25));
z-index: 2;
}
.game-wrapper {
width: 960px;
height: 540px;
margin: 0 auto;
position: relative;
top: 0;
border-radius: 12px;
overflow: hidden;
box-shadow:
/* Metallic border effect */
0 0 0 1px rgba(232, 241, 255, 0.15),
0 0 0 2px rgba(168, 198, 232, 0.1),
/* Depth shadows */
0 4px 6px rgba(0, 0, 0, 0.3),
0 8px 16px rgba(0, 0, 0, 0.3),
/* Subtle glow */
0 0 20px rgba(93, 137, 179, 0.15);
}
#game {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
canvas {
display: block;
position: relative;
z-index: 1;
margin: 0;
padding: 0;
vertical-align: top;
}
.loading-text {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: #fff;
font-family: 'Bokor', cursive;
font-size: 24px;
}
.shape-link {
color: #a8c6e8;
text-decoration: none;
transition: color 0.2s ease;
}
.shape-link:hover {
color: #fff;
text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}
</style>
</head>
<body>
<div class="game-container">
<div class="title-container">
<h1 class="game-title">Heavy Helms</h1>
</div>
<div class="game-wrapper">
<div id="game"></div>
</div>
</div>
<div style="font-family: Bokor; position: absolute; left:-1000px; visibility: hidden;">.</div>
<script type="module" src="./src/main.js"></script>
<footer class="footer">
<div class="footer-content">
<div class="contracts-section">
<div class="contracts-label">Shape Mainnet Contracts</div>
<ul class="contracts-row">
<li><a href="https://shapescan.xyz/address/0xA909501cEe754bfE0F00DF7c21653957caaAdF03" class="contract-link">Player</a></li>
<li><a href="https://shapescan.xyz/address/0xEF804F79014F937973f37Bb80D5dc9Bf16543e1e" class="contract-link">GameEngine</a></li>
<li><a href="https://shapescan.xyz/address/0x84c0b41D8792afB4E333E8E849cC9B4ce8CCA1cF" class="contract-link">PracticeGame</a></li>
<li><a href="https://shapescan.xyz/address/0xF2b9189e0Aa4C495220F201459e97D33D637f700" class="contract-link">DuelGame</a></li>
</ul>
</div>
<div class="footer-attribution">
<div class="powered-by">Powered by <a href="https://shape.network/" class="shape-link">Shape Network</a></div>
<div class="copyright">© 2024 <a href="https://heavyhelms.xyz">Heavy Helms</a></div>
<div class="built-by">Built by <a href="https://www.webmodularity.com/" class="webmod-text">WebModularity</a></div>
</div>
</div>
</footer>
</body>
</html>