Advertisement
Carey__man

Untitled

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