-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
74 lines (69 loc) · 2.1 KB
/
index.html
File metadata and controls
74 lines (69 loc) · 2.1 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
<html>
<head>
<meta charset="UTF-8">
<title>2048</title>
<link href="https://fonts.googleapis.com/css2?family=Bree+Serif&display=swap" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/style.css" />
</head>
<body>
<!--
When a player clicks this button, the game will begin
-->
<button id="begin-game" class="button">
Start
</button>
<!--
#game-scene: container for entire play area
#game-over: container for game over overlay
#game-over: container for game win overlay
#play-area: container for the board
-->
<div id="game-scene">
<div id="game-over">
<h3>Sorry! Game over.</h3>
<button id="replay" class="button">Restart</button>
</div>
<div id="game-win">
<h3>You win!</h3>
<button id="keep-going" class="button">Keep going</button>
</div>
<div id="play-area">
<div class="stand-container left">
<div class="score">
<div class="score-heading">Score:</div>
<div id="game-score"></div>
</div>
</div>
<!--
#game-board-underlay: container for HTML tokens
-->
<div id="game-board-underlay">
<div id="token" data-column="0">
</div>
</div>
<!--
SVGs were used to create the board and the "holes" for the Spaces
-->
<svg id="game-board">
<defs>
<!--
#mask: container for Space SVGs
-->
<mask id="mask" x="0" y="0" width="320" height="320">
<rect x="0" y="0" height="320" width="320" fill="white">
</mask>
</defs>
<rect id="board-back" x="0" y="0" width="320" height="320" mask="url(#mask)" fill-opacity="1" fill="#212636"/>
</svg>
<div class="game-info">Use the arrow keys to combine tiles. Try to get to 2048!</div>
</div>
</div>
</body>
</html>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
<script src="js/Game.js"></script>
<script src="js/Board.js"></script>
<script src="js/Space.js"></script>
<script src="js/Token.js"></script>
<script src="js/app.js"></script>