Simanalix343

Menu Experiment

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