-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathindex.html
More file actions
124 lines (106 loc) · 5 KB
/
index.html
File metadata and controls
124 lines (106 loc) · 5 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
<!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">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<title>Stacking Game</title>
<!-- css -->
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/themes.css">
<!-- favicon -->
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="shortcut icon" href="favicon.ico" />
</head>
<body>
<!-- instructions -->
<div id="instructions">
<div class="content">
<h1>🧩3D - BlockStack Game🧩 </h1>
<h2>INSTRUCTIONS📜</h2>
<p>1. Stack the blocks on top of each other</p>
<p>2. Click, tap or press Space when a block is above the stack. Can you reach the blue color blocks?</p>
<p>3. Click, tap or press Space to start game</p>
</div>
</div>
<!-- results -->
<div id="results">
<button id="close-results" class="close-btn" title="Close">×</button>
<div class="content">
<div class="game-over-title">
<svg class="miss-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="10"></circle>
<line x1="15" y1="9" x2="9" y2="15"></line>
<line x1="9" y1="9" x2="15" y2="15"></line>
</svg>
<h1>Game Over!</h1>
</div>
<p class="miss-message">You missed the block 😅 </p>
<p class="luck-message">Better luck next time 🤞</p>
<div class="score-container">
<div class="score-card current-score">
<div class="score-label">Your Score</div>
<div id="end-score" class="score-value">0</div>
</div>
<div class="score-divider"></div>
<div class="score-card high-score">
<div class="score-label">
<svg class="trophy-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M6 9H4.5a2.5 2.5 0 0 1 0-5H6"></path>
<path d="M18 9h1.5a2.5 2.5 0 0 0 0-5H18"></path>
<path d="M4 22h16"></path>
<path d="M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22"></path>
<path d="M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22"></path>
<path d="M18 2H6v7a6 6 0 0 0 12 0V2Z"></path>
</svg>
Best Score
</div>
<div id="end-high-score" class="score-value">0</div>
</div>
</div>
<div class="restart-hint">
<svg class="restart-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<polyline points="23 4 23 10 17 10"></polyline>
<path d="M20.49 15a9 9 0 1 1-2.12-9.36L23 10"></path>
</svg>
<span id="restart-text">Press <kbd>R</kbd> to restart</span>
</div>
<div class="social-follow">
Follow me on
<a href="https://twitter.com/maitrivv" target="_top" class="twitter-link">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
<path
d="M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.827 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.867 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z" />
</svg>
@maitrivv
</a>
</div>
</div>
</div>
<!-- score box -->
<div id="score">0</div>
<!-- overlap feedback box -->
<div id="overlap-popup">100%</div>
<!-- Theme Buttons -->
<div id="theme-controls">
<button id="theme-default" class="theme-btn active" data-tooltip="Default Theme">🌅</button>
<button id="theme-night" class="theme-btn" data-tooltip="Night Theme">🌙</button>
<button id="theme-sunset" class="theme-btn" data-tooltip="Sunset Theme">🌇</button>
</div>
<!-- Include Three.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tween.js/18.6.4/tween.umd.js"></script>
<!-- Include Cannon.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/cannon.js/0.6.2/cannon.min.js"></script>
<!-- Theme Management -->
<script src="Js/themes.js"></script>
<!-- Game Script -->
<script src="Js/script.js"></script>
</body>
</html>