-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex-ios.html
executable file
·152 lines (126 loc) · 7.81 KB
/
index-ios.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<!-- Change this if you want to allow scaling -->
<meta name="viewport" content="width=default-width; user-scalable=no" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>PhoneGap</title>
<!-- iPad/iPhone specific css below, add after your main css >
<link rel="stylesheet" media="only screen and (max-device-width: 1024px)" href="ipad.css" type="text/css" />
<link rel="stylesheet" media="only screen and (max-device-width: 480px)" href="iphone.css" type="text/css" />
-->
<link rel="stylesheet" href="reset.css" type="text/css" media="screen" title="no title" charset="utf-8">
<!-- If you application is targeting iOS BEFORE 4.0 you MUST put json2.js from http://www.JSON.org/json2.js into your www directory and include it here -->
<script type="text/javascript" charset="utf-8" src="media/js/phonegap.js"></script>
<script src="media/js/xui-core-1.0.0.min.js" type="text/javascript" charset="utf-8"></script>
<script src="media/js/xui-more-1.0.0.js" type="text/javascript" charset="utf-8"></script>
<script src="media/js/prototype-1.6.0.2.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" src="media/js/FunJs/dep/glMatrix-0.9.5.min.js"></script>
<!-- box2djs -->
<script src='media/js/box2d/common/b2Settings.js'></script>
<script src='media/js/box2d/common/math/b2Vec2.js'></script>
<script src='media/js/box2d/common/math/b2Mat22.js'></script>
<script src='media/js/box2d/common/math/b2Math.js'></script>
<script src='media/js/box2d/collision/b2AABB.js'></script>
<script src='media/js/box2d/collision/b2Bound.js'></script>
<script src='media/js/box2d/collision/b2BoundValues.js'></script>
<script src='media/js/box2d/collision/b2Pair.js'></script>
<script src='media/js/box2d/collision/b2PairCallback.js'></script>
<script src='media/js/box2d/collision/b2BufferedPair.js'></script>
<script src='media/js/box2d/collision/b2PairManager.js'></script>
<script src='media/js/box2d/collision/b2BroadPhase.js'></script>
<script src='media/js/box2d/collision/b2Collision.js'></script>
<script src='media/js/box2d/collision/Features.js'></script>
<script src='media/js/box2d/collision/b2ContactID.js'></script>
<script src='media/js/box2d/collision/b2ContactPoint.js'></script>
<script src='media/js/box2d/collision/b2Distance.js'></script>
<script src='media/js/box2d/collision/b2Manifold.js'></script>
<script src='media/js/box2d/collision/b2OBB.js'></script>
<script src='media/js/box2d/collision/b2Proxy.js'></script>
<script src='media/js/box2d/collision/ClipVertex.js'></script>
<script src='media/js/box2d/collision/shapes/b2Shape.js'></script>
<script src='media/js/box2d/collision/shapes/b2ShapeDef.js'></script>
<script src='media/js/box2d/collision/shapes/b2BoxDef.js'></script>
<script src='media/js/box2d/collision/shapes/b2CircleDef.js'></script>
<script src='media/js/box2d/collision/shapes/b2CircleShape.js'></script>
<script src='media/js/box2d/collision/shapes/b2MassData.js'></script>
<script src='media/js/box2d/collision/shapes/b2PolyDef.js'></script>
<script src='media/js/box2d/collision/shapes/b2PolyShape.js'></script>
<script src='media/js/box2d/dynamics/b2Body.js'></script>
<script src='media/js/box2d/dynamics/b2BodyDef.js'></script>
<script src='media/js/box2d/dynamics/b2CollisionFilter.js'></script>
<script src='media/js/box2d/dynamics/b2Island.js'></script>
<script src='media/js/box2d/dynamics/b2TimeStep.js'></script>
<script src='media/js/box2d/dynamics/contacts/b2ContactNode.js'></script>
<script src='media/js/box2d/dynamics/contacts/b2Contact.js'></script>
<script src='media/js/box2d/dynamics/contacts/b2ContactConstraint.js'></script>
<script src='media/js/box2d/dynamics/contacts/b2ContactConstraintPoint.js'></script>
<script src='media/js/box2d/dynamics/contacts/b2ContactRegister.js'></script>
<script src='media/js/box2d/dynamics/contacts/b2ContactSolver.js'></script>
<script src='media/js/box2d/dynamics/contacts/b2CircleContact.js'></script>
<script src='media/js/box2d/dynamics/contacts/b2Conservative.js'></script>
<script src='media/js/box2d/dynamics/contacts/b2NullContact.js'></script>
<script src='media/js/box2d/dynamics/contacts/b2PolyAndCircleContact.js'></script>
<script src='media/js/box2d/dynamics/contacts/b2PolyContact.js'></script>
<script src='media/js/box2d/dynamics/b2ContactManager.js'></script>
<script src='media/js/box2d/dynamics/b2World.js'></script>
<script src='media/js/box2d/dynamics/b2WorldListener.js'></script>
<script src='media/js/box2d/dynamics/joints/b2JointNode.js'></script>
<script src='media/js/box2d/dynamics/joints/b2Joint.js'></script>
<script src='media/js/box2d/dynamics/joints/b2JointDef.js'></script>
<script src='media/js/box2d/dynamics/joints/b2DistanceJoint.js'></script>
<script src='media/js/box2d/dynamics/joints/b2DistanceJointDef.js'></script>
<script src='media/js/box2d/dynamics/joints/b2Jacobian.js'></script>
<script src='media/js/box2d/dynamics/joints/b2GearJoint.js'></script>
<script src='media/js/box2d/dynamics/joints/b2GearJointDef.js'></script>
<script src='media/js/box2d/dynamics/joints/b2MouseJoint.js'></script>
<script src='media/js/box2d/dynamics/joints/b2MouseJointDef.js'></script>
<script src='media/js/box2d/dynamics/joints/b2PrismaticJoint.js'></script>
<script src='media/js/box2d/dynamics/joints/b2PrismaticJointDef.js'></script>
<script src='media/js/box2d/dynamics/joints/b2PulleyJoint.js'></script>
<script src='media/js/box2d/dynamics/joints/b2PulleyJointDef.js'></script>
<script src='media/js/box2d/dynamics/joints/b2RevoluteJoint.js'></script>
<script src='media/js/box2d/dynamics/joints/b2RevoluteJointDef.js'></script>
<script src="media/js/FunJs/FunJs.js" type="text/javascript" charset="utf-8"></script>
<script src="media/js/FunJs/FunJs.Physics.js" type="text/javascript" charset="utf-8"></script>
<script src="media/js/FunJs/FunJs.Animation.js" type="text/javascript" charset="utf-8"></script>
<script src="media/js/FunJs/FunJs.Event.js" type="text/javascript" charset="utf-8"></script>
<script src="media/js/FunJs/FunJs.GameObj.js" type="text/javascript" charset="utf-8"></script>
<script src="media/js/FunJs/FunJs.GameObj.Drawable.js" type="text/javascript" charset="utf-8"></script>
<script src="media/js/FunJs/FunJs.GameObj.Drawable.Sprite.js" type="text/javascript" charset="utf-8"></script>
<script src="media/js/FunJs/FunJs.Behavior.Draggable.js" type="text/javascript" charset="utf-8"></script>
<script src="media/js/FunJs/FunJs.Camera.js" type="text/javascript" charset="utf-8"></script>
<script src="media/js/AirplaneChampion/resources.js" type="text/javascript" charset="utf-8"></script>
<script src="media/js/AirplaneChampion/FunJs.Plane.js" type="text/javascript" charset="utf-8"></script>
<script src="media/js/AirplaneChampion/FunJs.Crate.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
// If you want to prevent dragging, uncomment this section
function preventBehavior(e)
{
e.preventDefault();
};
document.addEventListener("touchmove", preventBehavior, false);
function onBodyLoad()
{
document.addEventListener("deviceready",onDeviceReady,false);
}
/* When this function is called, PhoneGap has been initialized and is ready to roll */
function onDeviceReady()
{
try {
var h = window.innerHeight;
var w = window.innerWidth;
var c = x$("#viewport").first();
x$(c).attr("width", w);
x$(c).attr("height", h);
var game = new FunJs(c, resources);
} catch (e) {
FunJs.onError(e);
}
}
</script>
</head>
<body onload="onBodyLoad()">
<canvas id="viewport" width="320" height="240"></canvas>
</body>
</html>