Advertisement
DuckxSTUDIOS

Untitled

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