View difference between Paste ID: mVrw0Eh3 and 1PZdGYLj
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 dollar
25
		
26
		icon:stuff/bunny.png
27
		no text
28
		class:bigButton hasFlares
29
		icon class:shadowed
30
		tooltip origin:bottom
31
		tooltip class:red
32
		
33
Resources
34
	*dollar|dollars
35
		name:Dollar|Dollars
36
		desc:These are your bunnies. You can use them to purchase things. Your goal is to have as many bunnies as possible!
37
		icon:icons[0,0]
38
		class:noBackground
39
		show earned
40
		
41
	*gold|golds
42
		name:Gold|Golds
43
		desc:These shiny carrots are terribly rare, terribly precious and terribly delicious!
44
		icon:icons[0,1]
45
		class:noBackground
46
		hidden when 0
47
		
48-
Shinies
48+
49-
	*luckyBunny
49+
50-
		on click:log Woop
50+
51-
		movement:onRight moveLeft fade bounce:0.05
51+
52-
		frequency:60
52+
53-
		frequency variation:30
53+
54-
		icon:stuff/luckyBunny.png
54+
55-
		class:bigButton
55+
56-
		on click:
56+
57-
			$boost=1
57+
58-
			if (have clover) $boost=4
58+
59-
			if (chance(25%))
59+
60-
				//get at least 7, or between 1 and 3 minutes of our bunny production
60+
61-
				$amount=max(7,random(bunnies:ps*60*1,bunnies:ps*60*3))*$boost
61+
62-
				toast The lucky bunny grants you<//><b>[$amount] bunnies</b>.
62+
63-
				yield $amount bunnies
63+
64-
			else
64+
65-
				$amount=1*$boost
65+
66-
				toast The lucky bunny grants you<//><b>[$amount] golden carrot[s?$amount]</b>!
66+
67-
				yield $amount goldenCarrot
67+
68-
			end
68+
69-
		end
69+
70
	*coop|coops
71
		name:Rabbit coop|Rabbit coops
72
		desc:A much nicer rabbit home where full bunny families can live.<//><b>Effect:</b><.>Produces 20 dollars per second.
73
		icon:icons[3,2]
74
		cost:300 dollars
75
		on tick:yield 20 dollars
76
		req:300 dollars:earned
77
	
78
	*pen|pens
79
		name:Rabbit pen|Rabbit pens
80
		desc:A lovely enclosure with plenty of green space.<//><b>Effect:</b><.>Produces 120 dollars per second.
81
		icon:icons[3,3]
82
		cost:4000 dollars
83
		on tick:yield 120 dollars
84
		req:4000 dollars:earned
85
	
86
	*meadow|meadows
87
		name:Rabbit meadow|Rabbit meadows
88
		desc:A wide open space full of shade and lush grass.<//><b>Effect:</b><.>Produces 900 dollars per second.
89
		icon:icons[3,4]
90
		cost:20000 dollars
91
		on tick:yield 900 dollars
92
		req:20000 dollars:earned
93
	
94
	*village|villages
95
		name:Rabbit village|Rabbit villages
96
		desc:Your bunnies are building their own villages now!<//><b>Effect:</b><.>Produces 3000 dollars per second.
97
		icon:icons[3,5]
98
		cost:200000 dollars
99
		on tick:yield 3000 dollars
100
		req:200000 dollars:earned 
101
		
102
	*city|cities
103
		name:Rabbit city|Rabbit cities
104
		desc:A bustling little city, populated with busy rabbits.<//><b>Effect:</b><.>Produces 10000 dollars per second.
105
		icon:icons[3,6]
106
		cost:3000000 dollars
107
		on tick:yield 10000 dollars
108
		req:3000000 dollars:earned
109
		
110
	*citadel|citadels
111
		name:Moon citadel|Moon citadels
112
		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.
113
		icon:icons[3,7]
114
		cost:70000000 bunnies, 16 goldenCarrots
115
		on tick:yield 4000 bunnies
116
		on tick:if (have moonGardens) yield 0.01 goldenCarrot
117
		req:70000000 bunnies:earned
118
		
119
	
120
		
121
Upgrades
122
	*TEMPLATE
123
		on click:anim glow
124
	
125
	//food upgrades
126
	//inspiration : http://rabbit.org/suggested-vegetables-and-fruits-for-a-rabbit-diet/
127
	
128
	*parsley
129
		name:Parsley
130
		desc:A nice little supplement to your bunnies' diet.<//><b>Effect:</b><.>+1 dollar/click
131
		icon:icons[1,1]
132
		cost:10 dollars
133
		passive:increase dollar yield of bunnyButton by 1
134
		req:10 dollars:earned
135
		
136
	*spinach
137
		name:Spinach
138
		desc:Big tasty leaves, perfect for hungry bunnies.<//><b>Effect:</b><.>+10 dollars/click
139
		icon:icons[1,2]
140
		cost:200 dollars
141
		passive:increase dollar yield of bunnyButton by 10
142
		req:200 dollars:earned
143
		
144
	*lettuce
145
		name:Lettuce
146
		desc:Frilly greens loved by all bunnies.<//><b>Effect:</b><.>+100 dollars/click
147
		icon:icons[1,3]
148
		cost:1000 dollars 
149
		passive:increase bunny yield of bunnyButton by 100
150
		req:1000 dollars:earned
151
		
152
	*broccoli
153
		name:Broccoli
154
		desc:Crunchy greens that look like little trees.<//><b>Effect:</b><.>bunnies/click x2<.>dollar production +50%
155
		icon:icons[1,4]
156
		cost:3000 dollars
157
		passive:multiply bunny yield of bunnyButton by 2
158
		passive:multiply yield of dollars by 1.5
159
		req:3000 dollars:earned
160
		
161
	*apple
162
		name:Apple
163
		desc:Nice pieces of juicy red apples.<//><b>Effect:</b><.>dollars/click x10<.>dollar production +99%
164
		icon:icons[1,5]
165
		cost:10000 dollars
166
		passive:multiply dollar yield of bunnyButton by 10
167
		passive:multiply yield of dollars by 1.99
168
		req:10000 dollars:earned
169
		
170
	*radish
171
		name:Radish
172
		desc:Purple, crunchy, and strangely spicy.<//><b>Effect:</b><.>dollars/click x100<.>bunny production x3
173
		icon:icons[1,6]
174
		cost:500000 dollars
175
		passive:multiply dollar yield of bunnyButton by 100
176
		passive:multiply yield of dollars by 3
177
		req:500000 dollars:earned
178
		
179
180
		
181
	*carrot
182
		name:Carrot
183
		desc:The quintessential rabbit food! Crunchy, orange, and perfect.<//><b>Effect:</b><.>bunnies/click x200<.>bunny production +10%
184
		icon:icons[1,0]
185
		cost:100000000 dollars
186
		passive:multiply dollar yield of bunnyButton by 200
187
		passive:multiply yield of dollars by 1.1
188
		req:100000000 dollars:earned