-
Notifications
You must be signed in to change notification settings - Fork 0
/
game.html
54 lines (48 loc) · 1.24 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
<style>
#game {
border: 1px solid black;
outline: none;
}
assets {
display: none;
}
#main-container {
width:720px;
}
textcontent p {
width:720px;
}
.center {
text-align: center;
}
.padded-bottom {
margin-bottom: 3cm;
}
</style>
<assets></assets>
<div id="main-container">
<canvas id="game" width="720" height="680" tabindex="1"></canvas>
</div>
<script src="js/Words.js"></script>
<script src="js/Colors.js"></script>
<script src="js/Coordinate.js"></script>
<script src="js/Size.js"></script>
<script src="js/Events.js"></script>
<script src="js/InputHandler.js"></script>
<script src="js/DrawTimer.js"></script>
<script src="js/Board.js"></script>
<script src="js/Controller.js"></script>
<script src="js/Canvas.js"></script>
<script src="js/Button.js"></script>
<script src="js/Card.js"></script>
<script src="js/Home.js"></script>
<script src="js/Win.js"></script>
<script src="js/Playing.js"></script>
<script src="js/Transition.js"></script>
<script>
const FPS = 60;
const canvas = new Canvas("game");
const controller = new Controller();
const inputHandler = new InputHandler(canvas);
(new DrawTimer(canvas, FPS)).start();
</script>