Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "name" : "Cage Match", // Set the name of the stadium
- "width" : 100, // width and height only constrain the camera scrolling.
- "height" : 50,
- "spawnDistance" : 120, // Set how far from the ball the teams will spawn
- "bg" : { "type" : "hockey", "width" : 200, "height" : 100, "kickOffRadius" : 15, "cornerRadius" : 0 }, // Set the background. This is only visual, it doesnt' affect the physics at all.
- // The list of vertexes:
- "vertexes" : [
- //walls
- { "x" : -200, "y" : 100, "trait" : "wall" }, //index 0
- { "x" : -200, "y" : 60, "trait" : "wall" }, //index 1
- { "x" : -200, "y" : -100, "trait" : "wall" }, //index 2
- { "x" : -200, "y" : -60, "trait" : "wall" }, //index 3
- { "x" : 200, "y" : 100, "trait" : "wall" }, //index 4
- { "x" : 200, "y" : 60, "trait" : "wall" }, //index 5
- { "x" : 200, "y" : -100, "trait" : "wall" }, //index 6
- { "x" : 200, "y" : -60, "trait" : "wall" }, //index 7
- // goal stop
- { "x" : 215, "y" : 45, "trait" : "goal stop" }, //index 8
- { "x" : 215, "y" : -45, "trait" : "goal stop" }, //index 9
- { "x" : -215, "y" : -45, "trait" : "goal stop" }, //index 10
- { "x" : -215, "y" : 45, "trait" : "goal stop" }, //index 11
- //middle
- { "x" : 0, "y" : 100, "trait" : "middle" }, //index 12
- { "x" : 0, "y" : -100, "trait" : "middle" }, //index 13
- { "x" : 0, "y" : 15, "trait" : "kickOffBarrier" }, //index 14
- { "x" : 0, "y" : -15, "trait" : "kickOffBarrier" }, //index 15
- //walls
- { "x" : -67.5, "y" : 100, "trait" : "wallDG" }, //index 16
- { "x" : 67.5, "y" : 100, "trait" : "wallDG" }, //index 17
- { "x" : -67.5, "y" : -100, "trait" : "wallDG" }, //index 18
- { "x" : 67.5, "y" : -100, "trait" : "wallDG" }, //index 19
- //decorations
- //goal filling
- { "x" : -212 , "y" : -45 , "trait" : "goal fill" }, //index 20
- { "x" : -212, "y" : 45 , "trait" : "goal fill" }, //index 21
- { "x" : -209 , "y" : -46 , "trait" : "goal fill" }, //index 20
- { "x" : -209, "y" : 46 , "trait" : "goal fill" }, //index 21
- { "x" : -206 , "y" : -47 , "trait" : "goal fill" }, //index 20
- { "x" : -206, "y" : 47 , "trait" : "goal fill" }, //index 21
- { "x" : -203 , "y" : -50 , "trait" : "goal fill" }, //index 20
- { "x" : -203, "y" : 50 , "trait" : "goal fill" }, //index 21
- { "x" : -200, "y" : 60 , "trait" : "goal fill" }, //index 21
- { "x" : -200, "y" : -60 , "trait" : "goal fill" }, //index 21
- { "x" : 212 , "y" : -45 , "trait" : "goal fill" }, //index 20
- { "x" : 212, "y" : 45 , "trait" : "goal fill" }, //index 21
- { "x" : 209 , "y" : -46 , "trait" : "goal fill" }, //index 20
- { "x" : 209, "y" : 46 , "trait" : "goal fill" }, //index 21
- { "x" : 206 , "y" : -47 , "trait" : "goal fill" }, //index 20
- { "x" : 206, "y" : 47 , "trait" : "goal fill" }, //index 21
- { "x" : 203 , "y" : -50 , "trait" : "goal fill" }, //index 20
- { "x" : 203, "y" : 50 , "trait" : "goal fill" }, //index 21
- { "x" : 200, "y" : 60 , "trait" : "goal fill" }, //index 21
- { "x" : 200, "y" : -60 , "trait" : "goal fill" }, //index 39
- { "x" : 0, "y" : 13 , "trait" : "goal fill" }, //index 40
- { "x" : 0, "y" : 11 , "trait" : "goal fill" }, //index 41
- { "x" : 0, "y" : 9 , "trait" : "goal fill" }, //index 42
- { "x" : 0, "y" : 7 , "trait" : "goal fill" }, //index 43
- { "x" : 0, "y" : 5 , "trait" : "goal fill" }, //index 44
- { "x" : 0, "y" : 3 , "trait" : "goal fill" }, //index 45
- { "x" : 0, "y" : 1 , "trait" : "goal fill" }, //index 46
- { "x" : 0, "y" : 0 , "trait" : "goal fill" }, //index 47
- { "x" : 0, "y" : -1 , "trait" : "goal fill" }, //index 48
- { "x" : 0, "y" : -3 , "trait" : "goal fill" }, //index 49
- { "x" : 0, "y" : -5 , "trait" : "goal fill" }, //index 50
- { "x" : 0, "y" : -7 , "trait" : "goal fill" }, //index 51
- { "x" : 0, "y" : -9 , "trait" : "goal fill" }, //index 52
- { "x" : 0, "y" : -11 , "trait" : "goal fill" }, //index 53
- { "x" : 0, "y" : -13 , "trait" : "goal fill" } //index 54
- ],
- // The list of segments:
- "segments" : [
- //goal filling
- { "v0" : 20, "v1" : 21, "trait" : "goal fill" },
- { "v0" : 22, "v1" : 23, "trait" : "goal fill" },
- { "v0" : 24, "v1" : 25, "trait" : "goal fill" },
- { "v0" : 26, "v1" : 27, "trait" : "goal fill" },
- { "v0" : 28, "v1" : 29, "trait" : "goal fill" },
- { "v0" : 30, "v1" : 31, "trait" : "goal fill" },
- { "v0" : 32, "v1" : 33, "trait" : "goal fill" },
- { "v0" : 34, "v1" : 35, "trait" : "goal fill" },
- { "v0" : 36, "v1" : 37, "trait" : "goal fill" },
- { "v0" : 38, "v1" : 39, "trait" : "goal fill" },
- { "v0" : 40, "v1" : 54, "trait" : "goal fill", "curve" : 180 },
- { "v0" : 41, "v1" : 53, "trait" : "goal fill", "curve" : 180 },
- { "v0" : 42, "v1" : 52, "trait" : "goal fill", "curve" : 180 },
- { "v0" : 43, "v1" : 51, "trait" : "goal fill", "curve" : 180 },
- { "v0" : 44, "v1" : 50, "trait" : "goal fill", "curve" : 180 },
- { "v0" : 45, "v1" : 49, "trait" : "goal fill", "curve" : 180 },
- { "v0" : 46, "v1" : 48, "trait" : "goal fill", "curve" : 180 },
- { "v0" : 40, "v1" : 54, "trait" : "goal fill", "curve" : -180 },
- { "v0" : 41, "v1" : 53, "trait" : "goal fill", "curve" : -180 },
- { "v0" : 42, "v1" : 52, "trait" : "goal fill", "curve" : -180 },
- { "v0" : 43, "v1" : 51, "trait" : "goal fill", "curve" : -180 },
- { "v0" : 44, "v1" : 50, "trait" : "goal fill", "curve" : -180 },
- { "v0" : 45, "v1" : 49, "trait" : "goal fill", "curve" : -180 },
- { "v0" : 46, "v1" : 48, "trait" : "goal fill", "curve" : -180 },
- //walls
- { "v0" : 0, "v1" : 1, "trait" : "wallDG" },
- { "v0" : 2, "v1" : 3, "trait" : "wallDG" },
- { "v0" : 4, "v1" : 5, "trait" : "wallDG" },
- { "v0" : 6, "v1" : 7 , "trait" : "wallDG" },
- { "v0" : 0, "v1" : 16, "trait" : "wallDG" },
- { "v0" : 2, "v1" : 18 , "trait" : "wallDG" },
- { "v0" : 16, "v1" : 17, "trait" : "wallLG" },
- { "v0" : 18, "v1" : 19 , "trait" : "wallLG" },
- { "v0" : 4, "v1" : 17, "trait" : "wallDG" },
- { "v0" : 6, "v1" : 19 , "trait" : "wallDG" },
- { "v0" : 14, "v1" : 15 , "trait" : "kickOffBarrier", "curve" : 180, "cGroup" : ["blueKO"] },
- { "v0" : 14, "v1" : 15 , "trait" : "kickOffBarrier", "curve" : -180, "cGroup" : ["redKO"] },
- //middle
- { "v0" : 12, "v1" : 13 , "trait" : "middle" },
- { "v0" : 12, "v1" : 13 , "trait" : "middle" },
- { "v0" : 12, "v1" : 13 , "trait" : "middle" },
- //goal stop
- { "v0" : 8, "v1" : 9 , "trait" : "goal stop", "color" : [25, 25, 25] },
- { "v0" : 10, "v1" : 11 , "trait" : "goal stop", "color" : [25, 25, 25] },
- { "v0" : 8, "v1" : 5 , "trait" : "goal stop", "curve" : -90, "color" : [25, 25, 25] },
- { "v0" : 9, "v1" : 7 , "trait" : "goal stop", "curve" : 90, "color" : [25, 25, 25] },
- { "v0" : 10, "v1" : 3 , "trait" : "goal stop", "curve" : -90, "color" : [25, 25, 25] },
- { "v0" : 11, "v1" : 1 , "trait" : "goal stop", "curve" : 90, "color" : [25, 25, 25] }
- ],
- // List of goals:
- "goals" : [
- { "p0" : [-200, 50], "p1" : [-200,-50], "team" : "red" },
- { "p0" : [200, 50], "p1" : [200,-50], "team" : "blue" }
- ],
- // List of discs:
- "discs" : [
- ],
- // List of planes:
- "planes" : [
- { "normal" : [0, 1], "dist" : -160, "trait" : "ballArea" }, // Top ball area wall.
- { "normal" : [0,-1], "dist" : -160, "trait" : "ballArea" }, // Bottom ball area wall.
- { "normal" : [1, 0], "dist" : -360, "trait" : "ballArea" }, // right ball area wall.
- { "normal" : [-1,0], "dist" : -360, "trait" : "ballArea" }, // left ball area wall.
- // Player bounds:
- { "normal" : [ 0, 1], "dist" : -200 }, // Top wall.
- { "normal" : [ 0,-1], "dist" : -200 }, // Bottom wall.
- { "normal" : [ 1, 0], "dist" : -400 }, // Left wall.
- { "normal" : [-1, 0], "dist" : -400 } // Right wall.
- ],
- //made by derpmeister derp
- // List of traits:
- "traits" : {
- "goal fill" : { "vis" : true, "color" : [50, 50, 50], "cMask" : ["cBall"] },
- //"decor" : { "vis" : true", "cMask" : ["red", "blue"] },
- "goal stop" : { "vis" : true, "cMask" : ["red", "blue", "ball"], "bCoef" : 0 },
- "middle" : { "vis" : true, "cMask" : ["red", "blue"], "bCoef" : 0, "color" : [50, 50, 50] },
- "wallDG" : { "vis" : true, "bCoef" : 1, "cMask" : ["ball", "red", "blue"], "color" : [25, 25, 25] },
- "wallLG" : { "vis" : true, "bCoef" : 1, "cMask" : ["ball", "red", "blue"], "color" : [50, 50, 50] },
- "wallB" : { "vis" : true, "bCoef" : 1, "cMask" : ["ball", "red", "blue"], "color" : [0, 0, 0] },
- "wall" : { "vis" : true, "bCoef" : 1, "cMask" : ["ball", "red", "blue"] },
- "ballArea" : { "vis" : false, "bCoef" : 1, "cMask" : ["ball"] },
- "goalPost" : { "radius" : 8, "invMass" : 0, "bCoef" : 0.5 },
- "goalNet" : { "vis" : true, "bCoef" : 0.1, "cMask" : ["ball"], "curve" : 110, "color" : [255, 0, 0] },
- "kickOffBarrier" : { "vis" : true, "bCoef" : 0, "cGroup" : ["redKO", "blueKO"], "cMask" : ["red", "blue"], "color" : [50, 50, 50] }
- }
- }
Add Comment
Please, Sign In to add comment