-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
69 lines (68 loc) · 2.48 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Block Breaker</title>
<link rel="stylesheet" type = "text/css" href="styles/style.css">
<script>
let MyGame = {
screens: {}
};
</script>
<script src="scripts/random.js"></script>
<script src="scripts/particle-graphics.js"></script>
<script src="scripts/particle-system.js"></script>
<script src="scripts/input.js"></script>
<script src="scripts/game.js"></script>
<script src="scripts/mainmenu.js"></script>
<script src="scripts/credits.js"></script>
<script src="scripts/highscores.js"></script>
<script src="scripts/gamestate.js"></script>
<script src="scripts/renderer.js"></script>
<script src="scripts/gameplay.js"></script>
<script src="scripts/pausedmenu.js"></script>
</head>
<body onload="MyGame.game.initialize()">
<div id="main-menu" class="screen">
<div class="div-center-block">
<div class="container">
<h1>BLOCK BREAKER</h1>
<button id="mm-new" onclick="MyGame.game.showScreen('game-play')">New Game</button>
<button id="mm-high" onclick="MyGame.game.showScreen('high-scores')">High Scores</button>
<button id="mm-credits" onclick="MyGame.game.showScreen('credits')">Credits</button>
</div>
</div>
</div>
<div id="game-play" class="screen">
<canvas id="canvas-main" width="1000" height="1000"></canvas>
</div>
<div id="high-scores" class="screen">
<div class="div-center-block">
<div class="container">
<h2>HIGH SCORES</h2>
<ol id="ol-scores"></ol>
<button id="high-scores-back">Back</button>
<button id="high-scores-reset">Reset High Scores</button>
</div>
</div>
</div>
<div id="credits" class="screen">
<div class="div-center-block">
<div class="container">
<h2>CREDITS</h2>
<p>Andrew Aposhian helped by Dr. Dean Mathias</p>
<button id="credits-back">Back</button>
</div>
</div>
</div>
<div id="paused-menu" class="screen">
<div class="div-center-block">
<div class="container">
<h2>GAME PAUSED</h2>
<button id="button-resume">Resume</button>
<button id="button-quit-game">Quit Game</button>
</div>
</div>
</div>
</body>
</html>