Simanalix343

Experiment Hub

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