Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
48 lines (48 sloc) 727 Bytes
{
body: {
type: "DynamicBody",
position: "0,0",
angle: 0,
linearVelocity: "0,0",
angularVelocity: 0,
linearDamping: 0.99,
angularDamping: 0,
allowSleep: "true",
awake: "true",
fixedRotation: "true",
bullet: "false",
active: "true",
gravityScale: 1
},
fixtures: [
{
shape: {
type: "circle",
position: "0,0",
radius: 0.3
},
friction: 0.2,
restitution: 0.1,
density: 1,
isSensor: "false"
}
],
controller: "ControllerPlayer",
controller-conf: {
strength: 16,
maxspeed: 6,
friction: 1.5
},
view: "ViewWalking",
view-conf: {
width: 1,
xoffset: 0,
yoffset: 0.2,
animations: [
{ up: "walking-up" },
{ down: "walking-down" },
{ left: "walking-left" },
{ right: "walking-right" }
]
}
}
Something went wrong with that request. Please try again.