-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
73 lines (64 loc) · 2.08 KB
/
index.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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="shortcut icon" href="/logo-192x192.png" type="image/x-icon">
<meta name="theme-color" content="#F8EFBA">
<title>FindTheCoinsGame</title>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-MXTMYHYN09"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-MXTMYHYN09');
</script>
</head>
<body>
<div class="info">
<h1>
You have <span id="points">0</span> points
</h1>
<h2>
Level: <span id="level">1</span>
</h2>
</div>
<canvas id="canvas"></canvas>
<h2>
You moved <span id="moves">0</span> times
</h2>
<div class="mobile-controls">
<button id="up">⬆️</button>
<button id="left">⬅️</button>
<button id="down">⬇️</button>
<button id="right">➡️</button>
</div>
<div class="buttons">
<button id="help">
Help (-3 pts)
</button>
<button id="reset">
Reset game
</button>
</div>
<p>
<i>
Play with keyboard arrows or controls up above (only on mobile).<br/>
<br/>
When the maze appears, you have a little moment to remember it.<br/>
The time you have to remember it and the size of the board depends on the level (+1 board size and + 2 seconds / 5 lvls).<br/>
Then, your have to make your way through the maze to reach a colored tile.<br/>
Yellow tiles are worth more than green ones.<br/>
<br/>
Touching a wall makes you lose 1 point.<br/>
When at 0 points, you lose.<br/>
<br/>
You can look at the code on <a href="https://github.com/RedsTom/FindTheCoinsGame">GitHub</a>
</i>
</p>
<script type="module" src="src/index.ts" defer></script>
</body>
</html>