-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
72 lines (67 loc) · 2.42 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
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8" />
<title>Breakout!</title>
<link rel="stylesheet" type="text/css" href="styles/index.css" />
</head>
<body onload="MyGame.game.initialize();">
<div id="game">
<div id="main-menu" class="screen">
<h1>Breakout!</h1>
<ul class="menu">
<li><button id="id-new-game">New Game</button></li>
<li><button id="id-high-scores">High Scores</button></li>
<li><button id="id-about">About</button></li>
</ul>
</div>
<div id="game-play" class="screen">
<canvas id="id-canvas" width="1200" height="600"></canvas>
</div>
<div id="high-scores" class="screen">
<h1>High Scores</h1>
<ol id="scores">
</ol>
<ul class="menu">
<li><button id="id-high-scores-reset">Reset Scores</button></li>
<li><button id="id-high-scores-back">Back</button></li>
</ul>
</div>
<div id="about" class="screen">
<h1>About</h1>
<p>Developed by</p>
<p>Aaron Hanks</p>
<br>
<p>Background image found in google search for space images</p>
<p>Music downloaded from <a target="_blank" href="https://mixkit.co/free-stock-music">mixkit.co/free-stock-music</a></p>
<ul class="menu">
<li><button id="id-about-back">Back</button></li>
</ul>
</div>
<div id="pause-menu" class="screen">
<h1>Paused</h1>
<ul class="menu">
<li><button id="id-resume-game">Resume Game</button></li>
<li><button id="id-quit-game">Main Menu</button></li>
</ul>
</div>
</div>
<script>
let MyGame = {
screens: {},
input: {},
objects: {},
render: [],
};
</script>
<script src="scripts/input-keyboard.js"></script>
<script src="scripts/render/core.js"></script>
<script src="scripts/game.js"></script>
<script src="scripts/particle-system.js"></script>
<script src="scripts/pausemenu.js"></script>
<script src="scripts/mainmenu.js"></script>
<script src="scripts/gameplay.js"></script>
<script src="scripts/highscores.js"></script>
<script src="scripts/about.js"></script>
</body>
</html>