Advertisement
Diesel0307

Realistic Cookie Clicker

Dec 9th, 2017
458
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.91 KB | None | 0 0
  1. Let's make a game!
  2. name:Realistic Cookie Clicker V0.19
  3. by:Diesel0307
  4. desc:Cookie Clicker, but more realistic!
  5. created:9/12/2017
  6. updated:14/12/2017
  7.  
  8. Settings
  9. building cost increase:115%
  10.  
  11. Layout
  12. *main
  13. contains:resources, button1, button2, button3, button4, header
  14. *resources
  15. contains:tag:resource
  16. class:fullWidth
  17. *button1
  18. contains:tag:button1
  19. *button2
  20. contains:tag:button2
  21. *button3
  22. contains:tag:button3
  23. *button4
  24. contains:tag:button4
  25. *header
  26. header:<b><u>Realistic Cookie Clicker</u></b>
  27. *store
  28. contains:buildings, upgrades, stats
  29. *buildings
  30. contains:BulkDisplay, Buildings
  31. header:<b>Buildings</b>
  32. tooltip origin:left
  33. *upgrades
  34. contains:Upgrades
  35. header:<b>Upgrades</b>
  36. costs:hide
  37. names:hide
  38. *achievs
  39. in:store
  40. contains:Achievements
  41. header:<b>Achievements</b>
  42. names:hide
  43. *stats
  44. contains:tag:stat
  45. ps:hide
  46. header:<b>Statistics</b>
  47. class:cleared
  48.  
  49. Buttons
  50. *bakeCookie
  51. name:Bake a cookie
  52. desc:Bake 2 ingredients into a cookie!
  53. tag:button1
  54. on click:
  55. $base=1
  56. $basePrice=2
  57. if (have click1) $base=$base*2
  58. if (have click1) $basePrice=$basePrice*2
  59. if (have click2) $base=$base*2
  60. if (have click2) $basePrice=$basePrice*2
  61. if (have click3) $base=$base*2
  62. if (have click3) $basePrice=$basePrice*2
  63. if (ingredients>=$basePrice)
  64. yield $base cookie
  65. lose $basePrice ingredients
  66. end
  67. end
  68.  
  69. *buyIngredients
  70. name:Buy ingredients
  71. desc:Buy ingredients using money.
  72. tag:button2
  73. on click:
  74. $base=1
  75. $basePrice=1
  76. if (have ingredient1) $base=$base*2
  77. if (have ingredient1) $basePrice=$basePrice*2
  78. if (dollars>=$basePrice)
  79. yield $base ingredients
  80. lose $basePrice dollars
  81. end
  82. end
  83.  
  84. *sellCookies
  85. name:Sell cookies
  86. desc:Sell all of your cookies for money.
  87. on click:
  88. $currentCookies=cookies*2.5
  89. yield $currentCookies dollars
  90. lose cookies
  91. end
  92. tag:button3
  93.  
  94. *sellHalfCookies
  95. name:Sell half cookies
  96. desc:Sell half of your cookies for money.
  97. on click:
  98. $halfCookies=cookies*0.5
  99. $moneyCookies=$halfCookies*2.5
  100. yield $moneyCookies dollars
  101. lose $halfCookies cookies
  102. end
  103. tag:button4
  104.  
  105. Resources
  106. *TEMPLATE
  107. tag:stat
  108. *cookieEarned
  109. name:Cookies Made
  110. desc:How many cookies have been made.
  111. is always:cookies:earned
  112. text:[this] Cookies made
  113. *moneyEarned
  114. name:Dollars Made
  115. desc:How many dollars have been made.
  116. is always:dollars:earned
  117. text:[this] Dollars earned
  118. *multiplier
  119. name:Production Multiplier
  120. start with:100
  121. text:[this]% production multiplier
  122. *TEMPLATE
  123. tag:resource
  124. *cookie|cookies
  125. name:Cookie|Cookies
  126. desc:You can sell cookies for money which you can use to buy things.
  127. show earned
  128.  
  129. *ingredient|ingredients
  130. name:Ingredient|Ingredients
  131. desc:The things you use to bake cookies.
  132. show earned
  133.  
  134. *dollar|dollars
  135. name:Dollar|Dollars
  136. desc:National currency that can be used to buy things and hire people.
  137. show earned
  138. start with:20
  139.  
  140. Buildings
  141. *TEMPLATE
  142. tag:building
  143. *helping|helpings
  144. name:Helping Hand|Helping Hands
  145. desc:Hire a friend to make cookies every 20 seconds, with their own ingredients!
  146. icon:https://imgur.com/lgeJ4lx.png
  147. cost:30 dollars
  148. on tick:yield 0.05 cookies
  149.  
  150. *shopper|shoppers
  151. name:Shopper|Shoppers
  152. desc:Hire a shopper to buy ingredients every 20 seconds!
  153. icon:https://imgur.com/x8lpy89.png
  154. cost:40 dollars
  155. on tick:yield 0.05 ingredients
  156.  
  157. *grandma|grandmas
  158. name:Grandma|Grandmas
  159. desc:You hire your grandma to bake cookies for you, such a sweet woman.
  160. icon:https://imgur.com/qzDbClh.png
  161. cost:100 dollars
  162. on tick:yield 1 cookies
  163.  
  164. *chef1
  165. name:1-Star Chef
  166. desc:Hire a beginner chef to bake cookies with your ingredients!
  167. cost:1200 dollars
  168. on tick:
  169. if (ingredients>=2)
  170. yield 1 cookie
  171. lose 2 ingredients
  172. end
  173. end
  174.  
  175. Upgrades
  176. //building upgrades
  177. *energy1
  178. name:Energy Drinks
  179. desc:Your Helping Hands are twice as efficient!<q>"This stuff gets me fired up!"</q>
  180. icon:https://imgur.com/IDYZf3s.png
  181. cost:25 cookies
  182. passive:multiply yield of helping by 2
  183. req:1 helping
  184. *energy2
  185. name:Monster Drinks
  186. desc:Your Helping Hands are twice as efficient!<q>"Doesn't contain batteries. We swear."</q>
  187. icon:https://imgur.com/YH1nxjM.png
  188. cost:100 cookies
  189. passive:multiply yield of helping by 2
  190. req:10 helping
  191. *energy3
  192. name:Hyper Drinks
  193. desc:Your Helping Hands are twice as efficient!<q>"Can you hear colors yet?"</q>
  194. icon:https://imgur.com/o4Htezc.png
  195. cost:10000 cookies
  196. passive:multiply yield of helping by 2
  197. req:25 helping
  198.  
  199. *shopWheels
  200. name:Lubricated Shopping Cart Wheels
  201. desc:Your Shoppers are twice as efficient!<q>"A little bit goes a long way."</q>
  202. icon:https://imgur.com/dz4WYZJ.png
  203. cost:30 cookies
  204. passive:multiply yield of shopper by 2
  205. req:1 shopper
  206. *shopDiscount
  207. name:Discounts
  208. desc:Your Shoppers are twice as efficient!<q>"10% off chocolate-related items, if you have the online coupon, that is."</q>
  209. icon:https://imgur.com/T1jfxWO.png
  210. cost:75 cookies
  211. passive:multiply yield of shopper by 2
  212. req:10 shoppers
  213. *shopSale
  214. name:Sales
  215. desc:Your Shoppers are twice as efficient!<q>"Now don't buy too much, the companies will make a fortune."</q>
  216. icon:https://imgur.com/y9AzR17.png
  217. cost:7500 cookies
  218. passive:multiply yield of shopper by 2
  219. req:25 shoppers
  220.  
  221. *grandmaWalkers
  222. name:Free Walkers
  223. desc:Your Grandmas are twice as efficient!<q>"Pick one up on the 3rd floor. Good luck with no elevator."</q>
  224. icon:https://imgur.com/hDYR7W5.png
  225. cost:50 cookies
  226. passive:multiply yield of grandma by 2
  227. req:1 grandma
  228. *grandmaChairs
  229. name:Automatic Chairs
  230. desc:Your Grandmas are twice as efficient!<q>"Voice activated to ensure it does what the grandmas really want."</q>
  231. icon:https://imgur.com/FdTD1q8.png
  232. cost:500 cookies
  233. passive:multiply yield of grandma by 2
  234. req:10 grandmas
  235. *grandmaTime
  236. name:Quality Time
  237. desc:Your Grandmas are twice as efficient!<q>"Sometimes time is all you need... And cookies, don't forget about that."</q>
  238. icon:https://imgur.com/6n7i1SV.png
  239. cost:40000 cookies
  240. passive:multiply yield of grandma by 2
  241. req:25 grandmas
  242.  
  243. //cookie upgrades
  244. *plainC
  245. name:Plain Cookies
  246. desc:Cookie production multiplier <b>+1%</b>.<q>"Meh."</q>
  247. cost:250000 cookies
  248. req:cookies:earned>=50000
  249. passive:multiply yield of tag:building by 1.01
  250. on earn:yield 1 multiplier
  251. *sugarC
  252. name:Sugar Cookies
  253. desc:Cookie production multiplier <b>+1%</b>.<q>"Tasty, if a little unimaginative."</q>
  254. cost:2500000 cookies
  255. req:cookies:earned>=150000
  256. passive:multiply yield of tag:building by 1.01
  257. on earn:yield 1 multiplier
  258.  
  259. //button upgrades
  260. *click1
  261. name:Oven Mitts
  262. desc:You bake cookies twice as fast!<q>"You mean you weren't already using these?"</q>
  263. icon:https://imgur.com/MowinYA.png
  264. cost:60 cookies
  265. req:cookies:earned>=1000
  266. *click2
  267. name:Rubber Oven Mitts
  268. desc:You bake cookie twice as fast!<q>"Not sure how these help, but you do you."</q>
  269. cost:300 cookies
  270. req:cookies:earned>=10000
  271. *click3
  272. name:Heat-Producing Gloves
  273. desc:You bake cookies twice as fast!<q>"Hand-crafted with micro-heaters to make the cookies firm."</q>
  274. cost:35000 cookies
  275. req:cookies:earned>=100000
  276.  
  277. *ingredient1
  278. name:Swift Buyer
  279. desc:You buy ingredients twice as fast.<q>"It's simply called a self check-out lane, people!"</q>
  280. cost:50 cookies
  281. req:ingredients:earned>=250
  282.  
  283. Achievements
  284. //Cookies
  285. *cookie1
  286. name:Wake and Bake
  287. desc:Make your first cookie!
  288. icon:https://imgur.com/J9lPmZ5.png
  289. req:cookies:earned>=1
  290. *cookie2
  291. name:Making Some Dough
  292. desc:Bake 1,000 cookies!
  293. icon:https://imgur.com/qN9Wz15.png
  294. req:cookies:earned>=1000
  295. *cookie3
  296. name:So Baked Right Now
  297. desc:Bake 100,000 cookies!
  298. icon:https://imgur.com/qxFiDGU.png
  299. req:cookies:earned>=100000
  300. *cookie4
  301. name:Fledgling Bakery
  302. desc:Bake 1,000,000 cookies!
  303. icon:https://imgur.com/x4zuca8.png
  304. req:cookies:earned>=1000000
  305.  
  306. //Cps
  307. *cps1
  308. name:Auto-Cookie
  309. desc:Make 1 cookie per second!
  310. icon:https://imgur.com/J9lPmZ5.png
  311. req:1 cookie per second
  312. *cps2
  313. name:Can't Handle it Already
  314. desc:Make 10 cookies per second!
  315. icon:https://imgur.com/qN9Wz15.png
  316. req:10 cookies per second
  317. *cps3
  318. name:No Milk?
  319. desc:Make 100 cookies per second!
  320. icon:https://imgur.com/qxFiDGU.png
  321. req:100 cookies per second
  322. *cps4
  323. name:Cookie Monster
  324. desc:Make 1,000 cookies per second!
  325. icon:https://imgur.com/x4zuca8.png
  326. req:1000 cookies per second
  327.  
  328. //Dollars
  329. *money1
  330. name:Juicy Profits
  331. desc:Sell your first batch of cookies for profits!
  332. icon:https://imgur.com/eEWXAj3.png
  333. req:dollars:earned>=20.5
  334. *money2
  335. name:Cash! Now!
  336. desc:Make 100 dollars!
  337. icon:https://imgur.com/mlIDKI3.png
  338. req:dollars:earned>=100
  339. *money3
  340. name:Write Some Checks
  341. desc:Make 1,000 dollars!
  342. icon:https://imgur.com/04XtI2H.png
  343. req:dollars:earned>=1000
  344. *money4
  345. name:The Root of Some Evil
  346. desc:Make 100,000 dollars!
  347. icon:https://imgur.com/NNRdSVa.png
  348. req:dollars:earned>=100000
  349. *money5
  350. name:The Root of Most Evil
  351. desc:Make 1,000,000 dollars!
  352. icon:https://imgur.com/qATe15D.png
  353. req:dollars:earned>=1000000
  354.  
  355. //Helping Hands
  356. *buddy
  357. name:Buddy
  358. desc:Hire a Helping Hand to make cookies for you, how wonderful.
  359. icon:https://imgur.com/lgeJ4lx.png
  360. req:1 helpings
  361. *friendCircle
  362. name:Friendship Circle
  363. desc:Hire 10 Helping Hands!
  364. icon:https://imgur.com/IDYZf3s.png
  365. req:10 helpings
  366. *popularity
  367. name:Popularity
  368. desc:Hire 50 Helping Hands!
  369. icon:https://imgur.com/YH1nxjM.png
  370. req:50 helpings
  371.  
  372. //Shoppers
  373. *kaching
  374. name:Ka-Ching!
  375. desc:Hire a Shopper to get ingredients for you.
  376. icon:https://imgur.com/x8lpy89.png
  377. req:1 shoppers
  378. *priceTag
  379. name:No Price Tags Required
  380. desc:Hire 10 Shoppers!
  381. icon:https://imgur.com/dz4WYZJ.png
  382. req:10 shoppers
  383. *vualt
  384. name:Ingredient Vault
  385. desc:Hire 50 Shoppers!
  386. icon:https://imgur.com/T1jfxWO.png
  387. req:50 shoppers
  388.  
  389. //Grandmas
  390.  
  391. *helpElder
  392. name:Support the Elderly
  393. desc:Hire a Grandma to help you!
  394. icon:https://imgur.com/qzDbClh.png
  395. req:1 grandmas
  396. *retirement
  397. name:Retirement
  398. desc:Hire 10 Grandmas!
  399. icon:https://imgur.com/hDYR7W5.png
  400. req:10 grandmas
  401.  
  402. *bedTime
  403. name:Bed Time Schedules
  404. desc:Hire 50 Grandmas!
  405. icon:https://imgur.com/FdTD1q8.png
  406. req:50 grandmas
  407.  
  408. Shinies
  409. *chance
  410. name:Chance!
  411. on click:
  412. $cookieBoost=cookies
  413. if (chance(50%))
  414. yield $cookieBoost*0.25 cookies
  415. toast Lucky Chance! You gained 25% of your cookies!
  416. else
  417. if (chance(40%))
  418. $helpingLoss=helpings*0.005
  419. $actualLoss=dollars*$helpingLoss
  420. lose $actualLoss dollars
  421. toast Unlucky Chance! You lost 0.005% of your dollars per Helping Hand
  422. else
  423. $cookieLoss=cookies
  424. lose $cookieLoss*0.5 cookies
  425. toast Unlucky Chance! You lost 50% of your cookies
  426. end
  427. end
  428. duration:15
  429. movement:anywhere wiggle growShrink
  430. frequency:90
  431. frequency variation:60
  432. end
  433.  
  434. CSS
  435. #game
  436. {
  437. background:#258fb1;
  438. font-size:15px;
  439. font-family:"Gill Sans",sans-serif,serif;
  440. color:black;
  441. }
  442.  
  443. .thing
  444. {
  445. border-radius:5px;
  446. background:rgba(196,61,23,0.75);
  447. }
  448.  
  449. #game.filtersOn .thing.building.notOwned
  450. {
  451. filter:blur(1px);
  452. }
  453.  
  454. .thing-icon,.particle
  455. {
  456. width:32px;
  457. height:32px;
  458. }
  459.  
  460. #box-main
  461. {
  462. left:0px;
  463. top:0px;
  464. bottom:0px;
  465. overflow:hidden;
  466. width:60%;
  467. position:absolute;
  468. border:2px ridge black;
  469. }
  470.  
  471. #box-header
  472. {
  473. left:0px;
  474. top:0px;
  475. width:100%;
  476. height:5%;
  477. }
  478.  
  479. #box-button1
  480. {
  481. top:25%;
  482. right:0px;
  483. bottom:0px;
  484. left:0px;
  485. position:absolute;
  486. }
  487.  
  488. #box-button2
  489. {
  490. top:30%;
  491. left:0px;
  492. bottom:0px;
  493. right:0px;
  494. position:absolute;
  495. }
  496.  
  497. #box-button3
  498. {
  499. top:35%;
  500. right:0px;
  501. bottom:0px;
  502. left:0px;
  503. position:absolute;
  504. }
  505.  
  506. #box-button4
  507. {
  508. top:40%;
  509. right:0px;
  510. bottom:0px;
  511. left:0px;
  512. position:absolute;
  513. }
  514.  
  515. #box-resources.fullWidth
  516. {
  517. width:100%;
  518. top:10%;
  519. height:4%;
  520. min-height:32px;
  521. z-index:100;
  522. position:absolute;
  523. text-align:center;
  524. }
  525.  
  526. #box-buildings,#box-upgrades,#box-achievs,#box-stats
  527. {
  528. top:0px;
  529. bottom:0px;
  530. width:50%;
  531. overflow-x:hidden;
  532. overflow-y:scroll;
  533. padding-bottom:48px;
  534. position:absolute;
  535. border:2px ridge black;
  536. }
  537.  
  538. #box-upgrades,#box-achievs,#box-stats,#box-header
  539. {
  540. text-align:center;
  541. }
  542.  
  543. #box-buildings
  544. {
  545. height:100%;
  546. right:50%;
  547. clear:both;
  548. }
  549.  
  550. #box-achievs
  551. {
  552. height:25%;
  553. right:0%;
  554. }
  555.  
  556. #box-upgrades
  557. {
  558. top:25%;
  559. right:0%;
  560. }
  561.  
  562. #box-stats
  563. {
  564. right:100%;
  565. height:25%;
  566. top:75%;
  567. width:150%;
  568. z-index:0;
  569. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement