Guest User

Untitled

a guest
Apr 23rd, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.71 KB | None | 0 0
  1. {
  2. "name" : "Cage Match", // Set the name of the stadium
  3. "width" : 100, // width and height only constrain the camera scrolling.
  4. "height" : 50,
  5.  
  6. "spawnDistance" : 120, // Set how far from the ball the teams will spawn
  7.  
  8. "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.
  9.  
  10. // The list of vertexes:
  11. "vertexes" : [
  12. //walls
  13. { "x" : -200, "y" : 100, "trait" : "wall" }, //index 0
  14. { "x" : -200, "y" : 60, "trait" : "wall" }, //index 1
  15. { "x" : -200, "y" : -100, "trait" : "wall" }, //index 2
  16. { "x" : -200, "y" : -60, "trait" : "wall" }, //index 3
  17.  
  18. { "x" : 200, "y" : 100, "trait" : "wall" }, //index 4
  19. { "x" : 200, "y" : 60, "trait" : "wall" }, //index 5
  20. { "x" : 200, "y" : -100, "trait" : "wall" }, //index 6
  21. { "x" : 200, "y" : -60, "trait" : "wall" }, //index 7
  22.  
  23. // goal stop
  24. { "x" : 215, "y" : 45, "trait" : "goal stop" }, //index 8
  25. { "x" : 215, "y" : -45, "trait" : "goal stop" }, //index 9
  26.  
  27. { "x" : -215, "y" : -45, "trait" : "goal stop" }, //index 10
  28. { "x" : -215, "y" : 45, "trait" : "goal stop" }, //index 11
  29.  
  30. //middle
  31. { "x" : 0, "y" : 100, "trait" : "middle" }, //index 12
  32. { "x" : 0, "y" : -100, "trait" : "middle" }, //index 13
  33.  
  34. { "x" : 0, "y" : 15, "trait" : "kickOffBarrier" }, //index 14
  35. { "x" : 0, "y" : -15, "trait" : "kickOffBarrier" }, //index 15
  36.  
  37. //walls
  38. { "x" : -67.5, "y" : 100, "trait" : "wallDG" }, //index 16
  39. { "x" : 67.5, "y" : 100, "trait" : "wallDG" }, //index 17
  40.  
  41. { "x" : -67.5, "y" : -100, "trait" : "wallDG" }, //index 18
  42. { "x" : 67.5, "y" : -100, "trait" : "wallDG" }, //index 19
  43.  
  44. //decorations
  45. //goal filling
  46. { "x" : -212 , "y" : -45 , "trait" : "goal fill" }, //index 20
  47. { "x" : -212, "y" : 45 , "trait" : "goal fill" }, //index 21
  48. { "x" : -209 , "y" : -46 , "trait" : "goal fill" }, //index 20
  49. { "x" : -209, "y" : 46 , "trait" : "goal fill" }, //index 21
  50. { "x" : -206 , "y" : -47 , "trait" : "goal fill" }, //index 20
  51. { "x" : -206, "y" : 47 , "trait" : "goal fill" }, //index 21
  52. { "x" : -203 , "y" : -50 , "trait" : "goal fill" }, //index 20
  53. { "x" : -203, "y" : 50 , "trait" : "goal fill" }, //index 21
  54. { "x" : -200, "y" : 60 , "trait" : "goal fill" }, //index 21
  55. { "x" : -200, "y" : -60 , "trait" : "goal fill" }, //index 21
  56.  
  57. { "x" : 212 , "y" : -45 , "trait" : "goal fill" }, //index 20
  58. { "x" : 212, "y" : 45 , "trait" : "goal fill" }, //index 21
  59. { "x" : 209 , "y" : -46 , "trait" : "goal fill" }, //index 20
  60. { "x" : 209, "y" : 46 , "trait" : "goal fill" }, //index 21
  61. { "x" : 206 , "y" : -47 , "trait" : "goal fill" }, //index 20
  62. { "x" : 206, "y" : 47 , "trait" : "goal fill" }, //index 21
  63. { "x" : 203 , "y" : -50 , "trait" : "goal fill" }, //index 20
  64. { "x" : 203, "y" : 50 , "trait" : "goal fill" }, //index 21
  65. { "x" : 200, "y" : 60 , "trait" : "goal fill" }, //index 21
  66. { "x" : 200, "y" : -60 , "trait" : "goal fill" }, //index 39
  67.  
  68. { "x" : 0, "y" : 13 , "trait" : "goal fill" }, //index 40
  69. { "x" : 0, "y" : 11 , "trait" : "goal fill" }, //index 41
  70. { "x" : 0, "y" : 9 , "trait" : "goal fill" }, //index 42
  71. { "x" : 0, "y" : 7 , "trait" : "goal fill" }, //index 43
  72. { "x" : 0, "y" : 5 , "trait" : "goal fill" }, //index 44
  73. { "x" : 0, "y" : 3 , "trait" : "goal fill" }, //index 45
  74. { "x" : 0, "y" : 1 , "trait" : "goal fill" }, //index 46
  75. { "x" : 0, "y" : 0 , "trait" : "goal fill" }, //index 47
  76. { "x" : 0, "y" : -1 , "trait" : "goal fill" }, //index 48
  77. { "x" : 0, "y" : -3 , "trait" : "goal fill" }, //index 49
  78. { "x" : 0, "y" : -5 , "trait" : "goal fill" }, //index 50
  79. { "x" : 0, "y" : -7 , "trait" : "goal fill" }, //index 51
  80. { "x" : 0, "y" : -9 , "trait" : "goal fill" }, //index 52
  81. { "x" : 0, "y" : -11 , "trait" : "goal fill" }, //index 53
  82. { "x" : 0, "y" : -13 , "trait" : "goal fill" } //index 54
  83. ],
  84.  
  85. // The list of segments:
  86. "segments" : [
  87. //goal filling
  88. { "v0" : 20, "v1" : 21, "trait" : "goal fill" },
  89. { "v0" : 22, "v1" : 23, "trait" : "goal fill" },
  90. { "v0" : 24, "v1" : 25, "trait" : "goal fill" },
  91. { "v0" : 26, "v1" : 27, "trait" : "goal fill" },
  92. { "v0" : 28, "v1" : 29, "trait" : "goal fill" },
  93.  
  94. { "v0" : 30, "v1" : 31, "trait" : "goal fill" },
  95. { "v0" : 32, "v1" : 33, "trait" : "goal fill" },
  96. { "v0" : 34, "v1" : 35, "trait" : "goal fill" },
  97. { "v0" : 36, "v1" : 37, "trait" : "goal fill" },
  98. { "v0" : 38, "v1" : 39, "trait" : "goal fill" },
  99.  
  100. { "v0" : 40, "v1" : 54, "trait" : "goal fill", "curve" : 180 },
  101. { "v0" : 41, "v1" : 53, "trait" : "goal fill", "curve" : 180 },
  102. { "v0" : 42, "v1" : 52, "trait" : "goal fill", "curve" : 180 },
  103. { "v0" : 43, "v1" : 51, "trait" : "goal fill", "curve" : 180 },
  104. { "v0" : 44, "v1" : 50, "trait" : "goal fill", "curve" : 180 },
  105. { "v0" : 45, "v1" : 49, "trait" : "goal fill", "curve" : 180 },
  106. { "v0" : 46, "v1" : 48, "trait" : "goal fill", "curve" : 180 },
  107.  
  108. { "v0" : 40, "v1" : 54, "trait" : "goal fill", "curve" : -180 },
  109. { "v0" : 41, "v1" : 53, "trait" : "goal fill", "curve" : -180 },
  110. { "v0" : 42, "v1" : 52, "trait" : "goal fill", "curve" : -180 },
  111. { "v0" : 43, "v1" : 51, "trait" : "goal fill", "curve" : -180 },
  112. { "v0" : 44, "v1" : 50, "trait" : "goal fill", "curve" : -180 },
  113. { "v0" : 45, "v1" : 49, "trait" : "goal fill", "curve" : -180 },
  114. { "v0" : 46, "v1" : 48, "trait" : "goal fill", "curve" : -180 },
  115.  
  116. //walls
  117. { "v0" : 0, "v1" : 1, "trait" : "wallDG" },
  118. { "v0" : 2, "v1" : 3, "trait" : "wallDG" },
  119. { "v0" : 4, "v1" : 5, "trait" : "wallDG" },
  120. { "v0" : 6, "v1" : 7 , "trait" : "wallDG" },
  121.  
  122. { "v0" : 0, "v1" : 16, "trait" : "wallDG" },
  123. { "v0" : 2, "v1" : 18 , "trait" : "wallDG" },
  124.  
  125. { "v0" : 16, "v1" : 17, "trait" : "wallLG" },
  126. { "v0" : 18, "v1" : 19 , "trait" : "wallLG" },
  127.  
  128. { "v0" : 4, "v1" : 17, "trait" : "wallDG" },
  129. { "v0" : 6, "v1" : 19 , "trait" : "wallDG" },
  130.  
  131. { "v0" : 14, "v1" : 15 , "trait" : "kickOffBarrier", "curve" : 180, "cGroup" : ["blueKO"] },
  132. { "v0" : 14, "v1" : 15 , "trait" : "kickOffBarrier", "curve" : -180, "cGroup" : ["redKO"] },
  133.  
  134. //middle
  135. { "v0" : 12, "v1" : 13 , "trait" : "middle" },
  136. { "v0" : 12, "v1" : 13 , "trait" : "middle" },
  137. { "v0" : 12, "v1" : 13 , "trait" : "middle" },
  138.  
  139. //goal stop
  140. { "v0" : 8, "v1" : 9 , "trait" : "goal stop", "color" : [25, 25, 25] },
  141. { "v0" : 10, "v1" : 11 , "trait" : "goal stop", "color" : [25, 25, 25] },
  142.  
  143. { "v0" : 8, "v1" : 5 , "trait" : "goal stop", "curve" : -90, "color" : [25, 25, 25] },
  144. { "v0" : 9, "v1" : 7 , "trait" : "goal stop", "curve" : 90, "color" : [25, 25, 25] },
  145. { "v0" : 10, "v1" : 3 , "trait" : "goal stop", "curve" : -90, "color" : [25, 25, 25] },
  146. { "v0" : 11, "v1" : 1 , "trait" : "goal stop", "curve" : 90, "color" : [25, 25, 25] }
  147.  
  148. ],
  149.  
  150. // List of goals:
  151. "goals" : [
  152. { "p0" : [-200, 50], "p1" : [-200,-50], "team" : "red" },
  153. { "p0" : [200, 50], "p1" : [200,-50], "team" : "blue" }
  154. ],
  155.  
  156. // List of discs:
  157. "discs" : [
  158. ],
  159.  
  160. // List of planes:
  161. "planes" : [
  162. { "normal" : [0, 1], "dist" : -160, "trait" : "ballArea" }, // Top ball area wall.
  163. { "normal" : [0,-1], "dist" : -160, "trait" : "ballArea" }, // Bottom ball area wall.
  164.  
  165. { "normal" : [1, 0], "dist" : -360, "trait" : "ballArea" }, // right ball area wall.
  166. { "normal" : [-1,0], "dist" : -360, "trait" : "ballArea" }, // left ball area wall.
  167.  
  168. // Player bounds:
  169. { "normal" : [ 0, 1], "dist" : -200 }, // Top wall.
  170. { "normal" : [ 0,-1], "dist" : -200 }, // Bottom wall.
  171. { "normal" : [ 1, 0], "dist" : -400 }, // Left wall.
  172. { "normal" : [-1, 0], "dist" : -400 } // Right wall.
  173. ],
  174. //made by derpmeister derp
  175. // List of traits:
  176. "traits" : {
  177. "goal fill" : { "vis" : true, "color" : [50, 50, 50], "cMask" : ["cBall"] },
  178. //"decor" : { "vis" : true", "cMask" : ["red", "blue"] },
  179. "goal stop" : { "vis" : true, "cMask" : ["red", "blue", "ball"], "bCoef" : 0 },
  180. "middle" : { "vis" : true, "cMask" : ["red", "blue"], "bCoef" : 0, "color" : [50, 50, 50] },
  181. "wallDG" : { "vis" : true, "bCoef" : 1, "cMask" : ["ball", "red", "blue"], "color" : [25, 25, 25] },
  182. "wallLG" : { "vis" : true, "bCoef" : 1, "cMask" : ["ball", "red", "blue"], "color" : [50, 50, 50] },
  183. "wallB" : { "vis" : true, "bCoef" : 1, "cMask" : ["ball", "red", "blue"], "color" : [0, 0, 0] },
  184. "wall" : { "vis" : true, "bCoef" : 1, "cMask" : ["ball", "red", "blue"] },
  185. "ballArea" : { "vis" : false, "bCoef" : 1, "cMask" : ["ball"] },
  186. "goalPost" : { "radius" : 8, "invMass" : 0, "bCoef" : 0.5 },
  187. "goalNet" : { "vis" : true, "bCoef" : 0.1, "cMask" : ["ball"], "curve" : 110, "color" : [255, 0, 0] },
  188. "kickOffBarrier" : { "vis" : true, "bCoef" : 0, "cGroup" : ["redKO", "blueKO"], "cMask" : ["red", "blue"], "color" : [50, 50, 50] }
  189. }
  190. }
Add Comment
Please, Sign In to add comment