Simanalix343

Space Society [V.0.20200723] [IGM]

Jul 23rd, 2020 (edited)
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.71 KB | None | 0 0
  1. /*
  2. Paste CODE:
  3. Pastebin:https://pastebin.com/
  4. Play at:http://orteil.dashnet.org/igm/?g=
  5. */
  6. Let's make a game!
  7. name:Space Society
  8. by:Simanelix
  9. desc:This is an incremental game in outer space.<//><b>You want to:</b><//><.>Collect energy.<.>Upgrade Colonies<.>Research as much as possible<.>An most importantly, have fun!
  10. created:2020/7/23
  11. updated:2020/7/23
  12. version:0.20200723
  13. Settings
  14. //I don't know yet
  15. CSS
  16. *{
  17. color:white;
  18. text-shadow:1px 1px 3px black,1px 0px 3px black,0px 1px 3px black;
  19. }
  20. #game{
  21. background-color:rgb(30,30,60);
  22. background-image:radial-gradient(rgba(0,0,0,1),rgba(100,0,100,1));
  23. z-index:342;
  24. position:absolute;
  25. top:0%;
  26. left:0%;
  27. height:100%;
  28. width:100%;
  29. }
  30. .box{
  31. position:absolute;
  32. padding:3px;
  33. margin:0px;
  34. border:none;
  35. }
  36. /*main button*/
  37. #box-b1{
  38. top:0%;
  39. left:0%;
  40. width:80%;
  41. height:100%;
  42. z-index:343;
  43. background:transparent;
  44. }
  45. /*resources*/
  46. #box-b2{
  47. top:0%;
  48. left:0%;
  49. width:20%;
  50. height:100%;
  51. z-index:344;
  52. background-image:linear-gradient(to bottom,rgba(200,40,40,0.6),rgba(200,40,40,0));
  53. }
  54. /*Menu Select Buttons*/
  55. #box-b3{
  56. top:0%;
  57. left:60%;
  58. width:40%;
  59. height:30%;
  60. z-index:344;
  61. background-image:linear-gradient(to bottom,rgba(40,220,0,0.6),rgba(40,220,0,0));
  62. }
  63. /*buildings, upgrades, info, log (the Menu)*/
  64. #box-b4{
  65. top:30%;
  66. left:60%;
  67. width:40%;
  68. height:70%;
  69. padding-top:10%;
  70. z-index:344;
  71. background-image:linear-gradient(to bottom,rgba(220,30,50,0.6),rgba(220,30,50,0));
  72. }
  73. .achiev{
  74. width:25%;
  75. height:64px;
  76. border:purple solid 4px;
  77. }
  78. .building,.upgrade{
  79. position:absolute;
  80. display:none;
  81. top:110%;
  82. left:110%;
  83. }
  84. .thing-text{
  85. margin:2px;
  86. margin-left:50px;
  87. padding-right:50px;
  88. padding-top:3px;
  89. line-height:22px;
  90. font-size:18px;
  91. font-family:serif;
  92. }
  93. .button{
  94. border:green solid 2px;
  95. border-radius:20px;
  96. height:40px;
  97. width:25%;
  98. padding-left:15px;
  99. padding-right:15px;
  100. }
  101. .bigButton{
  102. border:none;
  103. margin:0;
  104. padding:0;
  105. }
  106. .res{
  107. background-image:linear-gradient(to right,rgba(0,0,0,0) 0%,rgba(0,0,0,0.6) 30%,rgba(0,0,0,1) 50%,rgba(0,0,0,0.6) 70%,rgba(0,0,0,0) 100%);
  108. border:rgba(0,0,0,0.5) solid 2px;
  109. margin:5px;
  110. padding:2px;
  111. }
  112. .thing-icon{
  113. margin:0px;
  114. padding:0px;
  115. height:48px;
  116. width:48px;
  117. border:blue solid 2px;
  118. }
  119. .MENUheaderCLASS{
  120. height:60px;
  121. }
  122.  
  123. Layout
  124. *b1
  125. contains:tag:MAINbuttonTAG
  126. *b2
  127. contains:Resources
  128. *b3
  129. contains:tag:MENUbutton
  130. *b4
  131. contains:tag:STOREbutton,tag:MENUheaderTAG
  132.  
  133. Resources
  134.  
  135. *energy
  136. name:Energy
  137. desc:This is your main resource. You want as much of this as you can. Collect [energyREQ-energy] more to get an achievement.
  138. *TEMPLATE
  139. always hidden
  140. *energyPC
  141. start with:1
  142. *MENUs
  143. *MENUc
  144. start with:3
  145. *energyREQ
  146. start with:10
  147.  
  148. Buttons
  149.  
  150. *MAINbutton
  151. name:Home Planet
  152. desc:Click this to get [energyPC] energy.
  153. on click:yield energyPC energy
  154. class:bigButton hasFlares
  155. tag:MAINbuttonTAG
  156. //Colonies
  157. *TEMPLATE
  158. tag:STOREbutton,COLONYbutton
  159.  
  160. *Colony1
  161. name:Colony 1
  162. desc:Increase your Home World's energy per click by 1 (it is currently [energyPC]).
  163. on click:yield 1 energyPC
  164.  
  165. //Upgrades
  166. *TEMPLATE
  167. tag:STOREbutton,UPGRADEbutton
  168.  
  169. //Info
  170. *TEMPLATE
  171. tag:STOREbutton,INFObutton
  172.  
  173. //Header
  174. *MENUheader
  175. shown
  176. tag:MENUheaderTAG
  177. class:MENUheaderCLASS
  178. text:Current Menu:[?MENUc=1|COLONIES|][?MENUc=2|UPGRADES|][?MENUc=3|INFO|][?MENUc>3|?|][?MENUc<1|?|]
  179. name:About this menu
  180. desc:[?MENUc=1|Buy and upgrade colonies, which produce energy automatically. EPS is short for "Energy per second".|][?MENUc=2|Get special upgrades for colonies or your Home Planet, which increase energy production.|][?MENUc=3|Leanr things about the game, and get hints. Find useful links. Learn about the next update.|][?MENUc>3|What did you do? Something is not working...|][?MENUc<1|What did you do? Something is not working...|]
  181.  
  182. //
  183. *TEMPLATE
  184. tag:MENUbutton
  185. *menuBcolony
  186. name:Colonies
  187. desc:Click to open the COLONIES menu.
  188. on click:
  189. light this
  190. if (MENUs=1)
  191. hide tag:STOREbutton
  192. show tag:COLONYbutton
  193. else
  194. MENUs=1
  195. end
  196. end
  197. *menuBupgrade
  198. name:Upgrades
  199. desc:Click to open the UPGRADES menu.
  200. on click:
  201. light this
  202. if (MENUs=2)
  203. hide tag:STOREbutton
  204. show tag:UPGRADEbutton
  205. else
  206. MENUs=2
  207. end
  208. end
  209. *menuBinfo
  210. name:Info
  211. desc:Click to open the INFO menu.
  212. on click:
  213. light this
  214. if (MENUs=3)
  215. hide tag:STOREbutton
  216. show tag:INFObutton
  217. else
  218. MENUs=3
  219. end
  220. end
  221. *TEMPLATE
  222. always hidden
  223. *MENUbLOG
  224. *MENUbCREDITS
  225. *MENUbRESEARCH
  226.  
  227. Buildings
  228.  
  229. Upgrades
  230. *ManagementU
  231. always hidden
  232. owned
  233. on start:
  234. toast Welcome! Click your home planet (in the middle of the screen)
  235. yield A0
  236. end
  237. on tick:
  238. end
  239. on load:
  240. if (have A0) toast Welcome back!
  241. end
  242. Achievements
  243. *A0
  244. name:Welcome!
  245. desc:Requirement:</>Start playing the game<//><#8888ff>Click your home planet (the big green and blue circle) to start making energy!</#></><#8888ff>Read the hints if you get confused.</#>
  246. *A1
  247. name:The Beginning
  248. desc:Requirement:</>Get 10 total energy
  249. req:10 energy
  250. on earn:
  251. energyREQ=10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
  252. toast Click Clonies in the top right to select the colonies menu. Click Info to open the info menu, for useful info.
  253. end
  254. *A2
  255. name:The End
  256. desc:Requirement:</>Get 10 DuoTredecillion (1e+100, a googol) energy
  257. req:10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 energy
  258. on earn:toast Congratulations! You can now RESET the entire universe (in the NEW Prestige menu).
  259.  
  260.  
Add Comment
Please, Sign In to add comment