-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
53 lines (47 loc) · 1.91 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
<!DOCTYPE html>
<html>
<head>
<title>Ball bounce index page</title>
<meta charset="UTF-8">
<script type="text/javascript" type="text/javascript">
var BallBounce = {};
</script>
<style>
canvas {border: 1px solid black; cursor: none}
</style>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="text/javascript" src="js/setting.js"></script>
<script type="text/javascript" src="js/canvas.js"></script>
<script type="text/javascript" src="js/game.js"></script>
<script type="text/javascript" src="js/vector.js"></script>
<script type="text/javascript" src="js/ball.js"></script>
<script type="text/javascript" src="js/turret.js"></script>
<script type="text/javascript" src="js/sound.js"></script>
<script type="text/javascript" src="js/scoreboard.js"></script>
<script type="text/javascript" src="js/gamepad.js"></script>
<script type="text/javascript">
window.onload = function () {
gamepad = new Gamepad();
settings = new Setting();
game = new Game();
canvas = new Canvas();
game.setCanvas(canvas);
turret = new Turret();
game.setTurret(turret);
sound = new Sound();
game.setSound(sound);
filterStrength = 20;
frameTime = 0;
lastLoop = new Date;
thisLoop = 0;
game.update();
setInterval(game.newOpponent, 4000);
};
</script>
</head>
<body>
<input id="volume" type="range" min ="0" max="100" step="1" value="100"/>
<br>
<canvas id="canvas" width="640" height="512"></canvas>
</body>
</html>