Advertisement
EdmundC

Pi Clicker (AI)

Jul 4th, 2024 (edited)
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.32 KB | Gaming | 0 0
  1. Let's make a game!
  2. // Pi Clicker!
  3. // Author: Edmund C.
  4. // Desc: This is Pi Clicker. You click pi.
  5. // Created: 7/4/24
  6. // Version: 0.1
  7.  
  8. // Settings
  9. Settings {
  10. tilingBackground: "PiBG.png";
  11. buildingCostIncrease: 100.314159%;
  12. buildingCostRefund: 31.415926%;
  13. }
  14.  
  15. // CSS
  16. CSS {
  17. #game.filtersOn .thing.cantAfford.notOwned {
  18. filter: blur(3px);
  19. }
  20. }
  21.  
  22. // Layout
  23. Layout {
  24. resources {
  25. contains: Resources;
  26. header: Pis;
  27. }
  28.  
  29. buildings {
  30. contains: Buildings;
  31. header: Buildings/Helpers;
  32. }
  33.  
  34. unlockables {
  35. contains: Upgrades, Achievements;
  36. names: hide;
  37. }
  38.  
  39. boxKey {
  40. contains: Upgrades, Buildings;
  41. header: UPGRADES BUILDINGS;
  42. names: show;
  43. icons: show;
  44. costs: show;
  45. ps: show;
  46. }
  47.  
  48. boxKey1 {
  49. contains: Resources;
  50. header: PIS;
  51. names: show;
  52. icons: show;
  53. costs: show;
  54. ps: show;
  55. }
  56. }
  57.  
  58. // Game Elements
  59. PiClick {
  60. name: ThePi;
  61. desc: Click for Pi;
  62. on click: yield 1 Pi;
  63. }
  64.  
  65. pi {
  66. name: Pi;
  67. desc: Buy stuff with Pi!;
  68. show earned (thingKey: ps);
  69. }
  70.  
  71. // Buildings
  72. coder {
  73. name: Coder;
  74. desc: Calculates 1 pi/sec;
  75. on tick: yield 1 Pi;
  76. cost: 30 Pi;
  77. cost increase: 100.31415%;
  78. cost refund: 90%;
  79. }
  80.  
  81. geometrist {
  82. name: Geometrist;
  83. desc: Calculates 3 pi/sec;
  84. on tick: yield 3 Pi;
  85. cost: 100 Pi;
  86. cost increase: 100.31415%;
  87. cost refund: 90%;
  88. }
  89.  
  90. ai {
  91. name: AI;
  92. desc: Calculates 7 pi/sec (50% uptime);
  93. on tick: yield 3.5 Pi;
  94. cost: 200 Pi;
  95. cost increase: 100.31415%;
  96. cost refund: 90%;
  97. }
  98.  
  99. prorobot {
  100. name: ProgrammedRobot;
  101. desc: Calculates 31 pi/sec;
  102. on tick: yield 31 Pi;
  103. cost: 800 Pi;
  104. cost increase: 100.31415%;
  105. cost refund: 90%;
  106. }
  107.  
  108. piwizard {
  109. name: PiWizard;
  110. desc: Calculates 300 pi/sec;
  111. on tick: yield 300 Pi;
  112. cost: 2000 Pi;
  113. cost increase: 100.31415%;
  114. cost refund: 90%;
  115. }
  116.  
  117. // Upgrades
  118. chromebook {
  119. name: Chromebook;
  120. desc: Upgrades 1.5x Coder, Geometrist;
  121. passive: multiply yield of coder, geometrist by 1.5;
  122. cost: 150 Pi;
  123. }
  124.  
  125. macbook {
  126. name: MacBook;
  127. desc: Upgrades 2x;
  128. passive: multiply yield of coder, geometrist, ai, prorobot by 2;
  129. cost: 400 Pi;
  130. }
  131.  
  132. // Special Events
  133. piboost {
  134. name: PiBoost;
  135. on click: yield random(100, 1000) Pi;
  136. movement: anywhere fade bounce moveRandom;
  137. frequency: 120;
  138. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement