-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
39 lines (35 loc) · 992 Bytes
/
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
<!DOCTYPE html>
<html>
<title>Slow Down Game</title>
<style>
body {
padding: 0;
position: fixed;
margin: 10px ;
overflow: hidden;
}
</style>
<body>
<canvas id="canvas">Your Browser does not support the Canvas Element</canvas>
</body>
<script src="Creation.js" type="text/javascript"></script>
<script src="Obstacles.js" type="text/javascript"></script>
<script src="Enemies.js" type="text/javascript"></script>
<script src="Attacks.js" type="text/javascript"></script>
<script src="Collisions.js" type="text/javascript"></script>
<script src="Position Change.js" type="text/javascript"></script>
<script type="text/javascript">
function game() {
timeCount();
drawBackground();
controls();
attack(direction);
collisions();
bulletPaths();
update();
requestAnimationFrame(game);
}
var requestAnimationFrame = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame;
game();
</script>
</html>