Gamers_Party

Rat tapper

Apr 17th, 2020
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.40 KB | None | 0 0
  1. Let's make a game!
  2. name:Rat Clicker
  3. by:Gamers_Party
  4. desc:This is a simple idle game to showcase some of the basic functionalities of Idle Game Maker.<//>Make rats 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 rat
  22. desc:Click this little rat to get more rats!
  23. on click:anim icon wobble
  24. on click:yield 1 rat
  25. on click:if (have goldenTouch and chance(1%)) yield 1 goldenCarrot
  26. icon:https://www58.online-convert.com/dl/web7/download-file/ffb6a974-c8fd-4c7d-957c-692e3ffd0154/341853C1-B12F-43C6-AD0A-F52C9B344E14.jpg
  27. no text
  28. class:bigButton hasFlares
  29. icon class:shadowed
  30. tooltip origin:bottom
  31. tooltip class:red
  32.  
  33. Resources
  34. *rat|rats
  35. name:Rat|Rats
  36. desc:These are your rats. You can sell them to purchase better rat things. Your goal is to have as many rats as possible! The big rat has to say something: SSSSSQUUUUEEEEAAAAKKKKKK! SSSQQQQQUUUEEEEAAAAAKKKK! SSSSSQUUUUEEEEAAAAKKKKKK! SSSQQQQQUUUEEEEAAAAAKKKK! Translation to English: Oh, and Gamers_Party has had pet rats. Four have died and now he has three rats left.
  37. icon:
  38. class:noBackground
  39. show earned
  40.  
  41. *goldenCarrot|goldenCarrots
  42. name:Golden carrot|Golden carrots
  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
  49. *ratGod
  50. on click:log Woop
  51. movement:onRight moveLeft fade bounce:0.05
  52. frequency:60
  53. frequency variation:30
  54. icon:https://www58.online-convert.com/dl/web7/download-file/ffb6a974-c8fd-4c7d-957c-692e3ffd0154/341853C1-B12F-43C6-AD0A-F52C9B344E14.jpg
  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 rat production
  61. $amount=max(7,random(rats:ps*60*1,rats:ps*60*3))*$boost
  62. toast The rat god grants you<//><b>[$amount] rats</b>.
  63. yield $amount rats
  64. else
  65. $amount=1*$boost
  66. toast The rat god grants you<//><b>[$amount] golden carrot[s?$amount]</b>!
  67. yield $amount goldenCarrot
  68. end
  69. end
  70.  
  71. *ratGodess
  72. on click:log Woop
  73. movement:onLeft moveRight fade bounce:0.05
  74. frequency:120
  75. frequency variation:30
  76. icon:https://www58.online-convert.com/dl/web7/download-file/ffb6a974-c8fd-4c7d-957c-692e3ffd0154/341853C1-B12F-43C6-AD0A-F52C9B344E14.jpg
  77. class:bigButton
  78. on click:
  79. $boost=1
  80. if (have clover) $boost=16
  81. if (chance(25%))
  82. //get at least 7, or between 1 and 3 minutes of our rat production
  83. $amount=max(7,random(rats:ps*60*1,rats:ps*60*3))*$boost
  84. toast The rat godess grants you<//><b>[$amount] rats</b>.
  85. yield $amount rats
  86. else
  87. if (have clover)
  88. $amount=20*$boost
  89. toast The rat godess grants you<//><b>[$amount] golden carrot[s?$amount]</b>!
  90. yield $amount goldenCarrot
  91. else
  92. $amount=1*$boost
  93. toast The rat godess grants you<//><b>[$amount] golden carrot[s?$amount]</b>!
  94. yield $amount goldenCarrot
  95. end
  96. end
  97. end
  98.  
  99. Buildings
  100. *TEMPLATE
  101. on click:anim glow
  102.  
  103. *cage|cages
  104. name:Rat cage|Rat cages
  105. desc:A tiny little cage.<//><b>Effect:</b><.>Produces 1 rat every 10 seconds.
  106. icon:icons[3,0]
  107. cost:15 rat
  108. on tick:yield 0.1 rats
  109. unlocked
  110.  
  111. *hutch|hutches
  112. name:Rat hutch|Rat hutches
  113. desc:A bit roomier than a cage, with enough space to run around.<//><b>Effect:</b><.>Produces 1 rat every 2 seconds.
  114. icon:icons[3,1]
  115. cost:100 rats
  116. on tick:yield 0.5 rats
  117. req:100 rats:earned
  118.  
  119. *coop|coops
  120. name:Rat coop|Rat coops
  121. desc:A much nicer rat home where full rat families can live.<//><b>Effect:</b><.>Produces 5 rat per second.
  122. icon:icons[3,2]
  123. cost:600 rats
  124. on tick:yield 5 rats
  125. req:600 rats:earned
  126.  
  127. *pen|pens
  128. name:Rat pen|Rat pens
  129. desc:A lovely enclosure with plenty of dark spaces to sleep in.<//><b>Effect:</b><.>Produces 12 rats per second.
  130. icon:icons[3,3]
  131. cost:4000 rats
  132. on tick:yield 12 rats
  133. req:4000 rats:earned
  134.  
  135. *meadow|meadows
  136. name:Rat meadow|Rat meadows
  137. desc:A wide open space full of shade and yummy food.<//><b>Effect:</b><.>Produces 90 rats per second.
  138. icon:icons[3,4]
  139. cost:20000 rats
  140. on tick:yield 90 rats
  141. req:20000 rats:earned
  142.  
  143. *village|villages
  144. name:Rat village|Rat villages
  145. desc:Your rats are building their own villages now!<//><b>Effect:</b><.>Produces 300 rats per second.
  146. icon:icons[3,5]
  147. cost:200000 rats, 1 goldenCarrot
  148. on tick:yield 300 rats
  149. req:200000 rats:earned and independenceDay
  150.  
  151. *city|cities
  152. name:Rat city|Rat cities
  153. desc:A bustling little city, populated with busy rats.<//><b>Effect:</b><.>Produces 1000 rats per second.
  154. icon:icons[3,6]
  155. cost:3000000 rats, 4 goldenCarrots
  156. on tick:yield 1000 rats
  157. req:3000000 rats:earned and independenceDay
  158.  
  159. *citadel|citadels
  160. name:Moon citadel|Moon citadels
  161. desc:An ornate palace standing on the moon, ruled by rat kings and queens and staffed with royal rat guards.<//><b>Effect:</b><.>Produces 4000 rats per second.
  162. icon:icons[3,7]
  163. cost:70000000 rats, 16 goldenCarrots
  164. on tick:yield 4000 rats
  165. on tick:if (have moonGardens) yield 0.01 goldenCarrot
  166. req:70000000 rats:earned and independenceDay
  167.  
  168. *fortress
  169. name:Freedom fortress
  170. text:Freedom fortress ([this]%)
  171. desc:A huge rat castle. A monument to the adventurous spirit of ratkind, which will take time and effort to complete.<//><b>The fortress is [this]% complete.</b>
  172. icon:icons[3,8]
  173. cost:300000000 rats, 100 goldenCarrots
  174. req:70000000 rats: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.  
  184. *parsley
  185. name:Grapes
  186. desc:Little round balls that are fun to eat and fun to play with!<//><b>Effect:</b><.>+1 rat/click
  187. icon:icons[1,1]
  188. cost:100 rats
  189. passive:increase rat yield of bunnyButton by 1
  190. req:10 rats:earned
  191.  
  192. *spinach
  193. name:Bananas
  194. desc:Round yellow foods that are nice in summer.<//><b>Effect:</b><.>+1 rat/click
  195. icon:icons[1,2]
  196. cost:200 rats
  197. passive:increase rat yield of bunnyButton by 1
  198. req:50 rats:earned
  199.  
  200. *lettuce
  201. name:Lettuce
  202. desc:Frilly greens loved by all rats.<//><b>Effect:</b><.>+1 rat/click
  203. icon:icons[1,3]
  204. cost:400 rats
  205. passive:increase rat yield of bunnyButton by 1
  206. req:200 rats:earned
  207.  
  208. *broccoli
  209. name:Yogurt
  210. desc:White liquid that is cold and perfect in summer.<//><b>Effect:</b><.>bunnies/click x2<.>rat production +5%
  211. icon:icons[1,4]
  212. cost:3000 rats
  213. passive:multiply rat yield of bunnyButton by 2
  214. passive:multiply yield of rats by 1.05
  215. req:1000 rats:earned
  216.  
  217. *apple
  218. name:Apple
  219. desc:Nice pieces of juicy red apples.<//><b>Effect:</b><.>rats/click x1.5<.>rat production +5%
  220. icon:icons[1,5]
  221. cost:10000 rats
  222. passive:multiply rat yield of bunnyButton by 1.5
  223. passive:multiply yield of rats by 1.05
  224. req:1000 rats:earned
  225.  
  226. *radish
  227. name:Broccoli
  228. desc:Crunchy greens that look like little trees. Aaaaahhhh! Giant rats.<//><b>Effect:</b><.>rats/click x1.5<.>rat production +5%
  229. icon:icons[1,6]
  230. cost:50000 rats
  231. passive:multiply rat yield of bunnyButton by 1.5
  232. passive:multiply yield of rats by 1.05
  233. req:10000 rats:earned
  234.  
  235. *mint
  236. name:Peas
  237. desc:Round green balls that are fun to share.<//><b>Effect:</b><.>rats/click x1.5<.>rat production +5%
  238. icon:icons[1,7]
  239. cost:100000 rats
  240. passive:multiply rat yield of bunnyButton by 1.5
  241. passive:multiply yield of rats by 1.05
  242. req:50000 rats:earned
  243.  
  244. *chard
  245. name:Parsley
  246. desc:Good for a rat. And also tasty.<//><b>Effect:</b><.>rats/click x1.5<.>rat production +5%
  247. icon:icons[1,8]
  248. cost:500000 rats
  249. passive:multiply rat yield of bunnyButton by 1.5
  250. passive:multiply yield of rats by 1.05
  251. req:100000 rats:earned
  252.  
  253. *cherry
  254. name:Cherries
  255. desc:Your rats look like vampires when they eat some!<//><b>Effect:</b><.>rats/click x1.5<.>rat production +5%
  256. icon:icons[1,9]
  257. cost:1000000 rats
  258. passive:multiply rat yield of bunnyButton by 1.5
  259. passive:multiply yield of rats by 1.05
  260. req:500000 rats:earned
  261.  
  262. *carrot
  263. name:Chicken bones
  264. desc:Round greens that you can eat.<//><b>Effect:</b><.>rats/click x2<.>rat production +10%
  265. icon:icons[1,0]
  266. cost:100000000 rats
  267. passive:multiply rat yield of bunnyButton by 2
  268. passive:multiply yield of rats by 1.1
  269. req:1000000 rats:earned
  270.  
  271. //building upgrades
  272.  
  273. *buildingUpgrade1
  274. name:Sippy bottles
  275. desc:Your rats can drink their fill!<//><b>Effect:</b><.>cage production x2<.>hutch production x2<.>coop production x2
  276. icon:icons[2,0] icons[3,0]
  277. cost:1000 rats
  278. passive:multiply yield of cage by 2
  279. passive:multiply yield of hutch by 2
  280. passive:multiply yield of coop by 2
  281. req:(cages>=10 or hutches>=10 or coops>=10)
  282.  
  283. *buildingUpgrade2
  284. name:Prime grade hey
  285. desc:Not just for horses anymore!<//><b>Effect:</b><.>cage production x2<.>hutch production x2<.>coop production x2
  286. icon:icons[2,0] icons[3,1]
  287. cost:100000 rats
  288. passive:multiply yield of cage by 2
  289. passive:multiply yield of hutch by 2
  290. passive:multiply yield of coop by 2
  291. req:(cages>=50 or hutches>=50 or coops>=50)
  292.  
  293. *buildingUpgrade3
  294. name:Shredded newspapers
  295. desc:You'd think they just rip these up, but really they enjoy reading the Sunday comics.<//><b>Effect:</b><.>cage production x2<.>hutch production x2<.>coop production x2
  296. icon:icons[2,0] icons[3,2]
  297. cost:5000000 rats
  298. passive:multiply yield of cage by 2
  299. passive:multiply yield of hutch by 2
  300. passive:multiply yield of coop by 2
  301. req:(cages>=100 or hutches>=100 or coops>=100)
  302.  
  303. *buildingUpgrade4
  304. name:Pretty fences
  305. desc:Just the right size so your rats can peek through but not jump over!<//><b>Effect:</b><.>pen production x2<.>meadow production x2
  306. icon:icons[2,0] icons[3,3]
  307. cost:50000 rats
  308. passive:multiply yield of pen by 2
  309. passive:multiply yield of meadow by 2
  310. req:(pens>=10 or meadows>=10)
  311.  
  312. *buildingUpgrade5
  313. name:Rat playground
  314. desc:If your rats are outside, they might as well get some exercise!<//><b>Effect:</b><.>pen production x2<.>meadow production x2
  315. icon:icons[2,0] icons[3,4]
  316. cost:5000000 rats
  317. passive:multiply yield of pen by 2
  318. passive:multiply yield of meadow by 2
  319. req:(pens>=50 or meadows>=50)
  320.  
  321. *buildingUpgrade6
  322. name:Rat TVs
  323. desc:Televisions that broadcast rat cartoons, rat sitcoms, and rat news bulletins.<//><b>Effect:</b><.>village production x2<.>city production x2
  324. icon:icons[2,0] icons[3,5]
  325. cost:1000000 rats
  326. passive:multiply yield of village by 2
  327. passive:multiply yield of city by 2
  328. req:(villages>=10 or cities>=10)
  329.  
  330. *buildingUpgrade7
  331. name:Wee little rat cars
  332. desc:Your rats drive around in these. How cute!<//><b>Effect:</b><.>village production x2<.>city production x2
  333. icon:icons[2,0] icons[3,6]
  334. cost:500000000 rats
  335. passive:multiply yield of village by 2
  336. passive:multiply yield of city by 2
  337. req:(villages>=50 or cities>=50)
  338.  
  339. *buildingUpgrade8
  340. name:Soothing moon crystals
  341. desc:Just really nice to be around.<//><b>Effect:</b><.>moon citadel production x2
  342. icon:icons[2,0] icons[3,7]
  343. cost:1000000000 rats
  344. passive:multiply yield of citadel by 2
  345. req:10 citadels
  346.  
  347. //golden carrot upgrades
  348.  
  349. *goldenTouch
  350. name:Golden touch
  351. desc:The delicate art of finding treats.<//><b>Effect:</b><.>1% chance of gaining 1 golden carrot per rat click
  352. icon:icons[2,5]
  353. cost:1 goldenCarrot
  354. req:1 goldenCarrot:earned
  355.  
  356. *rabbitHaste
  357. name:Rat's haste
  358. desc:I'm late! I'm late! For a very important date!<//><b>Effect:</b><.>rat gods appear 30% more often
  359. icon:icons[2,6]
  360. passive:multiply frequency of ratGod by 0.7
  361. cost:5 goldenCarrots
  362. req:1 goldenCarrot:earned
  363.  
  364. *rabbitHastes
  365. name:Rat's haste
  366. desc:I'm late! I'm late! For a very important date!<//><b>Effect:</b><.>rat god appear 30% more often
  367. icon:icons[2,6]
  368. passive:multiply frequency of ratGod by 1
  369. cost:5 goldenCarrots
  370. req:1 goldenCarrot:earned
  371.  
  372. *rabbitHastess
  373. name:Rat's haste again
  374. desc:I'm late! I'm late! For a very important date again<//><b>Effect:</b><.>rat godesses appear 30% more often
  375. icon:icons[2,6]
  376. passive:multiply frequency of ratGodess by 0.7
  377. cost:5 goldenCarrots
  378. req:1 goldenCarrot:earned
  379.  
  380. *rabbitHastesses
  381. name:Rat's haste again
  382. desc:I'm late! I'm late! For a very important date again<//><b>Effect:</b><.>rat godesses appear 30% more often
  383. icon:icons[2,6]
  384. passive:multiply frequency of ratGodess by 1
  385. cost:5 goldenCarrots
  386. req:1 goldenCarrot:earned
  387.  
  388. *independenceDay
  389. name:Independence day
  390. desc:Your rats are making their first step towards declaring their independence from the oppressive shackles of pens and cages.<//><b>Effect:</b><.>unlocks new buildings
  391. icon:icons[2,7]
  392. cost:10 goldenCarrots
  393. req:5 goldenCarrots:earned
  394.  
  395. *clover
  396. name:Clover
  397. desc:A delicious treat that tastes lucky.<//><b>Effect:</b><.>rat god effects are 4 times more powerful
  398. icon:icons[2,8]
  399. cost:100 goldenCarrots
  400. req:50 goldenCarrots:earned
  401.  
  402. *moonGardens
  403. name:Moon gardens
  404. 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
  405. icon:icons[2,9]
  406. cost:100 goldenCarrots
  407. req:50 goldenCarrots:earned
  408.  
  409. Achievements
  410. *TEMPLATE
  411. on click:anim glow
  412.  
  413. *bunnyAchiev1
  414. name:Run rat run
  415. desc:Have <b>1</b> rat.
  416. req:1 rat
  417. icon:icons[2,4] icons[0,2] icons[0,6]
  418. *bunnyAchiev2
  419. name:Funniest home videos
  420. desc:Have <b>1000</b> rats.
  421. req:1000 rats
  422. icon:icons[2,4] icons[0,3] icons[0,6]
  423. *bunnyAchiev3
  424. name:You got buns, hun
  425. desc:Have <b>1000000</b> rats.
  426. req:10000000 rats
  427. icon:icons[2,4] icons[0,4] icons[0,6]
  428.  
  429. *clickAchiev1
  430. name:That tickles!
  431. desc:Click the rat <b>10</b> times.
  432. req:10 bunnyButton clicks
  433. icon:icons[2,2] icons[0,2] icons[0,6]
  434. *clickAchiev2
  435. name:Don't squeeze me I'll poo and wee on you
  436. desc:Click the rat <b>100</b> times.
  437. req:100 bunnyButton clicks
  438. icon:icons[2,2] icons[0,3] icons[0,6]
  439. *clickAchiev3
  440. name:You're cruising for a bruising, dude
  441. desc:Click the rat <b>2000</b> times.
  442. req:2000 bunnyButton clicks
  443. icon:icons[2,2] icons[0,4] icons[0,6]
  444.  
  445. *bunnyPsAchiev1
  446. name:Be vewy vewy quiet
  447. desc:Produce <b>10</b> rats per second.
  448. req:10 rats per second
  449. icon:icons[2,3] icons[0,2] icons[0,6]
  450. *bunnyPsAchiev2
  451. name:Hop and a skip
  452. desc:Produce <b>1000</b> rats per second.
  453. req:1000 rats per second
  454. icon:icons[2,3] icons[0,3] icons[0,6]
  455. *bunnyPsAchiev3
  456. name:Go forth and multiply
  457. desc:Produce <b>100000</b> rats per second.
  458. req:100000 rats per second
  459. icon:icons[2,3] icons[0,4] icons[0,6]
  460.  
  461. *carrotAchiev1
  462. name:Isn't it neat
  463. desc:Have <b>1</b> golden carrot.
  464. req:1 goldenCarrot
  465. icon:icons[0,1] icons[0,2]
  466. *carrotAchiev2
  467. name:All that glitters
  468. desc:Have <b>100</b> golden carrots.
  469. req:100 goldenCarrot
  470. icon:icons[0,1] icons[0,3]
  471. *carrotAchiev3
  472. name:Zero nutritional value
  473. desc:Have <b>1000</b> golden carrots.
  474. req:1000 goldenCarrot
  475. icon:icons[0,1] icons[0,4]
  476.  
  477. *fortressAchiev
  478. name:And the #1 pet award of all time goes to...
  479. desc:Complete building the <b>Freedom fortress</b>.<//>This is it. You beat the game!
  480. req:100 fortress
  481. icon:icons[3,8] icons[0,4]
Add Comment
Please, Sign In to add comment