This repository has been archived by the owner on Nov 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
47 lines (41 loc) · 2.03 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
<!DOCTYPE html>
<html>
<head>
<title>Pong Alone: A HTML5 Game</title>
<link href="css/game.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
</head>
<body>
<!-- os tamanhos do canvas devem ser colocados explicitamente e não no CSS -->
<!-- O "fundo" estrelado do nosso game -->
<canvas id="background" width="480" height="320">
Your browser does not support canvas. Please try again with a different browser.
</canvas>
<!-- Parte de cima da tela com o score -->
<canvas id="score" width="480" height="40"></canvas>
<!-- O cenário principal onde mantemos as paredes e a nossa bolinha -->
<canvas id="main" width="480" height="320">
</canvas>
<!-- A barra de defesa -->
<canvas id="paddle" width="480" height="320">
</canvas>
<!-- Core -->
<script src="lib/core/util.js" type="text/javascript"></script>
<script src="lib/core/vectors.js" type="text/javascript"></script>
<script src="lib/core/imagerepo.js" type="text/javascript"></script>
<!-- Drawable -->
<script src="lib/drawables/drawable.js" type="text/javascript"></script>
<script src="lib/drawables/drawableBackground.js" type="text/javascript"></script>
<script src="lib/drawables/drawableBall.js" type="text/javascript"></script>
<script src="lib/drawables/drawablePaddle.js" type="text/javascript"></script>
<script src="lib/drawables/drawableScoreBoard.js" type="text/javascript"></script>
<!-- Scenes -->
<script src="lib/scenes/baseScene.js" type="text/javascript"></script>
<script src="lib/scenes/scene.js" type="text/javascript"></script>
<script src="lib/scenes/sceneMain.js" type="text/javascript"></script>
<script src="lib/scenes/sceneTitle.js" type="text/javascript"></script>
<script src="lib/scenes/subSceneGameOver.js" type="text/javascript"></script>
<script src="lib/scenes/subScenePause.js" type="text/javascript"></script>
<script src="game.js" type="text/javascript"></script>
</body>
</html>