Simanalix343

Stuff Clicker

May 31st, 2020
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.30 KB | None | 0 0
  1. /*
  2. Quick info!:
  3. >This game uses Idle Game Maker, a sort of game engine made by Orteil.<
  4. >This is my game and I, Simanalix, hold rights to it.<
  5. >Orteil holds proper rights to Idle Game Maker<
  6. >Have fun, and please play my game!<
  7. Game code:
  8. gafqNrjL
  9. Game link:
  10. http://orteil.dashnet.org/igm/?g=gafqNrjL
  11. Pastebin link:
  12. https://pastebin.com/gafqNrjL
  13. /* Side note here on a good description style:
  14. <b>Fact:</b></>Effect description<q>Flavor text/Fun description</q>
  15. */
  16. /*
  17. This is an easy to use template for you to make IGM games.
  18. Everything in comments, like this : / *comment* / or this : //comment is either tips, or something you can remove comments from and use in your game.
  19. Please erase the comment block this statement is in when you make your game.
  20. */
  21.  
  22.  
  23.  
  24. Let's make a game!
  25. name:Stuff Clicker
  26. by:Simanlix
  27. version:
  28. desc:This is a game to show you some things that can actually be done in IGM, even though they seem impossible. This is a pretty generic game, but it has lots of things in it!
  29. Settings
  30. cost increase:115%
  31. cost refund:1%
  32.  
  33.  
  34.  
  35. CSS
  36. .box
  37. {
  38. text-align:center;
  39. padding:0px;
  40. box-shadow:none;
  41. }
  42.  
  43. .thing,.box-header,.box-footer,.box-bit
  44. {
  45. background:#39f;
  46. box-shadow:0px 0px 4px rgba(0,0,0,0.2),1px 1px 2px rgba(0,0,0,0.5),0px 0px 4px rgba(255,255,255,0.5) inset;
  47. }
  48. .box-bit{border-radius:20px;}
  49.  
  50. .box-header
  51. {
  52. border-bottom-left-radius:20px;
  53. border-bottom-right-radius:20px;
  54. margin-bottom:4px;
  55. }
  56. .box-footer
  57. {
  58. border-top-left-radius:20px;
  59. border-top-right-radius:20px;
  60. margin-top:4px;
  61. }
  62.  
  63.  
  64. #box-buttons
  65. {
  66. left:0px;
  67. top:20%;
  68. bottom:0px;
  69. overflow:hidden;
  70. width:60%;
  71. position:absolute;
  72. }
  73. #box-res
  74. {
  75. left:0%;
  76. top:0%;
  77. right:40;
  78. bottom:80%;
  79. z-index:100;
  80. position:absolute;
  81. }
  82. #box-buildings
  83. {
  84. right:0px;
  85. top:0px;
  86. bottom:0px;
  87. width:40%;
  88. overflow-x:hidden;
  89. overflow-y:scroll
  90. position:absolute;
  91. }
  92.  
  93. #box-buildings{background:linear-gradient(to right,rgba(0,0,0,0) 0%,rgba(0,0,0,0.25) 20%);}
  94. #box-upgrades{background:rgba(0,0,0,0.3);}
  95.  
  96. #bulkDisplay{margin:-11px 24px 4px 24px;}
  97.  
  98.  
  99. .thing
  100. {
  101. display:inline-block;
  102. padding:0px;
  103. margin:2px;
  104. cursor:pointer;
  105. z-index:10;
  106. }
  107. .thing:hover,.thing.lit
  108. {
  109. background:#6cf;
  110. }
  111. .thing.cantAfford
  112. {
  113. opacity:0.65;
  114. }
  115. .upgrade{z-index:1;}
  116. .upgrade.cantAfford
  117. {
  118. box-shadow:0px 0px 4px #39f;
  119. border-radius:8px;
  120. }
  121. .upgrade.cantAfford:hover
  122. {
  123. box-shadow:0px 0px 4px #6cf;
  124. }
  125. .upgrade.owned,.achiev.owned
  126. {
  127. background:#6cf;
  128. }
  129. .thing-text,.thing-costs{font-weight:bold;}
  130.  
  131. .building
  132. {
  133. border-top-left-radius:20px;
  134. border-bottom-left-radius:20px;
  135. display:block;
  136. margin-right:0px;
  137. font-size:14px;
  138. }
  139.  
  140. .fullWidth
  141. {
  142. display:block;
  143. margin-left:0px;
  144. margin-right:0px;
  145. z-index:10;
  146. }
  147. #game .fullWidth
  148. {
  149. height:auto;
  150. min-height:auto;
  151. }
  152. .fullWidth,.fullWidth:hover
  153. {
  154. background:linear-gradient(to right,rgba(0,0,0,0) 0%,rgba(0,0,0,0.25) 50%,rgba(0,0,0,0) 100%);
  155. box-shadow:none;
  156. }
  157. .fullWidth:before,.fullWidth:after
  158. {
  159. content:'';
  160. height:1px;
  161. background:linear-gradient(to right,rgba(255,255,255,0) 0%,rgba(255,255,255,0.25) 50%,rgba(255,255,255,0) 100%);
  162. position:absolute;
  163. left:0px;
  164. right:0px;
  165. z-index:-1;
  166. }
  167. .fullWidth:before{top:-1px;}
  168. .fullWidth:after{bottom:-1px;}
  169.  
  170. .fullWidth .thing-icon
  171. {
  172. margin-top:-14px;
  173. margin-bottom:-14px;
  174. }
  175. .fullWidth .thing-text
  176. {
  177. margin-top:-4px;
  178. margin-bottom:-4px;
  179. }
  180.  
  181. #game.filtersOn .thing-icon{filter:drop-shadow(3px 3px 1px rgba(0,0,0,0.5));}
  182. #box-menubuttons
  183. {
  184. position:absolute;
  185. top:80%;
  186. left:0%;
  187. bottom:0%;
  188. right:40%;
  189. }
  190. .backgroundCLASS{position:absolute;top:0%;left:0%;bottom:0%;right:0%;border:none;border-radius:0px;padding:0px;}
  191. .background1CLASS{background:#6cf;}//log
  192. .background2CLASS{background:#fc6;}//upgrades
  193. .background3CLASS{background:#e38;}//achieves
  194. .background4CLASS{background:#8d2;}//others
  195. .thing.lit{z-index:11;}
  196. .thing.backgroundCLASS.lit{z-index:10;}
  197. .thing:not(.lit){z-index:-11:}
  198. .thing.backgroundCLASS:not(.lit){z-index:-12;}
  199. .background4CLASS{background:#8d2;z-index:1000000000000000000000000000000000000000}
  200. Layout
  201. *logbox
  202. contains:Log
  203. *buildings
  204. contains:Buildings, Upgrades, Achievements
  205. *res
  206. contains:Resources
  207. *buttons
  208. contains:tag:moneyButtonTAG
  209. *menubuttons
  210. contains:tag:menubuttonTAG
  211.  
  212. Resources
  213. //hidden resources
  214. *TEMPLATE
  215. always hidden
  216. tag:moneybystat
  217. *moneybyFoodStand
  218. *moneybyStore
  219. *moneybyTheater
  220. *moneybyRepairShop
  221. *moneybyBank
  222. *moneybyStudio
  223. *TEMPLATE
  224. always hidden
  225. *whichmenu
  226. *timestarted
  227. *FoodStandmoneyPS
  228. start with:1
  229. *StoremoneyPS
  230. start with:8
  231. *TheatermoneyPS
  232. start with:64
  233. *RepairShopmoneyPS
  234. start with:510
  235. *BankmoneyPS
  236. start with:4000
  237. *StudiomoneyPS
  238. start with:32000
  239. *buildingCount
  240. *upgradeCount
  241. *achievementcount
  242. *TEMPLATE
  243. hidden when 0
  244. *money
  245. name:
  246. desc:<b>About:</b></>This is money, the main resource. You want to collect as much of this as possible
  247. icon:
  248. *specialRes
  249.  
  250.  
  251.  
  252. Buttons
  253. *moneytree
  254. name:Bobby
  255. desc:<b>Click Effect:</b></>Get money!<q>This is Bob, and you have clicked him <b>[moneytree:clicks]</b> times. Did you know that Bob has feelings?</q>
  256. icon:
  257. on click:
  258. yield 1 money
  259. end
  260. class:bigButton hasFlares
  261. tag:moneyButtonTAG
  262. *TEMPLATE
  263. tag:menubuttonTAG
  264. class:menubuttonCLASS
  265. *buildingmenubutton
  266. name:Buildings
  267. on click:
  268. whichmenu is 0
  269. light :Buildings
  270. dim :Upgrades
  271. dim :Achievements
  272. dim :tag:backgroundTAG
  273. light :tag:background1TAG
  274. end
  275. *upgrademenubutton
  276. name:Upgrades
  277. on click:
  278. whichmenu is 0
  279. dim :Buildings
  280. dim :Upgrades:notTag:purchaseupgradeTAG
  281. light :Upgrades:tag:purchaseupgradeTAG
  282. dim :Achievements
  283. light :tag:background2TAG
  284. end
  285. *statsmenubutton
  286. name:Stats
  287. on click:
  288. whichmenu is 0
  289. dim :Buildings
  290. dim :Upgrades:notTag:statsupgradeTAG
  291. light :Upgrades:tag:statsupgradeTAG
  292. light :Achievements
  293. light :tag:background3TAG
  294. end
  295. *logmenubutton
  296. name:Log
  297. on click:
  298. whichmenu is 0
  299. dim :Buildings
  300. dim :Upgrades
  301. dim :Achievements
  302. light :tag:background4TAG
  303. end
  304. *infomenubutton
  305. name:Info
  306. on click:
  307. whichmenu is 0
  308. dim :Buildings
  309. dim :Upgrades:notTag:infoupgradeTAG
  310. light :Upgrades:tag:infoupgradeTAG
  311. dim :Achievements
  312. light :tag:background3TAG
  313. end
  314. Buildings
  315. *TEMPLATE
  316. on click:anim glow
  317. on earn:yield 1/this buildingCount
  318. *FoodStand
  319. name:Stand
  320. desc:<b>Effect:</b></>...<q>These sell beverages like lemonade, and snacks, like cookies.</q>
  321. req:money:max>=60
  322. req:whichmenu is 0
  323. cost:60 money
  324. icon:
  325. on tick:
  326. yield FoodStandmoneyPS money
  327. yield FoodStandmoneyPS moneybyFoodStand
  328. end
  329. *Store
  330. name:Store
  331. desc:<b>Effect:</b></>...<q>Its a building where people buy things. They can be found in malls.</q>
  332. req:money:max>=720
  333. req:whichmenu is 0
  334. cost:720 money
  335. icon:
  336. on tick:
  337. yield StoremoneyPS money
  338. yield StoremoneyPS moneybyStore
  339. end
  340. *Theater
  341. name:Theater|Theaters
  342. desc:<b>Effect:</b></>...<q>A place where people watch movies, plays, and theatrics of sorts.</q>
  343. req:money:max>=7680
  344. req:whichmenu is 0
  345. cost:7680 money
  346. icon:
  347. on tick:
  348. yield TheatermoneyPS money
  349. yield TheatermoneyPS moneybyTheater
  350. end
  351. *RepairShop
  352. name:Repair Shop|Repair Shops
  353. desc:<b>Effect:</b></>...<q>Things break all the time, so people come here to get their stuff fixed.</q>
  354. req:money:max>=81600
  355. req:whichmenu is 0
  356. cost:81600 money
  357. icon:
  358. on tick:
  359. yield RepairShopmoneyPS money
  360. yield RepairShopmoneyPS moneybyRepairShop
  361. end
  362. *Bank
  363. name:Bank|Banks
  364. desc:<b>Effect:</b></>...<q>We store people's money and give them loans. Most of our money comes from unfair college loans and overdraft fees.</q>
  365. req:money:max>=760000
  366. req:whichmenu is 0
  367. cost:760000 money
  368. icon:
  369. on tick:
  370. yield BankmoneyPS money
  371. yield BankmoneyPS moneybyBank
  372. end
  373. *Studio
  374. name:Studio|Studios
  375. desc:<b>Effect:</b></>...<q>...</q>
  376. req:money:max>=7040000
  377. req:whichmenu is 0
  378. cost:7040000 money
  379. icon:
  380. on tick:
  381. yield StudiomoneyPS money
  382. yield StudiomoneyPS moneybyStudio
  383. end
  384.  
  385. Upgrades
  386. //Note about passive vs. on earn : passive effects are continuous and get applied every tick. On earn effects are 1 time. If you want to yield something, put it in on earn. If you want to multiply a production amount or keep something at a constant amount, put it in passive.
  387. *TEMPLATE
  388. always hidden
  389. *setdefaultstats
  390. //Purchase Upgrades
  391. *TEMPLATE
  392. on click:anim glow
  393. on earn:yield 1 upgradeCount
  394. tag:purchaseupgradeTAG
  395. /*
  396. *U
  397. name:
  398. desc:<b>Effect:</b></>...<q>...</q>
  399. req:
  400. cost:
  401. passive:
  402. effect
  403. end
  404. on earn:
  405. effect
  406. end
  407. icon:
  408. *U
  409. name:
  410. desc:<b>Effect:</b></>Double profit of n!<q>...</q>
  411. req:10
  412. cost:1000 money
  413. on earn:
  414. yield moneyPS moneyPS
  415. end
  416. icon:
  417. */
  418. *U1
  419. name:Hot Dog Stands
  420. desc:<b>Effect:</b></>Double profit of Stands!<q>Hot dogs are popular, effective, and feel more like a meal.</q>
  421. req:10 FoodStand
  422. cost:200 money
  423. on earn:
  424. yield FoodStandmoneyPS FoodStandmoneyPS
  425. end
  426. icon:
  427. *U2
  428. name:Pet Stores
  429. desc:<b>Effect:</b></>Double profit of n!<q>Pets are pretty valuable and quite attractive.</q>
  430. req:10 Store
  431. cost:3000 money
  432. on earn:
  433. yield StoremoneyPS StoremoneyPS
  434. end
  435. icon:
  436. *U3
  437. name:Movie Theaters
  438. desc:<b>Effect:</b></>Double profit of n!<q>Time to specialize some theaters to movies. People will pay quite a bit to eat popcorn and watch a movie in these theaters.</q>
  439. req:10 Theater
  440. cost:30000 money
  441. on earn:
  442. yield TheatermoneyPS TheatermoneyPS
  443. end
  444. icon:
  445. *U4
  446. name:Car Repair
  447. desc:<b>Effect:</b></>Double profit of n!<q>Time to advertise our expert car mechanics and fast repairs.</q>
  448. req:10 RepairShop
  449. cost:300000 money
  450. on earn:
  451. yield RepairShopmoneyPS RepairShopmoneyPS
  452. end
  453. icon:
  454. *U5
  455. name:Credit Systems
  456. desc:<b>Effect:</b></>Double profit of n!<q>Keeps things in balance, and helps our accountants.</q>
  457. req:10 Bank
  458. cost:3000000 money
  459. on earn:
  460. yield BankmoneyPS BankmoneyPS
  461. end
  462. icon:
  463. *U6
  464. name:Art Studios
  465. desc:<b>Effect:</b></>Double profit of n!<q>Art sells for heaps of cash, especially when you makret it well.</q>
  466. req:10 Studio
  467. cost:30000000 money
  468. on earn:
  469. yield StudiomoneyPS StudiomoneyPS
  470. end
  471. icon:
  472. //Info Upgrades
  473. *TEMPLATE
  474. tag:infoupgradeTAG
  475. no buy
  476. no tooltip
  477. *info1
  478. text:This is an info statement in the info section.
  479. //Stats Upgrades
  480. *TEMPLATE
  481. tag:statsupgradeTAG
  482. no buy
  483. no tooltip
  484. *stats1
  485. text:This is a stat in the stats section:</>You have clicked the money tree [moneytree:clicks] times.
  486. //Backgrounds
  487. *TEMPLATE
  488. no buy
  489. no text
  490. no tooltip
  491. shown
  492. start with
  493. class:backgroundCLASS
  494. tag:backgroundTAG
  495. *backgroundU1
  496. tag:background1TAG
  497. class:background1CLASS
  498. *backgroundU2
  499. tag:background2TAG
  500. class:background2CLASS
  501. *backgroundU3
  502. tag:background3TAG
  503. class:background3CLASS
  504. *backgroundU4
  505. tag:background4TAG
  506. class:background4CLASS
  507.  
  508. Achievements
  509. *TEMPLATE
  510. on earn:yield 1 achievementcount
  511. *A1
  512. name:You got it
  513. desc:<b>Requirement:</b></>Click the money tree to get a dollar.<q>I guess money <b>does</b> grow on trees.</q>
  514. req:moneytree:clicks>0
  515. /*Shinies
  516. *shiney
  517. icon:
  518. on click:
  519. //effect
  520. //log Some Shiny message
  521. end
  522. frequency:
  523. frequency variation:
  524. movement:
  525.  
  526.  
  527.  
  528. Items
  529. //These do lots of stuff. There is no good template for them*/
Add Comment
Please, Sign In to add comment