kelvinmg

Crazy Clicker

Nov 25th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.09 KB | None | 0 0
  1. Let's make a game!
  2. name:Bunny Clicker
  3. by:Orteil
  4. desc:This is a simple idle game to showcase some of the basic functionalities of Idle Game Maker.<//>Make bunnies and shoot for the stars!
  5. created:25/7/2017
  6. updated:24/10/2017
  7. version:1
  8.  
  9. Settings
  10. background:stuff/meadow.jpg
  11. building cost increase:115%
  12. building cost refund:50%
  13. spritesheet:icons, 48 by 48, stuff/bunnyIcons.png
  14. stylesheet:stuff/bigBlue.css
  15.  
  16. Layout
  17. use default
  18.  
  19. Buttons
  20. *bunnyButton
  21. name:Make a bunny
  22. desc:Click this little bunny to get more bunnies!
  23. on click:anim icon wobble
  24. on click:yield 1 bunny
  25. on click:if (have goldenTouch and chance(100%)) yield 100 goldenCarrot
  26. icon:stuff/bunny.png
  27. no text
  28. class:bigButton hasFlares
  29. icon class:shadowed
  30. tooltip origin:bottom
  31. tooltip class:red
  32.  
  33. Resources
  34. *bunny|bunnies
  35. name:Bunny|Bunnies
  36. desc:These are your bunnies. You can use them to purchase things. Your goal is to have as many bunnies as possible!
  37. icon:icons[0,0]
  38. class:noBackground
  39. show earned
  40.  
  41. *goldenCarrot|goldenCarrots
  42. name:Golden carrot|Golden carrots
  43. desc:These shiny carrots are terribly rare, terribly precious and terribly delicious!
  44. icon:icons[0,1]
  45. class:noBackground
  46. hidden when 0
  47.  
  48. Shinies
  49. *luckyBunny
  50. on click:log Woop
  51. movement:onRight moveLeft fade bounce:0.05
  52. frequency:20
  53. frequency variation:10
  54. icon:stuff/luckyBunny.png
  55. class:bigButton
  56. on click:
  57. $boost=100
  58. if (have clover) $boost=500
  59. if (chance(100%))
  60. //get at least 7, or between 1 and 3 minutes of our bunny production
  61. $amount=max(7,random(bunnies:ps*60*1,bunnies:ps*60*3))*$boost
  62. toast The lucky bunny grants you<//><b>[$amount] bunnies</b>.
  63. yield $amount bunnies
  64. else
  65. $amount=1*$boost
  66. toast The lucky bunny grants you<//><b>[$amount] golden carrot[s?$amount]</b>!
  67. yield $amount goldenCarrot
  68. end
  69. end
  70.  
  71. Buildings
  72. *TEMPLATE
  73. on click:anim glow
  74.  
  75. *snack|snacks
  76. name:Snack|Snacks
  77. desc:The Building of famous.<//:<b><.>Produces 1000 rabit every 10 seconds
  78. icon:icons[3,1]
  79. cost:1 bunnies
  80. on tick:yield 1000 bunnies
  81. unlocked
  82.  
  83. *cage|cages
  84. name:Rabbit cage|Rabbit cages
  85. desc:A tiny little cage.<//><b>Effect:</b><.>Produces 1 rabbit every 10 seconds.
  86. icon:icons[3,0]
  87. cost:15 bunnies
  88. on tick:yield 0.1 bunny
  89. unlocked
  90.  
  91. *hutch|hutches
  92. name:Rabbit hutch|Rabbit hutches
  93. desc:A bit roomier than a cage, with enough space to hop around.<//><b>Effect:</b><.>Produces 1 rabbit every 2 seconds.
  94. icon:icons[3,1]
  95. cost:100 bunnies
  96. on tick:yield 0.5 bunnies
  97. req:100 bunnies:earned
  98.  
  99. *coop|coops
  100. name:Rabbit coop|Rabbit coops
  101. desc:A much nicer rabbit home where full bunny families can live.<//><b>Effect:</b><.>Produces 5 rabbits per second.
  102. icon:icons[3,2]
  103. cost:600 bunnies
  104. on tick:yield 5 bunnies
  105. req:600 bunnies:earned
  106.  
  107. *pen|pens
  108. name:Rabbit pen|Rabbit pens
  109. desc:A lovely enclosure with plenty of green space.<//><b>Effect:</b><.>Produces 12 rabbits per second.
  110. icon:icons[3,3]
  111. cost:4000 bunnies
  112. on tick:yield 12 bunnies
  113. req:4000 bunnies:earned
  114.  
  115. *meadow|meadows
  116. name:Rabbit meadow|Rabbit meadows
  117. desc:A wide open space full of shade and lush grass.<//><b>Effect:</b><.>Produces 90 rabbits per second.
  118. icon:icons[3,4]
  119. cost:20000 bunnies
  120. on tick:yield 90 bunnies
  121. req:20000 bunnies:earned
  122.  
  123. *village|villages
  124. name:Rabbit village|Rabbit villages
  125. desc:Your bunnies are building their own villages now!<//><b>Effect:</b><.>Produces 300 rabbits per second.
  126. icon:icons[3,5]
  127. cost:200000 bunnies, 1 goldenCarrot
  128. on tick:yield 300 bunnies
  129. req:200000 bunnies:earned and independenceDay
  130.  
  131. *city|cities
  132. name:Rabbit city|Rabbit cities
  133. desc:A bustling little city, populated with busy rabbits.<//><b>Effect:</b><.>Produces 1000 rabbits per second.
  134. icon:icons[3,6]
  135. cost:3000000 bunnies, 4 goldenCarrots
  136. on tick:yield 1000 bunnies
  137. req:3000000 bunnies:earned and independenceDay
  138.  
  139. *citadel|citadels
  140. name:Moon citadel|Moon citadels
  141. desc:An ornate palace standing on the moon, ruled by bunny kings and queens and staffed with royal bunny guards.<//><b>Effect:</b><.>Produces 4000 rabbits per second.
  142. icon:icons[3,7]
  143. cost:70000000 bunnies, 16 goldenCarrots
  144. on tick:yield 4000 bunnies
  145. on tick:if (have moonGardens) yield 0.01 goldenCarrot
  146. req:70000000 bunnies:earned and independenceDay
  147.  
  148. *fortress
  149. name:Freedom fortress
  150. text:Freedom fortress ([this]%)
  151. desc:A huge bunny castle. A monument to the adventurous spirit of bunnykind, which will take time and effort to complete.<//><b>The fortress is [this]% complete.</b>
  152. icon:icons[3,8]
  153. cost:300000000 bunnies, 100 goldenCarrots
  154. req:70000000 bunnies:earned and independenceDay
  155. limit:100
  156. cost increase:105%
  157.  
  158. Upgrades
  159. *TEMPLATE
  160. on click:anim glow
  161.  
  162. //food upgrades
  163. //inspiration : http://rabbit.org/suggested-vegetables-and-fruits-for-a-rabbit-diet/
  164.  
  165. *parsley
  166. name:Parsley
  167. desc:A nice little supplement to your bunnies' diet.<//><b>Effect:</b><.>+1 bunny/click
  168. icon:icons[1,1]
  169. cost:100 bunnies
  170. passive:increase bunny yield of bunnyButton by 1
  171. req:10 bunnies:earned
  172.  
  173. *spinach
  174. name:Spinach
  175. desc:Big tasty leaves, perfect for hungry bunnies.<//><b>Effect:</b><.>+1 bunny/click
  176. icon:icons[1,2]
  177. cost:200 bunnies
  178. passive:increase bunny yield of bunnyButton by 1
  179. req:50 bunnies:earned
  180.  
  181. *lettuce
  182. name:Lettuce
  183. desc:Frilly greens loved by all bunnies.<//><b>Effect:</b><.>+1 bunny/click
  184. icon:icons[1,3]
  185. cost:400 bunnies
  186. passive:increase bunny yield of bunnyButton by 1
  187. req:200 bunnies:earned
  188.  
  189. *broccoli
  190. name:Broccoli
  191. desc:Crunchy greens that look like little trees.<//><b>Effect:</b><.>bunnies/click x2<.>bunny production +5%
  192. icon:icons[1,4]
  193. cost:3000 bunnies
  194. passive:multiply bunny yield of bunnyButton by 2
  195. passive:multiply yield of bunnies by 1.05
  196. req:1000 bunnies:earned
  197.  
  198. *apple
  199. name:Apple
  200. desc:Nice pieces of juicy red apples.<//><b>Effect:</b><.>bunnies/click x1.5<.>bunny production +5%
  201. icon:icons[1,5]
  202. cost:10000 bunnies
  203. passive:multiply bunny yield of bunnyButton by 1.5
  204. passive:multiply yield of bunnies by 1.05
  205. req:1000 bunnies:earned
  206.  
  207. *radish
  208. name:Radish
  209. desc:Purple, crunchy, and strangely spicy.<//><b>Effect:</b><.>bunnies/click x1.5<.>bunny production +5%
  210. icon:icons[1,6]
  211. cost:50000 bunnies
  212. passive:multiply bunny yield of bunnyButton by 1.5
  213. passive:multiply yield of bunnies by 1.05
  214. req:10000 bunnies:earned
  215.  
  216. *mint
  217. name:Mint
  218. desc:Tasty, and gives your bunnies a lovely breath.<//><b>Effect:</b><.>bunnies/click x1.5<.>bunny production +5%
  219. icon:icons[1,7]
  220. cost:100000 bunnies
  221. passive:multiply bunny yield of bunnyButton by 1.5
  222. passive:multiply yield of bunnies by 1.05
  223. req:50000 bunnies:earned
  224.  
  225. *chard
  226. name:Chard
  227. desc:Broad leaves that make for a tasty salad.<//><b>Effect:</b><.>bunnies/click x1.5<.>bunny production +5%
  228. icon:icons[1,8]
  229. cost:500000 bunnies
  230. passive:multiply bunny yield of bunnyButton by 1.5
  231. passive:multiply yield of bunnies by 1.05
  232. req:100000 bunnies:earned
  233.  
  234. *cherry
  235. name:Cherry
  236. desc:Your bunnies look like little vampires when they start munching on these!<//><b>Effect:</b><.>bunnies/click x1.5<.>bunny production +5%
  237. icon:icons[1,9]
  238. cost:1000000 bunnies
  239. passive:multiply bunny yield of bunnyButton by 1.5
  240. passive:multiply yield of bunnies by 1.05
  241. req:500000 bunnies:earned
  242.  
  243. *carrot
  244. name:Carrot
  245. desc:The quintessential rabbit food! Crunchy, orange, and perfect.<//><b>Effect:</b><.>bunnies/click x2<.>bunny production +10%
  246. icon:icons[1,0]
  247. cost:100000000 bunnies
  248. passive:multiply bunny yield of bunnyButton by 2
  249. passive:multiply yield of bunnies by 1.1
  250. req:1000000 bunnies:earned
  251.  
  252. //building upgrades
  253.  
  254. *buildingUpgrade1
  255. name:Sippy bottles
  256. desc:Your bunnies can drink their fill!<//><b>Effect:</b><.>rabbit cage production x2<.>rabbit hutch production x2<.>rabbit coop production x2
  257. icon:icons[2,0] icons[3,0]
  258. cost:1000 bunnies
  259. passive:multiply yield of cage by 2
  260. passive:multiply yield of hutch by 2
  261. passive:multiply yield of coop by 2
  262. req:(cages>=10 or hutches>=10 or coops>=10)
  263.  
  264. *buildingUpgrade2
  265. name:Prime grade hay
  266. desc:Not just for horses anymore!<//><b>Effect:</b><.>rabbit cage production x2<.>rabbit hutch production x2<.>rabbit coop production x2
  267. icon:icons[2,0] icons[3,1]
  268. cost:100000 bunnies
  269. passive:multiply yield of cage by 2
  270. passive:multiply yield of hutch by 2
  271. passive:multiply yield of coop by 2
  272. req:(cages>=50 or hutches>=50 or coops>=50)
  273.  
  274. *buildingUpgrade3
  275. name:Shredded newspapers
  276. desc:You'd think they just poop on these, but they really enjoy reading the Sunday comics.<//><b>Effect:</b><.>rabbit cage production x2<.>rabbit hutch production x2<.>rabbit coop production x2
  277. icon:icons[2,0] icons[3,2]
  278. cost:5000000 bunnies
  279. passive:multiply yield of cage by 2
  280. passive:multiply yield of hutch by 2
  281. passive:multiply yield of coop by 2
  282. req:(cages>=100 or hutches>=100 or coops>=100)
  283.  
  284. *buildingUpgrade4
  285. name:Pretty fences
  286. desc:Just the right size so your bunnies can peek through but not hop over!<//><b>Effect:</b><.>rabbit pen production x2<.>rabbit meadow production x2
  287. icon:icons[2,0] icons[3,3]
  288. cost:50000 bunnies
  289. passive:multiply yield of pen by 2
  290. passive:multiply yield of meadow by 2
  291. req:(pens>=10 or meadows>=10)
  292.  
  293. *buildingUpgrade5
  294. name:Bunny playground
  295. desc:If your bunnies are outside, they might as well get some exercise!<//><b>Effect:</b><.>rabbit pen production x2<.>rabbit meadow production x2
  296. icon:icons[2,0] icons[3,4]
  297. cost:5000000 bunnies
  298. passive:multiply yield of pen by 2
  299. passive:multiply yield of meadow by 2
  300. req:(pens>=50 or meadows>=50)
  301.  
  302. *buildingUpgrade6
  303. name:Bunny TVs
  304. desc:Televisions that broadcast bunny cartoons, bunny sitcoms, and bunny news bulletins.<//><b>Effect:</b><.>rabbit village production x2<.>rabbit city production x2
  305. icon:icons[2,0] icons[3,5]
  306. cost:1000000 bunnies
  307. passive:multiply yield of village by 2
  308. passive:multiply yield of city by 2
  309. req:(villages>=10 or cities>=10)
  310.  
  311. *buildingUpgrade7
  312. name:Wee little bunny cars
  313. desc:Your bunnies drive around in these. How nice!<//><b>Effect:</b><.>rabbit village production x2<.>rabbit city production x2
  314. icon:icons[2,0] icons[3,6]
  315. cost:500000000 bunnies
  316. passive:multiply yield of village by 2
  317. passive:multiply yield of city by 2
  318. req:(villages>=50 or cities>=50)
  319.  
  320. *buildingUpgrade8
  321. name:Soothing moon crystals
  322. desc:Just really nice to be around.<//><b>Effect:</b><.>moon citadel production x2
  323. icon:icons[2,0] icons[3,7]
  324. cost:1000000000 bunnies
  325. passive:multiply yield of citadel by 2
  326. req:10 citadels
  327.  
  328. //golden carrot upgrades
  329.  
  330. *goldenTouch
  331. name:Golden touch
  332. desc:The delicate art of finding vegetables made of precious metals.<//><b>Effect:</b><.>1% chance of gaining 1 golden carrot per bunny click
  333. icon:icons[2,5]
  334. cost:1 goldenCarrot
  335. req:1 goldenCarrot:earned
  336.  
  337. *rabbitHaste
  338. name:Rabbit's haste
  339. desc:I'm late! I'm late! For a very important date!<//><b>Effect:</b><.>lucky bunnies appear 30% more often
  340. icon:icons[2,6]
  341. passive:multiply frequency of luckyBunny by 0.7
  342. cost:5 goldenCarrots
  343. req:1 goldenCarrot:earned
  344.  
  345. *independenceDay
  346. name:Independence day
  347. desc:Your bunnies are making their first step towards declaring their independence from the oppressive shackles of pens and cages.<//><b>Effect:</b><.>unlocks new buildings
  348. icon:icons[2,7]
  349. cost:10 goldenCarrots
  350. req:5 goldenCarrots:earned
  351.  
  352. *clover
  353. name:Clover
  354. desc:A delicious herb that tastes lucky.<//><b>Effect:</b><.>lucky bunny effects are 4 times more powerful
  355. icon:icons[2,8]
  356. cost:100 goldenCarrots
  357. req:50 goldenCarrots:earned
  358.  
  359. *moonGardens
  360. name:Moon gardens
  361. desc:The royal botanists in your moon citadels have found new ways of cultivating plants in reduced gravity!<//><b>Effect:</b><.>moon citadels now produce 1 golden carrot every 100 seconds
  362. icon:icons[2,9]
  363. cost:100 goldenCarrots
  364. req:50 goldenCarrots:earned
  365.  
  366. Achievements
  367. *TEMPLATE
  368. on click:anim glow
  369.  
  370. *bunnyAchiev1
  371. name:Run rabbit run
  372. desc:Have <b>1</b> bunny.
  373. req:1 bunny
  374. icon:icons[2,4] icons[0,2] icons[0,6]
  375. *bunnyAchiev2
  376. name:Bunniest home videos
  377. desc:Have <b>1000</b> bunnies.
  378. req:1000 bunnies
  379. icon:icons[2,4] icons[0,3] icons[0,6]
  380. *bunnyAchiev3
  381. name:You got buns, hun
  382. desc:Have <b>1000000</b> bunnies.
  383. req:10000000 bunnies
  384. icon:icons[2,4] icons[0,4] icons[0,6]
  385.  
  386. *clickAchiev1
  387. name:That tickles
  388. desc:Click the bunny <b>10</b> times.
  389. req:10 bunnyButton clicks
  390. icon:icons[2,2] icons[0,2] icons[0,6]
  391. *clickAchiev2
  392. name:Don't squeeze me I'll fart
  393. desc:Click the bunny <b>100</b> times.
  394. req:100 bunnyButton clicks
  395. icon:icons[2,2] icons[0,3] icons[0,6]
  396. *clickAchiev3
  397. name:You're cruising for a bruising, dude
  398. desc:Click the bunny <b>2000</b> times.
  399. req:2000 bunnyButton clicks
  400. icon:icons[2,2] icons[0,4] icons[0,6]
  401.  
  402. *bunnyPsAchiev1
  403. name:Be vewy vewy quiet
  404. desc:Produce <b>10</b> bunnies per second.
  405. req:10 bunnies per second
  406. icon:icons[2,3] icons[0,2] icons[0,6]
  407. *bunnyPsAchiev2
  408. name:Hop and a skip
  409. desc:Produce <b>1000</b> bunnies per second.
  410. req:1000 bunnies per second
  411. icon:icons[2,3] icons[0,3] icons[0,6]
  412. *bunnyPsAchiev3
  413. name:Go forth and multiply
  414. desc:Produce <b>100000</b> bunnies per second.
  415. req:100000 bunnies per second
  416. icon:icons[2,3] icons[0,4] icons[0,6]
  417.  
  418. *carrotAchiev1
  419. name:Isn't it neat
  420. desc:Have <b>1</b> golden carrot.
  421. req:1 goldenCarrot
  422. icon:icons[0,1] icons[0,2]
  423. *carrotAchiev2
  424. name:All that glitters
  425. desc:Have <b>100</b> golden carrots.
  426. req:100 goldenCarrot
  427. icon:icons[0,1] icons[0,3]
  428. *carrotAchiev3
  429. name:Zero nutritional value
  430. desc:Have <b>1000</b> golden carrots.
  431. req:1000 goldenCarrot
  432. icon:icons[0,1] icons[0,4]
  433.  
  434. *fortressAchiev
  435. name:Freedom!
  436. desc:Complete building the <b>freedom fortress</b>.<//>This is it. You beat the game!
  437. req:100 fortress
  438. icon:icons[3,8] icons[0,4]
Add Comment
Please, Sign In to add comment