Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // by Kutch
- {
- "name" : "Ters Sahalar", // Set the name of the stadium
- "width" : 450, // width and height only constrain the camera scrolling.
- "height" : 250,
- "spawnDistance" : 100, // Set how far from the ball the teams will spawn
- "bg" : { "type" : "grass", "width" : 400, "height" : 200, "kickOffRadius" : 50, "cornerRadius" : 75 }, // Set the background. This is only visual, it doesnt' affect the physics at all.
- // The list of vertexes:
- "vertexes" : [
- // sides:
- { "x" : -400, "y" : 125, "trait" : "ballArea" }, // Index 0 - left bottom
- { "x" : -400, "y" : -125, "trait" : "ballArea" }, // Index 1 - left top
- { "x" : 400, "y" : 125, "trait" : "ballArea" }, // Index 2 - right bottom.
- { "x" : 400, "y" : -125, "trait" : "ballArea" }, // Index 3 - right top.
- // top & bottom area:
- { "x" : 325, "y" : 200, "trait" : "ballArea" }, // Index 4 - Bottom right.
- { "x" : 325, "y" : -200, "trait" : "ballArea" }, // Index 5 - top right.
- { "x" : -325, "y" : 200, "trait" : "ballArea" }, // Index 6 - bottom left.
- { "x" : -325, "y" : -200, "trait" : "ballArea" }, // Index 7 - top left.
- // Vertexes involved on the kickoff barrier:
- { "x" : 0, "y" : 250, "trait" : "kickOffBarrier" }, // Index 8 - Bottom center.
- { "x" : 0, "y" : 50, "trait" : "kickOffBarrier" }, // Index 9 - Bottom of the kickoff circle.
- { "x" : 0, "y" : -50, "trait" : "kickOffBarrier" }, // Index 10 - Top of the kickoff circle.
- { "x" : 0, "y" : -250, "trait" : "kickOffBarrier" }, // Index 11 - Top center.
- // goalposts
- { "x" : 200, "y" : 75, "trait" : "kickOffBarrier" }, // Index 12 - right bottom post.
- { "x" : 200, "y" : -75, "trait" : "kickOffBarrier" }, // Index 13 - right top post.
- { "x" : -200, "y" : 75, "trait" : "kickOffBarrier" }, // Index 14 - left bottom post.
- { "x" : -200, "y" : -75, "trait" : "kickOffBarrier" }, // Index 15 - left top post.
- // net area
- { "x" : 160, "y" : 75, "trait" : "kickOffBarrier" }, // Index 16 - right bottom net.
- { "x" : 160, "y" : -75, "trait" : "kickOffBarrier" }, // Index 17 - right top net.
- { "x" : -160, "y" : 75, "trait" : "kickOffBarrier" }, // Index 18 - left bottom net.
- { "x" : -160, "y" : -75, "trait" : "kickOffBarrier" }, // Index 19 - left top net.
- // logo
- { "x" : 360, "y" : 215, "trait" : "ballArea" }, // Index 20 - top left H
- { "x" : 375, "y" : 215, "trait" : "ballArea" }, // Index 21 - mid left h
- { "x" : 375, "y" : 215, "trait" : "ballArea" }, // Index 22 - bottom left h.
- { "x" : 390, "y" : 215, "trait" : "ballArea" }, // Index 23 - top right h.
- { "x" : 390, "y" : 230, "trait" : "ballArea" }, // Index 24 - middle right h.
- { "x" : 390, "y" : 245, "trait" : "ballArea" }, // Index 25 - bottom right h.
- { "x" : 430, "y" : 215, "trait" : "ballArea" }, // Index 26 - top c.
- { "x" : 430, "y" : 245, "trait" : "ballArea" } // Index 27 - bottom c.
- ],
- // The list of segments:
- "segments" : [
- // side walls:
- { "v0" : 0, "v1" : 1, "trait" : "bumper", "color" : "e30000" }, // left wall
- { "v0" : 2, "v1" : 3, "trait" : "bumper", "color" : "443bff" }, // right wall
- // top & bottom walls:
- { "v0" : 4, "v1" : 6, "trait" : "ballArea" }, // bottom wall.
- { "v0" : 5, "v1" : 7, "trait" : "ballArea" }, // top wall.
- // corners
- { "v0" : 1, "v1" : 7, "trait" : "corner" }, // top left.
- { "v0" : 5, "v1" : 3, "trait" : "corner" }, // top right.
- { "v0" : 6, "v1" : 0, "trait" : "corner" }, // bottom left.
- { "v0" : 2, "v1" : 4, "trait" : "corner" }, // bottom right.
- // Goal nets:
- { "v0" : 12, "v1" : 16, "trait" : "goalNet" }, // bottom right net.
- { "v0" : 16, "v1" : 17, "trait" : "goalNet" }, // right net.
- { "v0" : 17, "v1" : 13, "trait" : "goalNet" }, // top right net.
- { "v0" : 14, "v1" : 18, "trait" : "goalNet" }, // bottom left net.
- { "v0" : 18, "v1" : 19, "trait" : "goalNet" }, // left net.
- { "v0" : 19, "v1" : 15, "trait" : "goalNet" }, // right net.
- // 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.
- // goal lines
- { "v0" : 14, "v1" : 15, "trait" : "goalNet", "color" : "c7e6bd", "cGroup" : ["pass"] }, // left line.
- { "v0" : 12, "v1" : 13, "trait" : "goalNet", "color" : "c7e6bd", "cGroup" : ["pass"] }, // right line.
- // logo
- { "v0" : 20, "v1" : 22, "trait" : "name" }, // left H stroke.
- { "v0" : 23, "v1" : 25, "trait" : "name" }, // right H stroke.
- { "v0" : 21, "v1" : 24, "trait" : "name" }, // mid H stroke.
- { "v0" : 26, "v1" : 27, "trait" : "name2" } // C.
- ],
- // List of goals:
- "goals" : [
- { "p0" : [-200, 75], "p1" : [-200,-75], "team" : "red" },
- { "p0" : [200, 75], "p1" : [200,-75], "team" : "blue" }
- ],
- // List of discs:
- "discs" : [
- // Left posts:
- { "pos" : [-200, 75], "trait" : "goalPost" }, //left bottom post
- { "pos" : [-200, -75], "trait" : "goalPost" }, //left top post
- // right posts:
- { "pos" : [200, 75], "trait" : "goalPost" }, //right bottom post
- { "pos" : [200, -75], "trait" : "goalPost" }, //right top post
- // name
- { "pos" : [ 400, 245], "trait" : "fullstop" } // post for full stop in H. C
- ],
- // List of planes:
- "planes" : [
- { "normal" : [0, 1], "dist" : -200, "trait" : "ballArea" }, // Top ball area wall.
- { "normal" : [0,-1], "dist" : -200, "trait" : "ballArea" }, // Bottom ball area wall.
- // Player bounds:
- { "normal" : [ 0, 1], "dist" : -250, "bCoef" : 0.1 }, // Top wall.
- { "normal" : [ 0,-1], "dist" : -250, "bCoef" : 0.1 }, // Bottom wall.
- { "normal" : [ 1, 0], "dist" : -450, "bCoef" : 0.1 }, // Left wall.
- { "normal" : [-1, 0], "dist" : -450, "bCoef" : 0.1 } // Right wall.
- ],
- // List of traits:
- "traits" : {
- "ballArea" : { "vis" : false, "bCoef" : 1, "cMask" : ["ball"] },
- "name" : { "vis" : true, "bCoef" : 1, "cMask" : ["ball"] },
- "name2" : { "vis" : true, "bCoef" : 1, "cMask" : ["ball"], "curve" : -200 },
- "goalPost" : { "radius" : 8, "invMass" : 0, "bCoef" : 0.7 },
- "fullstop" : { "radius" : 2, "invMass" : 0, "bCoef" : 0.7, "color" : "000000" },
- "goalNet" : { "vis" : true, "bCoef" : 1.8 },
- "corner" : { "vis" : false, "bCoef" : 1, "curve" : 90, "cMask" : ["ball"] },
- "bumper" : { "vis" : true, "bCoef" : 5, "cMask" : ["ball"] },
- "kickOffBarrier" : { "vis" : false, "bCoef" : 0.1, "cGroup" : ["redKO", "blueKO"], "cMask" : ["red", "blue"] }
- }
- }
Add Comment
Please, Sign In to add comment