Advertisement
minghinshi

Untitled

Nov 18th, 2019
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.53 KB | None | 0 0
  1. Let's make a game!
  2. created: 19/11/2019
  3. version: 1.0.0
  4.  
  5. Settings
  6. building cost increase: 100%
  7. building cost refund: 100%
  8.  
  9. Layout
  10. *main
  11. contains:res, buttons
  12. *res
  13. contains:Resources
  14. class:fullWidth
  15. *buttons
  16. contains:Buttons
  17. *store
  18. contains:buildings, upgrades
  19. *buildings
  20. contains:Buildings
  21. header:Tasks and Buildings
  22. tooltip origin:left
  23. costs:hide
  24. *upgrades
  25. contains:Upgrades
  26. header:Upgrades
  27. costs:hide
  28. names:hide
  29.  
  30. CSS
  31. #game{
  32. background:rgba(127,127,127,1);
  33. }
  34. .autoMiners
  35. {
  36. background:rgba(127,127,255,1);
  37. }
  38. .autoMiners:hover{
  39. background:rgba(191,191,255,1);
  40. }
  41.  
  42.  
  43. Buttons
  44. *IronMine
  45. name:Mine For Iron Here!
  46. desc:Click to mine some stone and iron ([chanceOfIron]% chance). Multiplier: [clickPower*100]%
  47. on click:
  48. if (chance(chanceOfIron%))
  49. yield 1*clickPower iron
  50. if (have task1) yield 1*clickPower task2iron
  51. end
  52. yield 1*clickPower stone
  53. yield 1*clickPower task1stone
  54. end
  55. class:bigButton
  56.  
  57. Resources
  58. *stone
  59. name:Stone
  60. desc:Unwanted stuff. Maybe.
  61.  
  62. *iron
  63. name:Iron
  64. desc:Every mining game has to start with this metal.
  65.  
  66. *task1stone
  67. name:Stone
  68. always hidden
  69.  
  70. *task2iron
  71. name:Iron
  72. always hidden
  73.  
  74. *task3miners
  75. name:Iron Miners
  76. always hidden
  77.  
  78. *chanceOfIron
  79. is always:1+task1*0.01
  80. always hidden
  81.  
  82. *clickPower
  83. is always:1+task2*0.01
  84. always hidden
  85.  
  86. Buildings
  87. *task1
  88. name:Your first task
  89. desc:Welcome to Generic Mining Game! Your first task is to gain 20 stone by clicking on the Iron Mine. Finish this to increase chance for iron by 0.01% and unlock the next task! All tasks can be completed infinite times.
  90. text:Obtain 20 stone. [task1stone]/20
  91. cost:20 task1stone
  92.  
  93. *task2
  94. name:The search for metals
  95. desc:Stone is not valuable enough, obviously. Extracting iron would be better. Reward: +1% resources per click.
  96. text:Obtain 1 iron. [task2iron]/1
  97. cost:1 task2iron
  98. req:task1
  99.  
  100. *task3
  101. name:Automation
  102. desc:Clicking is boring and outdated. How about some automation? Reward: x1.01 iron miner speed
  103. text:Build 10 iron miners. [task3miners]/10
  104. cost:10 task3miners
  105. on gain:multiply yield of ironMiner by 1.01
  106. req:task2
  107.  
  108. *ironMiner
  109. name:Iron Miner
  110. desc:Clicks on the iron mine for you. (This is a building! They have a blue background.)
  111. cost:1 iron
  112. cost increase:101%
  113. req:task2
  114. on tick:
  115. if (chance(chanceOfIron%))
  116. yield 0.1*clickPower iron
  117. if (have task1) yield 0.1*clickPower task2iron
  118. end
  119. yield 0.1*clickPower stone
  120. yield 0.1*clickPower task1stone
  121. end
  122. on gain:yield 1 task3miners
  123. class:autoMiners
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement