-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathld24.html
33 lines (31 loc) · 1.23 KB
/
ld24.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
<!DOCTYPE html>
<html>
<head>
<title>Test</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
<script type="text/javascript" src="lib/jquery.hotkeys.js"></script>
<script type="text/javascript" src="lib/melonJS-0.9.4.js"></script>
<script type="text/javascript" src="lib/QuadTree.js"></script>
<script type="text/javascript" src="lib/ld24.js"></script>
<script type="text/javascript">
$(document).ready(function() {
main_sheet = new Image();
main_sheet.src = "res/main_sheet.png";
main_sheet.onload = function() {
var tCell = new Game({
el: '#tCell',
spritesheet: main_sheet,
level: LEVEL,
});
setInterval(function() {
tCell.update();
tCell.render();
}, 1000/60);
};
});
</script>
</head>
<body bgcolor="black">
<canvas style="border: 1px solid white;" id="tCell" width="800" height="600"></canvas>
</body>
</html>