Guest User

Untitled

a guest
Apr 23rd, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.53 KB | None | 0 0
  1. // by Kutch
  2.  
  3. {
  4. "name" : "Ters Sahalar", // Set the name of the stadium
  5. "width" : 450, // width and height only constrain the camera scrolling.
  6. "height" : 250,
  7.  
  8. "spawnDistance" : 100, // Set how far from the ball the teams will spawn
  9.  
  10. "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.
  11.  
  12. // The list of vertexes:
  13. "vertexes" : [
  14. // sides:
  15. { "x" : -400, "y" : 125, "trait" : "ballArea" }, // Index 0 - left bottom
  16. { "x" : -400, "y" : -125, "trait" : "ballArea" }, // Index 1 - left top
  17. { "x" : 400, "y" : 125, "trait" : "ballArea" }, // Index 2 - right bottom.
  18. { "x" : 400, "y" : -125, "trait" : "ballArea" }, // Index 3 - right top.
  19.  
  20. // top & bottom area:
  21. { "x" : 325, "y" : 200, "trait" : "ballArea" }, // Index 4 - Bottom right.
  22. { "x" : 325, "y" : -200, "trait" : "ballArea" }, // Index 5 - top right.
  23. { "x" : -325, "y" : 200, "trait" : "ballArea" }, // Index 6 - bottom left.
  24. { "x" : -325, "y" : -200, "trait" : "ballArea" }, // Index 7 - top left.
  25.  
  26. // Vertexes involved on the kickoff barrier:
  27. { "x" : 0, "y" : 250, "trait" : "kickOffBarrier" }, // Index 8 - Bottom center.
  28. { "x" : 0, "y" : 50, "trait" : "kickOffBarrier" }, // Index 9 - Bottom of the kickoff circle.
  29. { "x" : 0, "y" : -50, "trait" : "kickOffBarrier" }, // Index 10 - Top of the kickoff circle.
  30. { "x" : 0, "y" : -250, "trait" : "kickOffBarrier" }, // Index 11 - Top center.
  31.  
  32. // goalposts
  33. { "x" : 200, "y" : 75, "trait" : "kickOffBarrier" }, // Index 12 - right bottom post.
  34. { "x" : 200, "y" : -75, "trait" : "kickOffBarrier" }, // Index 13 - right top post.
  35. { "x" : -200, "y" : 75, "trait" : "kickOffBarrier" }, // Index 14 - left bottom post.
  36. { "x" : -200, "y" : -75, "trait" : "kickOffBarrier" }, // Index 15 - left top post.
  37.  
  38. // net area
  39. { "x" : 160, "y" : 75, "trait" : "kickOffBarrier" }, // Index 16 - right bottom net.
  40. { "x" : 160, "y" : -75, "trait" : "kickOffBarrier" }, // Index 17 - right top net.
  41. { "x" : -160, "y" : 75, "trait" : "kickOffBarrier" }, // Index 18 - left bottom net.
  42. { "x" : -160, "y" : -75, "trait" : "kickOffBarrier" }, // Index 19 - left top net.
  43.  
  44. // logo
  45. { "x" : 360, "y" : 215, "trait" : "ballArea" }, // Index 20 - top left H
  46. { "x" : 375, "y" : 215, "trait" : "ballArea" }, // Index 21 - mid left h
  47. { "x" : 375, "y" : 215, "trait" : "ballArea" }, // Index 22 - bottom left h.
  48. { "x" : 390, "y" : 215, "trait" : "ballArea" }, // Index 23 - top right h.
  49. { "x" : 390, "y" : 230, "trait" : "ballArea" }, // Index 24 - middle right h.
  50. { "x" : 390, "y" : 245, "trait" : "ballArea" }, // Index 25 - bottom right h.
  51.  
  52. { "x" : 430, "y" : 215, "trait" : "ballArea" }, // Index 26 - top c.
  53. { "x" : 430, "y" : 245, "trait" : "ballArea" } // Index 27 - bottom c.
  54. ],
  55.  
  56. // The list of segments:
  57. "segments" : [
  58. // side walls:
  59. { "v0" : 0, "v1" : 1, "trait" : "bumper", "color" : "e30000" }, // left wall
  60. { "v0" : 2, "v1" : 3, "trait" : "bumper", "color" : "443bff" }, // right wall
  61.  
  62. // top & bottom walls:
  63. { "v0" : 4, "v1" : 6, "trait" : "ballArea" }, // bottom wall.
  64. { "v0" : 5, "v1" : 7, "trait" : "ballArea" }, // top wall.
  65.  
  66. // corners
  67. { "v0" : 1, "v1" : 7, "trait" : "corner" }, // top left.
  68. { "v0" : 5, "v1" : 3, "trait" : "corner" }, // top right.
  69. { "v0" : 6, "v1" : 0, "trait" : "corner" }, // bottom left.
  70. { "v0" : 2, "v1" : 4, "trait" : "corner" }, // bottom right.
  71.  
  72. // Goal nets:
  73. { "v0" : 12, "v1" : 16, "trait" : "goalNet" }, // bottom right net.
  74. { "v0" : 16, "v1" : 17, "trait" : "goalNet" }, // right net.
  75. { "v0" : 17, "v1" : 13, "trait" : "goalNet" }, // top right net.
  76. { "v0" : 14, "v1" : 18, "trait" : "goalNet" }, // bottom left net.
  77. { "v0" : 18, "v1" : 19, "trait" : "goalNet" }, // left net.
  78. { "v0" : 19, "v1" : 15, "trait" : "goalNet" }, // right net.
  79.  
  80. // Kickoff barriers:
  81. { "v0" : 8, "v1" : 9, "trait" : "kickOffBarrier" }, // Connects bottom center to kickoff circle bottom.
  82. { "v0" : 9, "v1" : 10, "trait" : "kickOffBarrier", "curve" : 180, "cGroup" : ["blueKO"] }, // Connects Kickoff circle top and bottom, curve = 180 makes half a circle.
  83. { "v0" : 9, "v1" : 10, "trait" : "kickOffBarrier", "curve" : -180, "cGroup" : ["redKO"] }, // Connects Kickoff circle top and bottom again, curve = -180 makes the other half.
  84. { "v0" : 10, "v1" : 11, "trait" : "kickOffBarrier" }, // Connects kickoff circle top to top center.
  85.  
  86. // goal lines
  87. { "v0" : 14, "v1" : 15, "trait" : "goalNet", "color" : "c7e6bd", "cGroup" : ["pass"] }, // left line.
  88. { "v0" : 12, "v1" : 13, "trait" : "goalNet", "color" : "c7e6bd", "cGroup" : ["pass"] }, // right line.
  89.  
  90. // logo
  91. { "v0" : 20, "v1" : 22, "trait" : "name" }, // left H stroke.
  92. { "v0" : 23, "v1" : 25, "trait" : "name" }, // right H stroke.
  93. { "v0" : 21, "v1" : 24, "trait" : "name" }, // mid H stroke.
  94. { "v0" : 26, "v1" : 27, "trait" : "name2" } // C.
  95. ],
  96.  
  97. // List of goals:
  98. "goals" : [
  99. { "p0" : [-200, 75], "p1" : [-200,-75], "team" : "red" },
  100. { "p0" : [200, 75], "p1" : [200,-75], "team" : "blue" }
  101. ],
  102.  
  103. // List of discs:
  104. "discs" : [
  105. // Left posts:
  106. { "pos" : [-200, 75], "trait" : "goalPost" }, //left bottom post
  107. { "pos" : [-200, -75], "trait" : "goalPost" }, //left top post
  108.  
  109. // right posts:
  110. { "pos" : [200, 75], "trait" : "goalPost" }, //right bottom post
  111. { "pos" : [200, -75], "trait" : "goalPost" }, //right top post
  112.  
  113. // name
  114. { "pos" : [ 400, 245], "trait" : "fullstop" } // post for full stop in H. C
  115. ],
  116.  
  117. // List of planes:
  118. "planes" : [
  119. { "normal" : [0, 1], "dist" : -200, "trait" : "ballArea" }, // Top ball area wall.
  120. { "normal" : [0,-1], "dist" : -200, "trait" : "ballArea" }, // Bottom ball area wall.
  121.  
  122. // Player bounds:
  123. { "normal" : [ 0, 1], "dist" : -250, "bCoef" : 0.1 }, // Top wall.
  124. { "normal" : [ 0,-1], "dist" : -250, "bCoef" : 0.1 }, // Bottom wall.
  125. { "normal" : [ 1, 0], "dist" : -450, "bCoef" : 0.1 }, // Left wall.
  126. { "normal" : [-1, 0], "dist" : -450, "bCoef" : 0.1 } // Right wall.
  127. ],
  128.  
  129. // List of traits:
  130. "traits" : {
  131. "ballArea" : { "vis" : false, "bCoef" : 1, "cMask" : ["ball"] },
  132. "name" : { "vis" : true, "bCoef" : 1, "cMask" : ["ball"] },
  133. "name2" : { "vis" : true, "bCoef" : 1, "cMask" : ["ball"], "curve" : -200 },
  134. "goalPost" : { "radius" : 8, "invMass" : 0, "bCoef" : 0.7 },
  135. "fullstop" : { "radius" : 2, "invMass" : 0, "bCoef" : 0.7, "color" : "000000" },
  136. "goalNet" : { "vis" : true, "bCoef" : 1.8 },
  137. "corner" : { "vis" : false, "bCoef" : 1, "curve" : 90, "cMask" : ["ball"] },
  138. "bumper" : { "vis" : true, "bCoef" : 5, "cMask" : ["ball"] },
  139. "kickOffBarrier" : { "vis" : false, "bCoef" : 0.1, "cGroup" : ["redKO", "blueKO"], "cMask" : ["red", "blue"] }
  140. }
  141. }
Add Comment
Please, Sign In to add comment