-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
26 lines (25 loc) · 1.15 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
<html>
<head>
<title>PONG - Andre Ricardo Cintra</title>
<script>
var screenWidth = 400;
var screenHeight = 300;
var p1Score = 0;
var p2Score = 0;
</script>
<script type="text/javascript" src="https://rawgithub.com/craftyjs/Crafty/release/dist/crafty-min.js"></script>
<script type="text/javascript" src="js/ball.js"></script>
<script type="text/javascript" src="js/border.js"></script>
<script type="text/javascript" src="js/goal.js"></script>
<script type="text/javascript" src="js/palette.js"></script>
<script type="text/javascript" src="js/shot.js"></script>
</head>
<body>
<div id="gameScreen" style="border: 1px solid black"></div>
<script type="text/javascript">
Crafty.init(400, 300, document.getElementById("gameScreen"));
</script>
<script type="text/javascript" src="js/init.js"></script>
<div id="scoreScreen" style="width: 400px; text-align:center; font-weight: bold;">P1 0 x 0 P2</div>
</body>
</html>