Advertisement
Guest User

example.txt

a guest
Apr 21st, 2019
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.50 KB | None | 0 0
  1. {
  2. "title": "Example Dungeon",
  3. "startGold": 10000, // Base Starting Gold (added to the player's Starting Gold)
  4. "tileset": "mines", // tilesets: stone, mines, dungeon, prison, ash, ice, castle, jungle, desert
  5. "weatherEffectType": "Rain", // Rain, Ash, DustStorm, Snow (case sensitive)
  6. "route": [
  7. [ "A", "9" ], // From Entrance A to Portal 9
  8. [ "B", "8" ], // From Entrance B to Portal 8
  9. [ "C", "7" ], // From Entrance C to Portal 7
  10. ],
  11. "victoryCondition": "CollectGold", // Defense (Normal), CollectGold (Greed)
  12. "victoryParameters": {"gold": 20000, "time": 600}, // Used with CollectGold victory condition
  13. "field": [
  14. // Tiles:
  15. // 0: Floor
  16. // 1: Wall
  17. // 2: Abyss
  18. // 5: Obstacle
  19. // @: Destroyable Wall
  20. // #: Destroyable Floor
  21. // >, <, ^, V: Door
  22. // }, {, M, W: Spiked Wall
  23.  
  24. // A, AA, AAA: Entrances
  25.  
  26. // 333
  27. // 393 : Large Portal
  28. // 333
  29.  
  30. // 33
  31. // 39 : Small Portal
  32.  
  33. "11111111111111111111111111111",
  34. "11100010000112222222222222211",
  35. "11100010000112222222222222211",
  36. "11100010000112222222222222211",
  37. "11100010000112222222222222211",
  38. "11100010000112222222222222211",
  39. "11110110000112222222222222211",
  40. "11110110000111111111111111111",
  41. "11A002225501WWW10000000013331",
  42. "11A00000000000000000@@00>3731",
  43. "11A002225501MMM10000000013331",
  44. "11111111111111111111000011111",
  45. "11B000006666000#####0000{1111",
  46. "11B00000600600000000000011111",
  47. "11111111611611111111000013811",
  48. "11C000006006000000000000>3311",
  49. "11111111611611101111010011111",
  50. "1111111161166110111101VV13331",
  51. "11111166611161111111110003931",
  52. "11111111111111111111111113331",
  53. "11111111111111111111111111111",
  54.  
  55. ],
  56. "movingPlatforms": [
  57. {
  58. "row": 16,
  59. "col": 14,
  60. "routeH": [0, 0, 1, 1, 0, 0, -1, -1],
  61. "routeV": [1, 1, 0, 0, -1, -1, 0, 0],
  62. "isRouteLooped": true, // if false, the platform reverses its route when it reaches the last position.
  63. "moveSpeed": 0.15,
  64. "stopTime": 0,
  65. "terrain": [
  66. "1",
  67. ]
  68. },
  69. {
  70. "row": 15,
  71. "col": 21,
  72. "routeH": [0, 0, 0],
  73. "routeV": [1, 1, 1], // will move up three tiles
  74. "isRouteLooped": false, // and then move down three tiles
  75. "moveSpeed": 0.3,
  76. "stopTime": 3,
  77. "initialMoveDelay": 5,
  78. "terrain": [
  79. "10",
  80. "10"
  81. ]
  82. }
  83. ],
  84. "rails": [
  85. { "startRow": 2, "startCol": 6, "endRow": 2, "endCol": 12, "interval": 3.5 }, // Minecart track
  86. { "type": "Bison", "startRow": 3, "startCol": 15, "endRow": 3, "endCol": 20, "interval": 0.3, "duration": 5 }, // Bison track
  87. ],
  88. "decorations": [
  89. { "type": "Torch", "row": 6, "col": 8, "rotation": 270 }, // Decorative torch
  90.  
  91. { "type": "Boulder", "row": 12, "col": 23, "rotation": 0 }, // Rotations: 0: Down, 90: Left, 180: Up, 270: Right
  92.  
  93. { "type": "Totem", "row": 7, "col": 4, "rotation": 0, "totemType": "Haste" },
  94. // totemTypes: Haste, Rejuvenation, Emboldening, Stability, Immortality, Shielding
  95.  
  96. { "type": "Treasure", "row": 9, "col": 21, "rotation": 0 }, // Treasure Chest
  97.  
  98. { "type": "Orb", "row": 6, "col": 21, "rotation": 0 }, // Orb of Experience
  99.  
  100. { "type": "DemonSquad", "row": 5, "col": 5, "count": 3 }, // setting "count" to six will spawn a Demon Lord.
  101.  
  102. { "type": "Vault", "row": 18, "col": 8 }, // Vault & Tomb occupy 2x2 tiles. The position is anchored to the top-left corner.
  103.  
  104. { "type": "Tomb", "row": 15, "col": 8,
  105. "spawnerUnitType": "Warrior",
  106. "spawnerRouteIndex": 0,
  107. "spawnerInterval": 0.1,
  108. "spawnerUnitCount": 50
  109. },
  110.  
  111. { "type": "Spawner", "row": 16, "col": 4, "rotation": 0, "spawnerUnitType": "Warrior", "spawnerRouteIndex": 0, "spawnerInterval": 3 },
  112. { "type": "Spawner", "row": 18, "col": 4, "rotation": 0, "spawnerUnitType": "Digger", "spawnerRouteIndex": 1, "spawnerInterval": 5 },
  113. ],
  114. "prebuiltTraps": [
  115. { "row": 0, "col": 0, "fieldIndex": 1, "type": "Dart", "tier": 0, "direction": "Right" },
  116. // fieldIndex: 0: the map itself, 1: the first movingPlatform, 2: the second movingPlatform and so on.
  117. { "row": 0, "col": 1, "fieldIndex": 2, "type": "Spike", "tier": 0, "direction": "Down" },
  118. { "row": 6, "col": 6, "fieldIndex": 0, "type": "Harpoon", "tier": 0, "direction": "Up" },
  119. // Complete list of the Trap types:
  120. // Spike, Push, Barricade, Wind, Grind, Bolt, Lightning, Dart, Inferno, Spring, Tar, Slot,
  121. // Spawner_Demon, Spawner_Necromancer, Spin, Harpoon, Harvester, Blackhole, Hex,
  122. // Teleporter, Bola, Chakram, Rocket, Shockwave
  123. ],
  124. "allowedUnitTypes": [
  125. "Peasant",
  126. "King",
  127. "Adventurer",
  128. "Warrior",
  129. "Knight",
  130. "Priest",
  131. "Thief",
  132. "Wizard",
  133. "Golem",
  134. "Copter",
  135. "Dwarf",
  136. "Marksman",
  137. "Warrior_Veteran",
  138. "Horseman",
  139. "Druid",
  140. "Journeyman",
  141. "Brute",
  142. "Drummer",
  143. "Bloon",
  144. "Midasman",
  145. "Digger",
  146. "BridgeSquad",
  147. "JungleWarrior",
  148. "Berserker",
  149. "Bandit",
  150. "MasterThief",
  151. "BlackKnight",
  152. "Vanguard",
  153. "HeavyArmor"
  154. ],
  155. "waves": [
  156. {
  157. "wave": 1,
  158. "replaceGeneratedWave": false, // If set to true, procedurally generated units are discarded for this wave.
  159. "appendToGeneratedWave": true, // If set to true, units here are spawned at the end of the procedurally generated wave.
  160. "spawn": [
  161. { "interval": 0.2, "types": [ "Dwarf" ], "typeInterval": 0.1, "count": 3, "routes": [ 0 ] },
  162. { "interval": 2.0, "types": [ "Warrior", "Peasant" ], "typeInterval": 1.0, "count": 3, "routes": [ 0, 1 ] }
  163. ]
  164. },
  165. {
  166. "wave": 2,
  167. "replaceGeneratedWave": true,
  168. "appendToGeneratedWave": false,
  169. "spawn": [
  170. { "interval": 1, "types": [ "Vanguard" ], "typeInterval": 0.1, "count": 3, "routes": [ 0 ] }
  171. ]
  172. }
  173. ]
  174. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement