Agentperson

(Cancelled) Slime Farm

Feb 25th, 2020 (edited)
614
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.79 KB | None | 0 0
  1. /*This is where it all begins.*/
  2. Let's make a game!
  3. name:Slime Farm (Cancelled Project)
  4. desc:Cancelled due to lack of progression and (mainly) Pancake Maker / Other Projects.</>This is a cancelled project.</></>h
  5. by:Me
  6. created:25/02/2020
  7. updated:25/02/2020
  8. version:1
  9. //The Creatures are only atoms right now.
  10. Settings
  11. no bulk particles
  12. no particles
  13. //Slowly Evolving
  14. Layout
  15. *main
  16. contains:updates, Buttons
  17. no tooltip
  18. *store
  19. contains:shop, ownedstuff
  20. *shop
  21. contains:tag:LayoutThings
  22. no tooltip
  23. *ownedstuff
  24. contains:tag:DEX, tag:ACHTAG, tag:achieves, tag:Shop, tag:ShopOwned, tag:Space, tag:Debug, tag:Nurse
  25. *updates
  26. contains:log
  27. *log
  28. contains:Log
  29. //Evolving Into Cells
  30. CSS
  31. #game
  32. {
  33. background:#fff;
  34. font-size:12px;
  35. color:rgba(0,0,0,0.9);
  36. text-shadow:none;
  37. }
  38.  
  39.  
  40. .box
  41. {
  42. text-align:center;
  43. padding:0px;
  44. box-shadow:none;
  45. }
  46. .thing,.box-header,.box-footer,.box-bit
  47. {
  48. background:rgba(255,255,255,0.5);
  49. border:1px solid rgba(0,0,0,0.9);
  50. margin:1px;
  51. }
  52. .thing:hover
  53. {
  54. background:rgba(255,255,255,0.75);
  55. }
  56.  
  57. .box-header
  58. {
  59. margin-bottom:4px;
  60. }
  61. .box-footer
  62. {
  63. margin-top:4px;
  64. }
  65.  
  66. .title
  67. {
  68. text-decoration:underline;
  69. }
  70.  
  71. #box-main
  72. {
  73. left:0px;
  74. top:0px;
  75. bottom:0px;
  76. overflow:hidden;
  77. width:60%;
  78. position:absolute;
  79. }
  80. #box-res
  81. {
  82. width:100%;
  83. border:1px solid rgba(0,0,0,0.9);
  84. top:0%;
  85. height:10%;
  86. min-height:32px;
  87. overflow-x:hidden;
  88. overflow-y:scroll;
  89. z-index:100;
  90. position:absolute;
  91. background:linear-gradient(to right,rgba(0,0,0,0.15) 0%,rgba(0,0,0,0.6) 50%,rgba(0,0,0,0.15) 100%);
  92. }
  93. #box-buttons
  94. {
  95. top:58px;
  96. right:0px;
  97. bottom:0px;
  98. left:0px;
  99. position:absolute;
  100. }
  101. #box-BUTTONS
  102. {
  103. top:40px;
  104. right:0px;
  105. bottom:200px;
  106. left:0px;
  107. position:absolute;
  108. }
  109. #box-BUTTONS
  110. {left:30%;}
  111.  
  112. #bulkDisplay
  113. {
  114. margin:-20px 24px 6px 24px;
  115. border:none;
  116. background:transparent;
  117. }
  118.  
  119.  
  120. .thing
  121. {
  122. display:inline-block;
  123. padding:0px;
  124. cursor:pointer;
  125. }
  126. .thing:active
  127. {
  128. opacity:0.5;
  129. }
  130. .upgrade.owned,.achiev.owned
  131. {
  132. box-shadow:0px 0px 0px 2px rgba(0,0,0,0.5) inset;
  133. }
  134. .thing.cantAfford
  135. {
  136. opacity:0.65;
  137. }
  138. .upgrade.cantAfford
  139. {
  140. border:none;
  141. }
  142.  
  143. .thing-costs{font-weight:bold;text-shadow:1px 1px 0px rgba(0,0,0,0.5);}
  144. .cost.hasEnough{color:#0f0;}
  145. .cost.notEnough{color:#f00;}
  146.  
  147.  
  148. .button>.thing-text
  149. {
  150. text-decoration:underline;
  151. }
  152.  
  153. .building
  154. {
  155. display:block;
  156. margin-right:0px;
  157. font-size:14px;
  158. }
  159.  
  160. .fullWidth
  161. {
  162. display:block;
  163. margin-left:0px;
  164. margin-right:0px;
  165. z-index:10;
  166. }
  167. #game .fullWidth
  168. {
  169. height:auto;
  170. min-height:auto;
  171. }
  172. .fullWidth,.fullWidth:hover
  173. {
  174. background:rgba(0,0,0,0.75);
  175. box-shadow:none;
  176. color:#fff;
  177. }
  178. .fullWidth:before,.fullWidth:after
  179. {
  180. content:'';
  181. height:1px;
  182. background:rgba(255,255,255,0.75);
  183. position:absolute;
  184. left:0px;
  185. right:0px;
  186. z-index:-1;
  187. }
  188. .fullWidth:before{top:-1px;}
  189. .fullWidth:after{bottom:-1px;}
  190.  
  191. .fullWidth .thing-icon
  192. {
  193. margin-top:-10px;
  194. margin-bottom:-10px;
  195. }
  196. .fullWidth .thing-text
  197. {
  198. margin-top:-4px;
  199. margin-bottom:-4px;
  200. }
  201.  
  202. .listing
  203. {
  204. font-weight:normal;
  205. }
  206.  
  207. #game.filtersOn .thing-icon{filter:drop-shadow(3px 3px 1px rgba(0,0,0,0.5));}
  208.  
  209. #box-store
  210. {
  211. right:0px;
  212. top:0px;
  213. bottom:0px;
  214. width:40%;
  215. position:absolute;
  216. background:linear-gradient(to right,rgba(0,0,0,0.15) 0%,rgba(0,0,0,0.6) 50%,rgba(0,0,0,0.15) 100%);
  217. }
  218. #box-shop
  219. {
  220. top:0px;
  221. bottom:0px;
  222. width:100%;
  223. height:15%;
  224. right:0%;
  225. overflow-x:hidden;
  226. overflow-y:scroll;
  227. position:absolute;
  228. background:rgba(0,125,0,0.4);
  229. border:1px solid rgba(0,0,0,0.9);
  230. background:linear-gradient(to right,rgba(0,0,0,0.15) 0%,rgba(0,0,0,0.6) 50%,rgba(0,0,0,0.15) 100%);
  231. }
  232. #box-ownedstuff
  233. {
  234. top:15%;
  235. bottom:0px;
  236. width:100%;
  237. height:90%;
  238. right:0%;
  239. overflow-x:hidden;
  240. overflow-y:scroll;
  241. padding-bottom:48px;
  242. position:absolute;
  243. background:rgba(0,125,0,0.4);
  244. border:1px solid rgba(0,0,0,0.9);
  245. background:linear-gradient(to right,rgba(0,0,0,0.15) 0%,rgba(0,0,0,0.6) 50%,rgba(0,0,0,0.15) 100%);
  246. }
  247.  
  248. #box-shop>.box-header
  249. {
  250. padding-bottom:16px;
  251. }
  252. #box-menu
  253. {
  254. width:80%;
  255. left:20%;
  256. top:70%;
  257. height:50%;
  258. border:2px solid rgba(0,0,0,0.9);
  259. background:linear-gradient(to right,rgba(0,0,0,0.15) 0%,rgba(0,0,0,0.6) 50%,rgba(0,0,0,0.15) 100%);
  260. position:absolute;
  261. }
  262. #box-res.thing-icon
  263. {
  264. width:32px;
  265. height:32px;
  266. }
  267. #box-phone
  268. {
  269. border:2px solid rgba(0,0,0,0.9);
  270. top:10%;
  271. height:350px;
  272. width:250px;
  273. color:black;
  274. min-height:16px;
  275. overflow-x:hidden;
  276. overflow-y:hidden;
  277. position:absolute;
  278. background:rgba(255,255,255,0.5);
  279. }
  280. #box-text
  281. {
  282. top:86%;
  283. right:0px;
  284. bottom:0px;
  285. left:0px;
  286. border:2px solid rgba(0,0,0,0.9);
  287. height:50px;
  288. width:250px;
  289. min-height:16px;
  290. overflow-x:hidden;
  291. overflow-y:hidden;
  292. position:absolute;
  293. background:rgba(255,255,255,0.7);
  294. }
  295. #box-Commands
  296. {
  297. width:20%;
  298. top:70%;
  299. height:50%;
  300. border:2px solid rgba(0,0,0,0.9);
  301. background:linear-gradient(to right,rgba(0,0,0,0.15) 0%,rgba(0,0,0,0.6) 50%,rgba(0,0,0,0.15) 100%);
  302. position:absolute;
  303. }
  304. #box-log
  305. {
  306. height: 500px;
  307. border: 1px solid black;
  308. padding: 3px
  309. margin:0px;
  310. background:rgba(0,0,0,0.9);
  311. }
  312. .thing
  313. {
  314. border-radius:8px;
  315. background:rgba(255,255,255,0.5);
  316. }
  317. //More and More Cells
  318. Buttons
  319. *Option1
  320. text:1
  321. on click:
  322. //Red
  323. if (NameSuggest=1 and UnnamedRed=1)
  324. yield 1 DevRed1
  325. lose 1 UnnamedRed
  326. log Great! We'll leave it to grow now.
  327. else if (NameSuggest=2 and UnnamedRed=1)
  328. yield 1 DevRed2
  329. lose 1 UnnamedRed
  330. log Great! We'll leave it to grow now.
  331. else if (NameSuggest=3 and UnnamedRed=1)
  332. yield 1 DevRed3
  333. lose 1 UnnamedRed
  334. log Great! We'll leave it to grow now.
  335. //Blue
  336. else if (NameSuggest=1 and UnnamedBlue=1)
  337. yield 1 DevBlue1
  338. lose 1 UnnamedBlue
  339. log Great! We'll leave it to grow now.
  340. else if (NameSuggest=2 and UnnamedBlue=1)
  341. yield 1 DevBlue2
  342. lose 1 UnnamedBlue
  343. log Great! We'll leave it to grow now.
  344. else if (NameSuggest=3 and UnnamedBlue=1)
  345. yield 1 DevBlue3
  346. lose 1 UnnamedBlue
  347. log Great! We'll leave it to grow now.
  348. //Yellow
  349. else if (NameSuggest=1 and Unnamedyellow=1)
  350. yield 1 Devyellow1
  351. lose 1 Unnamedyellow
  352. log Great! We'll leave it to grow now.
  353. else if (NameSuggest=2 and Unnamedyellow=1)
  354. yield 1 Devyellow2
  355. lose 1 Unnamedyellow
  356. log Great! We'll leave it to grow now.
  357. else if (NameSuggest=3 and Unnamedyellow=1)
  358. yield 1 Devyellow3
  359. lose 1 Unnamedyellow
  360. log Great! We'll leave it to grow now.
  361. end
  362. end
  363.  
  364. *Option2
  365. text:2
  366. on click:lose (NameSuggest) NameSuggest
  367. on click:yield (random(1,3)) NameSuggest
  368. on click:
  369. if (Unnamedyellow=1)
  370. log Hmmmm...<//></>What about...</>[?NameSuggest=1 and Devyellow1=0|Zach?|][?NameSuggest=2 and Devyellow2=0|Zoe?|][?NameSuggest=3 and Devyellow3=0|Henry?|]<//></>1:Yes</>2:No
  371. else if (UnnamedBlue=1)
  372. log Hmmmm...<//></>What about...</>[?NameSuggest=1 and DevBlue1=0|Zach?|][?NameSuggest=2 and DevBlue2=0|Zoe?|][?NameSuggest=3 and DevBlue3=0|Henry?|]<//></>1:Yes</>2:No
  373. else if (UnnamedRed=1)
  374. log Hmmmm...<//></>What about...</>[?NameSuggest=1 and DevRed1=0|Zach?|][?NameSuggest=2 and DevRed2=0|Zoe?|][?NameSuggest=3 and DevRed3=0|Henry?|]<//></>1:Yes</>2:No
  375. end
  376. end
  377. *Option3
  378. text:3
  379. *Option4
  380. text:4
  381. *Option5
  382. text:5
  383. *Option6
  384. text:6
  385. *Option7
  386. text:7
  387. *Option8
  388. text:8
  389. *Option9
  390. text:9
  391. *Option0
  392. text:0
  393. //Starting to combine.
  394. Resources
  395. *TEMPLATE
  396. tag:ShopOwned
  397. *Coins|Coin
  398. name:Slime Coin|Slime Coins
  399. desc:Used to purchase items needed to grow slimes.
  400. start with:250
  401. *Food|DeliciousEdibles
  402. name:Food
  403. desc:Used to feed your slimes.
  404. *TEMPLATE
  405. always hidden
  406. *NameSuggest
  407. //Starting to take shape.
  408. Achievements
  409. //Here is where we see our first slime.
  410. Upgrades
  411. //Layout Buttons
  412. *TEMPLATE
  413. no buy
  414. on click:hide tag:ACHTAG
  415. on click:hide tag:achieves
  416. on click:hide tag:Shop
  417. on click:hide tag:ShopOwned
  418. on click:hide tag:Space
  419. on click:hide tag:DEX
  420. on click:hide tag:Debug
  421. on click:hide tag:Nurse
  422. on start:hide tag:ACHTAG
  423. on start:hide tag:achieves
  424. on start:hide tag:Shop
  425. on start:hide tag:ShopOwned
  426. on start:hide tag:DEX
  427. on start:hide tag:Debug
  428. on start:hide tag:Space
  429. *SpaceL
  430. name:Slimes
  431. tag:LayoutThings
  432. on click:show tag:Space
  433. *DEXL
  434. name:Slime Dex
  435. tag:LayoutThings
  436. on click:show tag:DEX:owned
  437. *NurseL
  438. name:Nursery
  439. tag:LayoutThings
  440. on click:show tag:Nurse:owned
  441. *ShopL
  442. name:Shop
  443. tag:LayoutThings
  444. on click:show tag:Shop:notOwned
  445. *ShopOwnedL
  446. name:Inventory
  447. tag:LayoutThings
  448. on click:show tag:ShopOwned
  449. *AchL
  450. name:Achievements
  451. tag:LayoutThings
  452. on click:show tag:ACHTAG
  453. on click:show tag:achieves
  454. *SettingsL
  455. name:Settings
  456. tag:LayoutThings
  457. on click:show tag:Debug
  458. //Shop
  459. *TEMPLATE
  460. tag:Shop
  461. on earn:lose this
  462. *BuyFood
  463. name:Buy Food
  464. desc:Purchase Food for your slimes.
  465. cost:10 Coins
  466. on earn:yield 25 Food
  467. //Nursery
  468. *TEMPLATE
  469. name:Undeveloped Slime
  470. tag:Nurse
  471. *UnRed
  472. desc:This seems to be a red variant. Click to give it a name.
  473. start with
  474. on click:lose (NameSuggest) NameSuggest
  475. on click:yield (random(1,3)) NameSuggest
  476. on click:log Hmmmm...<//></>What do you think of the name...</>[?NameSuggest=1 and DevRed1=0|Zach?|][?NameSuggest=2 and DevRed2=0|Zoe?|][?NameSuggest=3 and DevRed3=0|Henry?|]<//></>1:Yes</>2:No
  477. on click:yield UnnamedRed
  478. on click:lose UnRed
  479. *UnBlue
  480. desc:This seems to be a blue variant. Click to give it a name.
  481. start with
  482. on click:lose (NameSuggest) NameSuggest
  483. on click:yield (random(1,3)) NameSuggest
  484. on click:log Hmmmm...<//></>What do you think of the name...</>[?NameSuggest=1 and DevBlue1=0|Zach?|][?NameSuggest=2 and DevBlue2=0|Zoe?|][?NameSuggest=3 and DevBlue3=0|Henry?|]<//></>1:Yes</>2:No
  485. on click:yield UnnamedBlue
  486. on click:lose UnBlue
  487. *Unyellow
  488. desc:This seems to be a yellow variant. Click to give it a name.
  489. start with
  490. on click:lose (NameSuggest) NameSuggest
  491. on click:yield (random(1,3)) NameSuggest
  492. on click:log Hmmmm...<//></>What do you think of the name...</>[?NameSuggest=1 and Devyellow1=0|Zach?|][?NameSuggest=2 and Devyellow2=0|Zoe?|][?NameSuggest=3 and Devyellow3=0|Henry?|]<//></>1:Yes</>2:No
  493. on click:yield Unnamedyellow
  494. on click:lose Unyellow
  495. //Developing
  496. //Red
  497. *TEMPLATE
  498. name:Developing Red Slime
  499. desc:A red slime that is currently developing. Takes about 2-3 Game days.
  500. hidden when 0
  501. tag:Space
  502. *UnnamedRed
  503. name:Developing Red Slime (Unnamed)
  504. *DevRed1
  505. name:Developing Red Slime (Named Zach)
  506. *DevRed2
  507. name:Developing Red Slime (Named Zoe)
  508. *DevRed3
  509. name:Developing Red Slime (Named Henry)
  510. //Blue
  511. *TEMPLATE
  512. desc:A blue slime that is currently developing. Takes about 2-3 Game days.
  513. hidden when 0
  514. tag:Space
  515. *UnnamedBlue
  516. name:Developing Blue Slime (Unnamed)
  517. *DevBlue1
  518. name:Developing Blue Slime (Named Zach)
  519. *DevBlue2
  520. name:Developing Blue Slime (Named Zoe)
  521. *DevBlue3
  522. name:Developing Blue Slime (Named Henry)
  523. //Yellow
  524. *TEMPLATE
  525. desc:A yellow slime that is currently developing. Takes about 2-3 Game days.
  526. hidden when 0
  527. tag:Space
  528. *Unnamedyellow
  529. name:Developing Yellow Slime (Unnamed)
  530. *Devyellow1
  531. name:Developing Yellow Slime (Named Zach)
  532. *Devyellow2
  533. name:Developing Yellow Slime (Named Zoe)
  534. *Devyellow3
  535. name:Developing Yellow Slime (Named Henry)
  536. //Debug
  537. *TEMPLATE
  538. *GameStats
  539. name:Game Stats
  540. on start:toast Hello. You seem to be new here. To start growing slimes, click on the Undeveloped Slimes.
  541. tag:Debug
  542. desc:Shows the game's hidden values. Also includes values normally hidden inside of tooltips. Mainly for debugging proposes.
  543. //req:10 GameStatProgress
  544. text:Game Stats<//></>NameSuggest:[NameSuggest]
Advertisement
Add Comment
Please, Sign In to add comment