Advertisement
Guest User

Bunny Clicker

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