Guest User

Untitled

a guest
Apr 22nd, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.21 KB | None | 0 0
  1. {
  2. "name" : "bite", // Set the name of the stadium
  3. "width" : 650, // width and height only constrain the camera scrolling.
  4. "height" : 300,
  5.  
  6. "spawnDistance" : 400, // Set how far from the ball the teams will spawn
  7.  
  8. "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.
  9.  
  10. // The list of vertexes:
  11. "vertexes" : [
  12. // Left side of the ball area:
  13. { "x" : -600, "y" : 275, "trait" : "ballArea" }, // Index 0 - Bottom corner.
  14. { "x" : -600, "y" : 90, "trait" : "ballArea" }, // Index 1 - Bottom goal post.
  15. { "x" : -600, "y" : -90, "trait" : "ballArea" }, // Index 2 - Top goal post.
  16. { "x" : -600, "y" : -275, "trait" : "ballArea" }, // Index 3 - Top corner.
  17.  
  18. // Right side of the ball area:
  19. { "x" : 600, "y" : 275, "trait" : "ballArea" }, // Index 4 - Bottom corner.
  20. { "x" : 600, "y" : 90, "trait" : "ballArea" }, // Index 5 - Bottom goal post.
  21. { "x" : 600, "y" : -90, "trait" : "ballArea" }, // Index 6 - Top goal post.
  22. { "x" : 600, "y" : -275, "trait" : "ballArea" }, // Index 7 - Top corner.
  23.  
  24. // Vertexes involved on the kickoff barrier:
  25. { "x" : 0, "y" : 300, "trait" : "kickOffBarrier" }, // Index 8 - Bottom center.
  26. { "x" : 0, "y" : 90, "trait" : "kickOffBarrier" }, // Index 9 - Bottom of the kickoff circle.
  27. { "x" : 0, "y" : -90, "trait" : "kickOffBarrier" }, // Index 10 - Top of the kickoff circle.
  28. { "x" : 0, "y" : -300, "trait" : "kickOffBarrier" } // Index 11 - Top center.
  29. ],
  30.  
  31. // The list of segments:
  32. "segments" : [
  33. // Left side ball area walls:
  34. { "v0" : 0, "v1" : 1, "trait" : "ballArea" }, // Connects bottom corner to bottom goal post.
  35. { "v0" : 2, "v1" : 3, "trait" : "ballArea" }, // Connects top corner to top goal post.
  36.  
  37. // Right side ball area walls:
  38. { "v0" : 4, "v1" : 5, "trait" : "ballArea" }, // Connects bottom corner to bottom goal post.
  39. { "v0" : 6, "v1" : 7, "trait" : "ballArea" }, // Connects top corner to top goal post.
  40.  
  41. // Goal nets:
  42. { "v0" : 1, "v1" : 2, "trait" : "goalNet" }, // Connects left bottom to left top post.
  43. { "v0" : 6, "v1" : 5, "trait" : "goalNet" }, // Connects right bottom to right top post.
  44.  
  45. // Kickoff barriers:
  46. { "v0" : 8, "v1" : 9, "trait" : "kickOffBarrier" }, // Connects bottom center to kickoff circle bottom.
  47. { "v0" : 9, "v1" : 10, "trait" : "kickOffBarrier", "curve" : 180, "cGroup" : ["blueKO"] }, // Connects Kickoff circle top and bottom, curve = 180 makes half a circle.
  48. { "v0" : 9, "v1" : 10, "trait" : "kickOffBarrier", "curve" : -180, "cGroup" : ["redKO"] }, // Connects Kickoff circle top and bottom again, curve = -180 makes the other half.
  49. { "v0" : 10, "v1" : 11, "trait" : "kickOffBarrier" } // Connects kickoff circle top to top center.
  50. ],
  51.  
  52. // List of goals:
  53. "goals" : [
  54. { "p0" : [-600, 90], "p1" : [-600,-90], "team" : "red" },
  55. { "p0" : [600, 90], "p1" : [600,-90], "team" : "blue" }
  56. ],
  57.  
  58. // List of discs:
  59. "discs" : [
  60. // Left posts:
  61. { "pos" : [-600, 90], "trait" : "goalPost" },
  62. { "pos" : [-600, -90], "trait" : "goalPost" },
  63.  
  64. // Right posts:
  65. { "pos" : [ 600, 90], "trait" : "goalPost" },
  66. { "pos" : [ 600, -90], "trait" : "goalPost" }
  67. ],
  68.  
  69. // List of planes:
  70. "planes" : [
  71. { "normal" : [0, 1], "dist" : -275, "trait" : "ballArea" }, // Top ball area wall.
  72. { "normal" : [0,-1], "dist" : -275, "trait" : "ballArea" }, // Bottom ball area wall.
  73.  
  74. // Player bounds:
  75. { "normal" : [ 0, 1], "dist" : -275, "bCoef" : 0.1 }, // Top wall.
  76. { "normal" : [ 0,-1], "dist" : -275, "bCoef" : 0.1 }, // Bottom wall.
  77. { "normal" : [ 1, 0], "dist" : -650, "bCoef" : 0.1 }, // Left wall.
  78. { "normal" : [-1, 0], "dist" : -650, "bCoef" : 0.1 } // Right wall.
  79. ],
  80.  
  81. // List of traits:
  82. "traits" : {
  83. "ballArea" : { "vis" : false, "bCoef" : 1, "cMask" : ["ball"] },
  84. "goalPost" : { "radius" : 8, "invMass" : 0, "bCoef" : 0.5 },
  85. "goalNet" : { "vis" : true, "bCoef" : 0.1, "cMask" : ["ball"], "curve" : 100 },
  86. "kickOffBarrier" : { "vis" : false, "bCoef" : 0.1, "cGroup" : ["redKO", "blueKO"], "cMask" : ["red", "blue"] }
  87. }
  88. }
Add Comment
Please, Sign In to add comment