Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "name" : "bite", // Set the name of the stadium
- "width" : 650, // width and height only constrain the camera scrolling.
- "height" : 300,
- "spawnDistance" : 400, // Set how far from the ball the teams will spawn
- "bg" : { "type" : "grass", "width" : 600, "height" : 275, "kickOffRadius" : 90, "cornerRadius" : 0 }, // Set the background. This is only visual, it doesnt' affect the physics at all.
- // The list of vertexes:
- "vertexes" : [
- // Left side of the ball area:
- { "x" : -600, "y" : 275, "trait" : "ballArea" }, // Index 0 - Bottom corner.
- { "x" : -600, "y" : 90, "trait" : "ballArea" }, // Index 1 - Bottom goal post.
- { "x" : -600, "y" : -90, "trait" : "ballArea" }, // Index 2 - Top goal post.
- { "x" : -600, "y" : -275, "trait" : "ballArea" }, // Index 3 - Top corner.
- // Right side of the ball area:
- { "x" : 600, "y" : 275, "trait" : "ballArea" }, // Index 4 - Bottom corner.
- { "x" : 600, "y" : 90, "trait" : "ballArea" }, // Index 5 - Bottom goal post.
- { "x" : 600, "y" : -90, "trait" : "ballArea" }, // Index 6 - Top goal post.
- { "x" : 600, "y" : -275, "trait" : "ballArea" }, // Index 7 - Top corner.
- // Vertexes involved on the kickoff barrier:
- { "x" : 0, "y" : 300, "trait" : "kickOffBarrier" }, // Index 8 - Bottom center.
- { "x" : 0, "y" : 90, "trait" : "kickOffBarrier" }, // Index 9 - Bottom of the kickoff circle.
- { "x" : 0, "y" : -90, "trait" : "kickOffBarrier" }, // Index 10 - Top of the kickoff circle.
- { "x" : 0, "y" : -300, "trait" : "kickOffBarrier" } // Index 11 - Top center.
- ],
- // 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 corner 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 corner to top goal post.
- // Goal nets:
- { "v0" : 1, "v1" : 2, "trait" : "goalNet" }, // Connects left bottom to left top post.
- { "v0" : 6, "v1" : 5, "trait" : "goalNet" }, // Connects right bottom to right top post.
- // Kickoff barriers:
- { "v0" : 8, "v1" : 9, "trait" : "kickOffBarrier" }, // Connects bottom center to kickoff circle bottom.
- { "v0" : 9, "v1" : 10, "trait" : "kickOffBarrier", "curve" : 180, "cGroup" : ["blueKO"] }, // Connects Kickoff circle top and bottom, curve = 180 makes half a circle.
- { "v0" : 9, "v1" : 10, "trait" : "kickOffBarrier", "curve" : -180, "cGroup" : ["redKO"] }, // Connects Kickoff circle top and bottom again, curve = -180 makes the other half.
- { "v0" : 10, "v1" : 11, "trait" : "kickOffBarrier" } // Connects kickoff circle top to top center.
- ],
- // List of goals:
- "goals" : [
- { "p0" : [-600, 90], "p1" : [-600,-90], "team" : "red" },
- { "p0" : [600, 90], "p1" : [600,-90], "team" : "blue" }
- ],
- // List of discs:
- "discs" : [
- // Left posts:
- { "pos" : [-600, 90], "trait" : "goalPost" },
- { "pos" : [-600, -90], "trait" : "goalPost" },
- // Right posts:
- { "pos" : [ 600, 90], "trait" : "goalPost" },
- { "pos" : [ 600, -90], "trait" : "goalPost" }
- ],
- // List of planes:
- "planes" : [
- { "normal" : [0, 1], "dist" : -275, "trait" : "ballArea" }, // Top ball area wall.
- { "normal" : [0,-1], "dist" : -275, "trait" : "ballArea" }, // Bottom ball area wall.
- // Player bounds:
- { "normal" : [ 0, 1], "dist" : -275, "bCoef" : 0.1 }, // Top wall.
- { "normal" : [ 0,-1], "dist" : -275, "bCoef" : 0.1 }, // Bottom wall.
- { "normal" : [ 1, 0], "dist" : -650, "bCoef" : 0.1 }, // Left wall.
- { "normal" : [-1, 0], "dist" : -650, "bCoef" : 0.1 } // Right wall.
- ],
- // 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" : 100 },
- "kickOffBarrier" : { "vis" : false, "bCoef" : 0.1, "cGroup" : ["redKO", "blueKO"], "cMask" : ["red", "blue"] }
- }
- }
Add Comment
Please, Sign In to add comment