-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
53 lines (46 loc) · 1.94 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="css/style.css">
<!--scripts voor posenet skeleton-->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/p5.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/ml5.min.js"></script>
<!--import fonts-->
<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=Space+Mono&family=Work+Sans:wght@300&display=swap"
rel="stylesheet">
<title>Coolest christmas game</title>
</head>
<body>
<!--Some nice stars for the background are added here-->
<div class='stars'></div>
<!--Intro game-->
<div class="start">
<h1 class="start__title">Welcome to the coolest Christmas game</h1>
<p class="start__description">Decorate the tree as best as you can and have fun!</p>
<a class="start__button">Start the game</a>
<p class="start__disclaimer">Make sure to allow camera access and put your sound on. Your entire upper body
needs to be visible. Keep in mind that this game
only works in Google Chrome & mozilla firefox. </p>
</div>
<script>
//global variables needed in multiple js files
let christmasDecorationArr = [];
//to check if nose hovers over santa, if hover:start speech recognition
let speech = false;
let aanHetPraten = false;
//gameplay instructions
let santaText = '';
let instructionText = '';
let reindeerText = '';
</script>
<script src="js/stars.js"></script>
<script src="js/speech.js"></script>
<script src="js/script.js"></script>
</body>
</html>