-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
64 lines (64 loc) · 3.07 KB
/
index.html
File metadata and controls
64 lines (64 loc) · 3.07 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover">
<title>Star Citadel</title>
<meta name="description" content="Star Citadel — a browser-based arcade game inspired by the classic Star Castle (1980).">
<meta property="og:title" content="Star Citadel">
<meta property="og:description" content="Destroy the rotating rings, defeat the cannon, and survive the homing mines in this retro arcade shooter.">
<meta property="og:image" content="https://millxing.github.io/starcitadel/starcitadel.png">
<meta property="og:url" content="https://millxing.github.io/starcitadel/">
<meta property="og:type" content="website">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Star Citadel">
<meta name="twitter:description" content="Destroy the rotating rings, defeat the cannon, and survive the homing mines in this retro arcade shooter.">
<meta name="twitter:image" content="https://millxing.github.io/starcitadel/starcitadel.png">
<link rel="icon" type="image/png" href="/starcitadel.png">
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
width: 100%; height: 100%; overflow: hidden; background: #000;
touch-action: none; -webkit-touch-callout: none;
-webkit-user-select: none; user-select: none;
overscroll-behavior: none;
}
canvas { display: block; cursor: none; touch-action: none; }
#pauseOverlay input[type="range"] {
-webkit-appearance: none; appearance: none;
height: 6px; background: #224; border-radius: 3px; outline: none;
}
#pauseOverlay input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none; appearance: none;
width: 16px; height: 16px; border-radius: 50%;
background: #00ffff; cursor: pointer;
box-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}
#pauseOverlay input[type="range"]::-moz-range-thumb {
width: 16px; height: 16px; border-radius: 50%;
background: #00ffff; cursor: pointer; border: none;
box-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}
</style>
</head>
<body>
<canvas id="gameCanvas"></canvas>
<script src="js/constants.js"></script>
<script src="js/vector.js"></script>
<script src="js/renderer.js"></script>
<script src="js/input.js"></script>
<script src="js/touch.js"></script>
<script src="js/particles.js"></script>
<script src="js/bullet.js"></script>
<script src="js/player.js"></script>
<script src="js/rings.js"></script>
<script src="js/cannon.js"></script>
<script src="js/mine.js"></script>
<script src="js/countermeasure.js"></script>
<script src="js/hud.js"></script>
<script src="js/audio.js"></script>
<script src="js/menu.js"></script>
<script src="js/game.js"></script>
<script src="js/main.js"></script>
</body>
</html>