Sie sind auf Seite 1von 3

{ "name" : "Nono", // Set the name of the stadium "width" : 500, // width and height only constrain the

camera scrolli ng. "height" : 260, "spawnDistance" : 160, // Set how far from the ball the teams will spawn

"playerPhysics" : { // The following three settings work in the same way as in discs "bCoef" : 1.3, "invMass" : 0.5, "damping" : 0.96, "acceleration" : 0.1, // This is how fast the player acc elerates when moving in any direction. "kickingAcceleration" : 10, // This value will replace normal ac celeration when the player is pressing the kick button. ( Setting it to the same value as acceleration would make the player not slow down when kicking ) "kickingDamping" : 0.96, // This value will replace the nor mal damping when the player is pressing the kick button. ( By default this is se t to the same value as normal damping, meaning that classic haxball doesn't make use of this feature. ) "kickStrength" : 0.002 // This value is the strength w ith which the ball will be kicked by the players. }, // Ball physics set to the game's default values: "ballPhysics" : { "radius" : 10, "bCoef" : 0.5, "invMass" : 2, "damping" : 0.99, "color" : "FFFFFF", "cMask" : ["all"], "cGroup" : ["ball"] }, "bg" : { "type" : "grass", "width" : 480, "height" : 240, "kickOffRadius " : 0, "cornerRadius" : 0 }, // Set the background. This is only visual, it does nt' affect the physics at all. // The list of vertexes: "vertexes" : [ // Left side of the { "x" : -480, "y" : ottom corner. { "x" : -480, "y" : ottom goal post. { "x" : -480, "y" : op goal post. { "x" : -480, "y" : op corner.

ball area: 240, "trait" : "ballArea" }, // Index 0 - B 80, "trait" : "ballArea" }, // Index 1 - B

-80, "trait" : "ballArea" }, // Index 2 - T -240, "trait" : "ballArea" }, // Index 3 - T

// Right side of the ball area: { "x" : 480, "y" : 240, "trait" : "ballArea" }, // Index 4 - Bo ttom corner.

{ "x" : 480, "y" : 80, ttom goal post. p goal post.

"trait" : "ballArea" }, // Index 5 - Bo

{ "x" : 480, "y" : -80, "trait" : "ballArea" }, // Index 6 - To { "x" : 480, "y" : -240, "trait" : "ballArea" } // Index 7 - Top corner. ], // The list of segments: "segments" : [ // Left side ball area walls: { "v0" : 0, "v1" : 1, "trait" : "ballArea" }, // Connects bottom corner to bottom goal post. { "v0" : 2, "v1" : 3, "trait" : "ballArea" }, // Connects top co rner to top goal post. // Right side ball area walls: { "v0" : 4, "v1" : 5, "trait" : "ballArea" }, // Connects bottom corner to bottom goal post. { "v0" : 6, "v1" : 7, "trait" : "ballArea" }, // Connects top co rner to top goal post. // Goal nets: { "v0" : 1, "v1" : 2, "trait" : "goalNet" }, // Connects left bo ttom to left top post. { "v0" : 6, "v1" : 5, "trait" : "goalNet" } // Connects right bo ttom to right top post. ], // List of goals: "goals" : [ { "p0" : [-480, 80], "p1" : [-480,-80], "team" : "red" }, { "p0" : [480, 80], "p1" : [480,-80], "team" : "blue" } ], // List of discs: "discs" : [ // Left posts: { "pos" : [-480, 80], "trait" : "goalPost" }, //{ "pos" : [-480, -80], "trait" : "goalPost" }, //{ "pos" : [0, -80], "color" : "000000", "radius" : 50, "invMas s" : 0.00001, "bCoef" : 0.5, "damping" : "1.009"}, // Right posts: { "pos" : [ 480, 80], "trait" : "goalPost" }, { "pos" : [ 480, -80], "trait" : "goalPost" } ], // List of planes: "planes" : [ { "normal" : [0, 1], "dist" : -240, "trait" : "ballArea" }, // T op ball area wall. { "normal" : [0,-1], "dist" : -240, "trait" : "ballArea" }, // B ottom ball area wall. // Player bounds: { "normal" : [ 0, 1], "dist" : -300, "bCoef" : 1 }, // Top wall. { "normal" : [ 0,-1], "dist" : -300, "bCoef" : 1 }, // Bottom wa ll. { "normal" : [ 1, 0], "dist" : -550, "bCoef" : 1 }, // Left wall .

{ "normal" : [-1, 0], "dist" : -550, "bCoef" : 1 } // Right wal l. ], // List of traits: "traits" : { "ballArea" : { "vis" : false, "bCoef" : 1, "cMask" : ["ball"] }, "goalPost" : { "radius" : 8, "invMass" : 0, "bCoef" : 0.5 }, "goalNet" : { "vis" : true, "bCoef" : 0.1, "cMask" : ["ball"], " curve" : 120 }, "kickOffBarrier" : { "vis" : false, "bCoef" : 0.1, "cGroup" : [" redKO", "blueKO"], "cMask" : ["red", "blue"] } } }