Advertisement
Carey__man

Untitled

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