-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathindex.html
executable file
·47 lines (47 loc) · 1.57 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Top Down Car Example Using Gamejs & Box2D</title>
<!-- Styling -->
<style type=text/css>
body{
background:#fff;
color:#222;
margin:1em 0 2em 6em;
padding:0;
}
#gjs-loader {
width: 50%;
height: 50%;
}
</style>
<!-- Start javascript/main.js -->
<script src="./public/yabble.js"></script>
<script src="./public/gamejs.min.js"></script>
<script>
require.setModuleRoot('./javascript/');
require.run('main')
</script>
</head>
<!-- Html -->
<body>
<div>
<img id="gjs-loader" src="./public/ajax-loader.gif">
<canvas id="gjs-canvas"></canvas>
<p>
This is a HTML5 top-down car physics example.
</p>
<p>
Controls: arrow keys
</p>
<p>
Source: <a href="http://github.com/domasx2/gamejs-box2d-car-example">github</a>
or <a href="http://www.banditracer.eu/carexample/carexample.zip">ZIP</a> or <a href="http://www.banditracer.eu/carexample/javascript/main.js">main js file.</a>
</p>
<p>
Powered by <a href="http://gamejs.org">GameJs</a> and <a href="http://www.box2d.org/">Box2D</a>.
Made by Domas Lapinskas based on <a href="http://www.emanueleferonato.com/2009/04/06/two-ways-to-make-box2d-cars/">this tutorial</a> and <a href="http://www.banditracer.eu">Bandit Racer</a>.
</p>
</div>
</body>
</html>