mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
control features implemented
This commit is contained in:
parent
8d0ff1a929
commit
c2b0baaea2
10 changed files with 213 additions and 63 deletions
|
|
@ -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,
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue