Simanalix343

Cookie Clicker in IGM v0.0518

May 17th, 2020
556
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.06 KB | None | 0 0
  1. /*
  2. Quick info!:
  3. >This game uses Idle Game Maker, a sort of game engine made by Orteil.<
  4. >Orteil holds proper rights to Idle Game Maker, and Cookie Clicker<
  5. >This is a recreation of Cookie Clicker, so Orteil holds rights to all ideas. Though, I, Simanalix did make the code for this (but not for the original Cookie Clicker)<
  6. >Have fun, and please play the game!<
  7.  
  8. Game ID:
  9. wcNMBLVW
  10. Game link:
  11. http://orteil.dashnet.org/igm/?g=wcNMBLVW
  12. Pastebin link:
  13. https://pastebin.com/wcNMBLVW
  14. */
  15. /* Side note here on a good description style:
  16. Basic statement<q>Flavor text</q>
  17. Important numbers and words are done <b>IN BOLD</b>.
  18. */
  19.  
  20.  
  21. Let's make a game!
  22. name:Cookie Clicker
  23. by:Orteil
  24. version:1
  25. desc:<b>NOTE: This is actually a recreation of Cookie Clicker in IGM</b></>Recreated by Simanalix343.<//>Cookie Clicker is a javascript game by Orteil<#3af>()</#> and Opti<#3af>()</#>.</>We have an official Discord<#3af>()</#>;if you're looking for help, you may also want to visit the subreddit<#3af></#> or the wiki<#3af>()</#>.</>News and teasers are usually posted on my tumblr<#3af>()</#> and twitter<#3af>()</#>.
  26.  
  27. Settings
  28. stylesheet:stuff/bigBlue.css
  29. cost increase:100%
  30. cost refund:50%
  31.  
  32.  
  33.  
  34. CSS
  35. //this will be a **pain** to do.
  36.  
  37.  
  38.  
  39. Layout
  40. *main
  41. contains:res, tag:moneyButton
  42. *res
  43. contains:tag:mainResource
  44. class:fullWidth
  45. *buttons
  46. contains:Buttons
  47. *store
  48. contains:buildings, upgrades
  49. *buildings
  50. contains:tag:buildingButton
  51. header:Buildings
  52. tooltip origin:left
  53. *upgrades
  54. contains:Upgrades
  55. header:Upgrades
  56. costs:hide
  57. names:hide
  58.  
  59.  
  60.  
  61. Resources
  62. *TEMPLATE
  63. always hidden
  64. no text
  65. *CostReduction
  66. start with:1
  67. *CPC
  68. start with:1
  69. *CookiesClicked
  70. *CursorCPS
  71. start with:0.1
  72. *CursorCost
  73. start with:15
  74. *CookiesbyCursor
  75. *unlockCursor
  76. *buildingCount
  77. *upgradeCount
  78. *achievementCount
  79. *TEMPLATE
  80. *Cookie|Cookies|cookie|cookies
  81. tag:mainResource
  82. name:Cookie|Cookies
  83. no tooltip
  84. icon:
  85. *TEMPLATE
  86. tag:Prestigious
  87. *HeavenlyChip|HeavenlyChips
  88. *Prestige
  89. Buttons
  90. *BigCookie
  91. icon:
  92. on click:
  93. yield CPC Cookies
  94. yield CPC CookiesClicked
  95. end
  96. class:bigButton hasFlares
  97. //tags:moneyButton
  98. *TEMPLATE
  99. tag:buildingButton
  100. on click:
  101. anim glow
  102. end
  103. *Cursor
  104. tag:clickitty
  105. text:Cursor <#[?Cookies>=CursorCost|190|b01]>[CursorCost]</#> Cookies
  106. name:Cursor|Cursors
  107. desc:(owned:[CursorCount])<//>Autoclicks once every 10 seconds.<//><.>Each cursor produces [CursorCPS] cookies per second<.>[CursorCount] cursors producing [CursorCPS*CursorCount] cookies per second ([CursorCPS*CursorCount/Cookies:ps*100]% of total CpS)<.>[CookiesbyCursor] cookies clicked so far.
  108. on click:
  109. if (cookies>=CursorCost)
  110. yield 1 CursorCount
  111. lose CursorCost Cookies
  112. yield CursorCost*0.15 CursorCost
  113. end
  114. end
  115. Buildings
  116. *TEMPLATE
  117. on earn:yield 1/this buildingCount
  118. always hidden
  119. *CursorCount
  120. tags:clicker
  121. on tick:
  122. yield CursorCPS Cookies
  123. yield CursorCPS CookiesbyCursor
  124. end
  125. Upgrades
  126. *TEMPLATE
  127. always hidden
  128. start with
  129. *DefaultStats
  130. *TEMPLATE
  131. on click:anim glow
  132. on earn:yield upgradeCount
  133. *U1|CursorU1
  134. name:Reinforced index finger
  135. desc:The mouse and Cursor are <b>twice</b> as efficient.<q>prod prod</q>
  136. req:1 Cookie
  137. cost:10 Cookies
  138. on earn:yield CursorCPS CursorCPS
  139. icon:
  140.  
  141.  
  142.  
  143. Achievements
  144. *A1
  145. name:Wake and bake
  146. desc:Bake <b>1</b> cookie in one ascension.<q></q>
  147. req:(Cookies:earned)>=1
  148. icon:
  149.  
  150.  
  151. Shinies
  152. *GoldenCookie
  153. icon:
  154. on click:
  155. $Dumnum1=Cookies*0.15
  156. $Dumnum2=Cookies:ps*1200
  157. $Dumnum3=min($Dumnum1,$Dumnum2)
  158. $Dumnum1=min(7,$Dumnum3)
  159. yield $Dumnum Cookies
  160. end
  161. frequency:300
  162. frequency variation:600
  163. movement:growShrink fade wiggle anywhere
  164. class:hasFlares
Add Comment
Please, Sign In to add comment