control features implemented

This commit is contained in:
logsol 2012-06-03 18:22:27 +02:00
parent 8d0ff1a929
commit c2b0baaea2
10 changed files with 213 additions and 63 deletions

View file

@ -2,6 +2,7 @@ var Chuck = {
Physics: {},
Loader: {},
Control: {},
Collision: {},
b2Vec2 : Box2D.Common.Math.b2Vec2,
b2AABB : Box2D.Collision.b2AABB,
@ -14,7 +15,8 @@ var Chuck = {
b2PolygonShape : Box2D.Collision.Shapes.b2PolygonShape,
b2CircleShape : Box2D.Collision.Shapes.b2CircleShape,
b2DebugDraw : Box2D.Dynamics.b2DebugDraw,
b2MouseJointDef : Box2D.Dynamics.Joints.b2MouseJointDef
b2MouseJointDef : Box2D.Dynamics.Joints.b2MouseJointDef,
b2ContactListener : Box2D.Dynamics.b2ContactListener
};
Chuck.Settings = {
@ -49,7 +51,7 @@ Chuck.Settings = {
PLAYER_DENSITY : 0.96,
PLAYER_FRICTION : 5,
PLAYER_MOTION_FRICTION : 0,
PLAYER_MOTION_FRICTION : 0.1,
PLAYER_RESTITUTION : 0.0,
PLAYER_LINEAR_DAMPING : .5,