-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
38 lines (32 loc) · 883 Bytes
/
Copy pathindex.html
File metadata and controls
38 lines (32 loc) · 883 Bytes
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
<!doctype html>
<html>
<head>
<title>Pong</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no">
<meta name="description" content="">
<meta name="author" content="">
<link href="css/style.css" rel="stylesheet">
</head>
<body>
<canvas id="pong-canvas"></canvas>
<script src="js/text.js"></script>
<script src="js/audio.js"></script>
<script src="js/game.js"></script>
<script src="js/menu.js"></script>
<script src="js/over.js"></script>
<script src="js/scene.js"></script>
<script>
var resized = false;
window.onresize = function() {
resized = true;
};
function init() {
scene.currentState = scene.states.MENU;
}
init();
window.requestAnimationFrame(scene.loop);
</script>
</body>
</html>