-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathghosts.html
46 lines (44 loc) · 1.85 KB
/
ghosts.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
<!doctype html>
<head>
<meta charset="utf-8">
<title>EaselBox demo: Ghosts and Monsters clone</title>
<meta name="description" content="A demonstration of EaselBox, a wrapper for EaselJS and Box2dWeb">
<meta name="author" content="Jeff Cole">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<div id="container">
<p>This demo is a clone of Angry Birds that integrates the Box2dWeb Javascript
library with custom rendering in EaselJS. The artwork is stolen from the awesome
<a href="http://seb.ly/2012/01/live-iphone-coding-video-now-online/">Seb Lee-Delisle's live coding example</a>
of the game "Ghosts and Monsters" using the Corona SDK for buildling iOS and Android apps.
</p>
<div id="main" role="main">
<p>To play: click and drag the head to the left, then relase it to sling it at the blocks</p>
<div id="demo">
<p>Drawing on canvas with EaselJS</p>
<canvas id="easelCanvas" width="480" height="350"></canvas>
</div>
<div id="debug">
<p>The debug drawing directly from Box2dWeb</p>
<canvas id="debugCanvas" width="480" height="350"></canvas>
</div>
</div>
<div id="stats"></div>
</div>
<script src="js/lib/jquery-1.7.1.min.js"></script>
<script src="js/lib/stats.js"></script>
<script src="js/lib/easel.js"></script>
<script src="js/lib/Box2dWeb-2.1.a.3.min.js"></script>
<script src="js/lib/easelBox.min.js"></script>
<script src="js/ghostsAndMonsters.js"></script>
<script>
$(document).ready(function() {
canvas = document.getElementById('easelCanvas')
debugCanvas = document.getElementById('debugCanvas')
statsCanvas = document.getElementById('stats')
new GhostsAndMonstersGame(canvas, debugCanvas, statsCanvas);
});
</script>
</body>