SHOW:
|
|
- or go back to the newest paste.
| 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 cent | |
| 25 | on click:yield 1 dollar | |
| 26 | ||
| 27 | icon:stuff/bunny.png | |
| 28 | no text | |
| 29 | class:bigButton hasFlares | |
| 30 | icon class:shadowed | |
| 31 | tooltip origin:bottom | |
| 32 | tooltip class:red | |
| 33 | ||
| 34 | Resources | |
| 35 | *cent|cents | |
| 36 | name:Cent|Cents | |
| 37 | desc:These are your bunnies. You can use them to purchase things. Your goal is to have as many bunnies as possible! | |
| 38 | icon:icons[0,0] | |
| 39 | class:noBackground | |
| 40 | show earned | |
| 41 | ||
| 42 | *dollar|dollars | |
| 43 | name:Dollar|Dollars | |
| 44 | desc:These shiny carrots are terribly rare, terribly precious and terribly delicious! | |
| 45 | icon:icons[0,0] | |
| 46 | class:noBackground | |
| 47 | hidden when 0 | |
| 48 | ||
| 49 | *popularity | |
| 50 | name:Popularity | |
| 51 | desc:These make you a lot of money! | |
| 52 | icon:icons[0,0] | |
| 53 | class:noBackground | |
| 54 | ||
| 55 | ||
| 56 | Shinies | |
| 57 | *lemonFrenzy | |
| 58 | on click:log Woop | |
| 59 | movement:onRight moveLeft fade bounce:0.05 | |
| 60 | frequency:60 | |
| 61 | frequency variation:30 | |
| 62 | icon:stuff/luckyBunny.png | |
| 63 | class:bigButton | |
| 64 | on click: | |
| 65 | $boost=1 | |
| 66 | ||
| 67 | if (chance(25%)) | |
| 68 | //get at least 7, or between 1 and 3 minutes of our dollar production | |
| 69 | $amount=max(7,random(cents:ps*60*1,cents:ps*60*3))*$boost | |
| 70 | toast The lucky bunny grants you<//><b>[$amount] dollars</b>. | |
| 71 | yield $amount dollars | |
| 72 | else | |
| 73 | $amount=1*$boost | |
| 74 | toast The lucky bunny grants you<//><b>[$amount] dollars[s?$amount]</b>! | |
| 75 | yield $amount dollars | |
| 76 | end | |
| 77 | end | |
| 78 | ||
| 79 | *britainLemon | |
| 80 | on click:log Woop | |
| 81 | movement:onRight moveLeft fade bounce:0.05 | |
| 82 | frequency:60 | |
| 83 | frequency variation:30 | |
| 84 | icon:stuff/luckyBunny.png | |
| 85 | class:bigButton | |
| 86 | on click: | |
| 87 | $boost=777 | |
| 88 | ||
| 89 | if (chance(0.01%)) | |
| 90 | //get at least 7, or between 10 and 30 minutes of our dollar production | |
| 91 | $amount=max(7,random(cents:ps*777*1,cents:ps*7777*3))*$boost | |
| 92 | toast The lucky lemon grants you<//><b>[$amount] dollars</b>. | |
| 93 | yield $amount dollars | |
| 94 | else | |
| 95 | $amount=777*$boost | |
| 96 | toast The lucky lemon grants you<//><b>[$amount] dollars[s?$amount]</b>! | |
| 97 | yield $amount dollars | |
| 98 | end | |
| 99 | end | |
| 100 | ||
| 101 | Buildings | |
| 102 | *TEMPLATE | |
| 103 | on click:anim glow | |
| 104 | ||
| 105 | *lemon|lemons | |
| 106 | name:Lemon|Lemons | |
| 107 | desc:A tiny little cage.<//><b>Effect:</b><.>Produces 1 rabbit every 10 seconds. | |
| 108 | icon:icons[3,0] | |
| 109 | cost:75 cents | |
| 110 | on tick:yield 0.1 dollar | |
| 111 | on tick:yield 10 cents | |
| 112 | unlocked | |
| 113 | ||
| 114 | *sugar|sugars | |
| 115 | name:Sugar|Sugars | |
| 116 | desc:A bit roomier than a cage, with enough space to hop around.<//><b>Effect:</b><.>Produces 1 rabbit every 2 seconds. | |
| 117 | icon:icons[3,1] | |
| 118 | cost:1 dollar | |
| 119 | on tick:yield 0.2 dollar | |
| 120 | on tick:yield 5 cents | |
| 121 | unlocked | |
| 122 | ||
| 123 | *ice|ices | |
| 124 | name:Ice|Ices | |
| 125 | desc:A much nicer rabbit home where full bunny families can live.<//><b>Effect:</b><.>Produces 5 rabbits per second. | |
| 126 | icon:icons[3,2] | |
| 127 | cost:30 cents | |
| 128 | on tick:yield 5 cents | |
| 129 | unlocked | |
| 130 | ||
| 131 | *cup|cups | |
| 132 | name:Cup|Cups | |
| 133 | desc:A lovely enclosure with plenty of green space.<//><b>Effect:</b><.>Produces 12 rabbits per second. | |
| 134 | icon:icons[3,3] | |
| 135 | cost:9 cents | |
| 136 | on tick:yield 0.5 cents | |
| 137 | unlocked | |
| 138 | ||
| 139 | *sellLemonade | |
| 140 | name:sellLemonade | |
| 141 | desc:A wide open space full of shade and lush grass.<//><b>Effect:</b><.>Produces 90 rabbits per second. | |
| 142 | icon:icons[3,4] | |
| 143 | cost:10 lemons | |
| 144 | cost:10 sugar | |
| 145 | cost:10 ice | |
| 146 | cost:20 cups | |
| 147 | - | on click:if (have price 1 dollars) yield 20 dollars |
| 147 | + | on click:yield 10 to 60 dollars |
| 148 | - | on click:if (have price 2 dollars) yield 40 dollars |
| 148 | + | |
| 149 | - | on click:if (have price 3 dollars) yield 60 dollars |
| 149 | + | on click:yield 5 to 121 popularity |
| 150 | - | on click:if (have price 1 dollars) yield 10 to 121 popularity |
| 150 | + | |
| 151 | - | on click:if (have price 2 dollars) yield 30 to 100 popularity |
| 151 | + | |
| 152 | - | on click:if (have price 3 dollars) yield 5 to 40 popularity |
| 152 | + | unlocked |