-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
74 lines (70 loc) · 2.96 KB
/
index.html
File metadata and controls
74 lines (70 loc) · 2.96 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
<!--
Author: Enzo Mayo
Date: 12/09/2020
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="main.css">
<title>Brick Breaker JS</title>
</head>
<body>
<header>
<h1>Brick Breaker JS</h1>
</header>
<main>
<output id="output"></output>
<canvas id="game" ></canvas>
<div id="instructions">
<h1>Instructions</h1>
<section class="info">
<details>
<summary>Controls</summary>
<ul>
<li>Keyboard: <kbd>A</kbd>, <kbd>D</kbd> or <kbd></kbd>, <kbd></kbd> to move left and right respectively</li>
<li>Mouse: <kbd>Click</kbd> on buttons and <kbd>Hover</kbd> over game window to move the paddle.</li>
<li>Touch: <kbd>Tap</kbd> on buttons and <kbd>Drag</kbd> the paddle around</li>
</ul>
</details>
</section>
<section class="info">
<h2>Description and Features</h2>
<details>
<summary>Description and Features</summary>
<p>This is an attempt to make a Breakout-Style game for the web. I am no expert in game design or programming. Just passionate.</p>
<p>What it has:</p>
<ul>
<li>A main menu</li>
<li>At least one level.</li>
<li>A game over screen</li>
<li>The ability to pause and unpause</li>
</ul>
</details>
</section>
<section class="info">
<details>
<summary>Resources</summary>
<ul>
<li>
<a href="https://gamedevacademy.org/create-a-game-ui-with-the-html5-canvas/#A_UI_Object">Game UI With HTML5 Canvas</a>
</li>
<li>
<a href="https://developer.mozilla.org/en-US/docs/Games/Tutorials/2D_Breakout_game_pure_JavaScript">
2D Breakout Game with Pure Javascript</a>: The basis for the project.
</li>
<li>
<a href="https://idiallo.com/blog/javascript-game-state-stack-engine">Javascript Game State Stack Engine</a>
Used to create the backbone of the game. Once I understood how it worked, it seemed obvious.
</li>
</ul>
</details>
</section>
</div>
</main>
<footer>
</footer>
<script type="module" src="./brickbreaker.js"></script>
</body>
</html>