Advertisement
ReinMakesGames2

make.cube live

Jan 16th, 2023 (edited)
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.65 KB | None | 0 0
  1. Let's make a game!
  2. name:make.cube (development)
  3. by:TGRein
  4. desc:<//>────────────────────<//>Changelog:<//>────────────────────<//>Current Version:<//>──────────<//>Version 0.2 Development - 1/18/2023 - Cascading Stress Syndrome<//><.>Finally got my CSS down (After lots of pain)<.>Added the first "content" in the game (but it still is pretty much unusable)<.>Added error codes! (But not for IGM itself.)<//>──────────<//>Development Versions<//>──────────<//>Version 0.1 Development - 1/17/2023 - Under Lots of wraps<//><.>Messed around with CSS<//>Version 0.2 Development - 1/18/2023 - Cascading Stress Syndrome<//><.>Finally got my CSS down (After lots of pain)<.>Added the first "content" in the game (but it still is pretty much unusable)<.>Added error codes! (But not for IGM itself.)<//>Version 0.2.1 Development - 3/4/2023 - Cascading Down and Down<//><.>MORE CSS<//><.>spritesheet :)<//>────────────────────<//>Error Codes:<//>────────────────────<//>Code 100: Machine Missing<//>Code 101: No next selected machine
  5. created:1/17/2023
  6. updated:1/18/2023
  7. version:2
  8. Layout
  9. *TEMPLATE
  10. *LControls
  11. contains:tag:controls
  12. header:lcontrols
  13. *CButtons
  14. contains:tag:buttons
  15. header:cbuttons
  16. *CMachines
  17. contains:tag:machines
  18. header:cmachines
  19. *RUpgrades
  20. contains:tag:upgrades
  21. header:rupgrades
  22. Resources
  23. // Control Resources
  24. *selectedm
  25. hidden
  26. Upgrades
  27. // Controls
  28. *lastm
  29. name:Last
  30. desc:Move to the last machine
  31. tag:controls
  32. on earn:
  33. lose lastm
  34. if (selectedm=1 and disassembler<=1)
  35. yield 1 selectedm
  36. else toast Last Machine has failed. (Code:100)
  37. end
  38. end
  39. on earn:
  40. if (selectedm=2 and combiner<=1)
  41. lose 1 selectedm
  42. else toast Last Machine has failed. (Code:100)
  43. end
  44. end
  45. *nextm
  46. name:Next
  47. desc:Move to the next machine
  48. tag:controls
  49. on earn:
  50. lose nextm
  51. if (selectedm=1 and disassembler<=1)
  52. yield 1 selectedm
  53. else toast Last Machine has failed. (Code:100)
  54. end
  55. end
  56. on earn:
  57. if (selectedm=2 and combiner<=1)
  58. lose 1 selectedm
  59. else toast Last Machine has failed. (Code:100)
  60. end
  61. end
  62. *selectm
  63. text:Selected [?(selectedm is 1)|Dissasember|[?(selectedm is 2)|Combiner|Code 101]]
  64. name:Selected Machine
  65. desc:It shows what machine you selected.<//>You have selected the [?(selectedm is 1)|dissasember|[?(selectedm is 2)|combiner|Code 101]] machine.
  66. // Machines
  67. *disassembler
  68. text:(insert disassembler logo)
  69. name:Disassembler
  70. desc:Disassembles an item.
  71. tag:machine
  72. start with
  73. *combiner
  74. text:(insert combiner logo)
  75. name:Combiner
  76. desc:Combines 2 different items with 10 items each.
  77. tag:machines
  78. start with
  79. CSS
  80. #box-LControls
  81. {
  82. position:relative;
  83. length:100%;
  84. width:30%;
  85. }
  86. #box-CMachines
  87. {
  88. position:relative;
  89. left:30%;
  90. top:60%;
  91. length:60%;
  92. width:40%;
  93. }
  94. #box-CButtons
  95. {
  96. position:relative;
  97. left:30%;
  98. bottom:3%;
  99. length:60%;
  100. width:40%;
  101. }
  102. #box-RUpgrades
  103. {
  104. position:relative;
  105. left:70%;
  106. bottom:9%;
  107. length:100%;
  108. width:30%;
  109. }
  110. /* igm/stuff/basic.css */
  111. #game
  112. {
  113. background:#fff;
  114. font-size:12px;
  115. color:rgba(0,0,0,0.9);
  116. text-shadow:none;
  117. }
  118.  
  119.  
  120. .box
  121. {
  122. text-align:center;
  123. padding:0px;
  124. box-shadow:none;
  125. }
  126. .thing,.box-header,.box-footer,.box-bit
  127. {
  128. background:rgba(255,255,255,0.5);
  129. border:1px solid rgba(0,0,0,0.9);
  130. margin:1px;
  131. }
  132. .thing:hover
  133. {
  134. background:rgba(255,255,255,0.75);
  135. }
  136.  
  137. .box-header
  138. {
  139. margin-bottom:4px;
  140. }
  141. .box-footer
  142. {
  143. margin-top:4px;
  144. }
  145.  
  146. .title
  147. {
  148. text-decoration:underline;
  149. }
  150.  
  151. #box-main
  152. {
  153. left:0px;
  154. top:0px;
  155. bottom:0px;
  156. overflow:hidden;
  157. width:60%;
  158. position:absolute;
  159. }
  160. #box-res.fullWidth
  161. {
  162. width:100%;
  163. top:5%;
  164. height:5%;
  165. min-height:32px;
  166. z-index:100;
  167. position:absolute;
  168. }
  169. #box-buttons
  170. {
  171. top:0px;
  172. right:0px;
  173. bottom:0px;
  174. left:0px;
  175. position:absolute;
  176. }
  177. #box-store
  178. {
  179. right:0px;
  180. top:0px;
  181. bottom:0px;
  182. width:40%;
  183. position:absolute;
  184. }
  185. #box-buildings,#box-upgrades
  186. {
  187. top:0px;
  188. bottom:0px;
  189. width:50%;
  190. right:0%;
  191. overflow-x:hidden;
  192. overflow-y:scroll;
  193. padding-bottom:48px;/* this is to accommodate the info and settings buttons */
  194. position:absolute;
  195. }
  196. #box-buildings
  197. {right:50%;}
  198.  
  199. #box-buildings>.box-header
  200. {
  201. padding-bottom:16px;
  202. }
  203. #bulkDisplay
  204. {
  205. margin:-20px 24px 6px 24px;
  206. border:none;
  207. background:transparent;
  208. }
  209.  
  210.  
  211. .thing
  212. {
  213. display:inline-block;
  214. padding:0px;
  215. cursor:pointer;
  216. }
  217. .thing:active
  218. {
  219. opacity:0.5;
  220. }
  221. .upgrade.owned,.achiev.owned
  222. {
  223. box-shadow:0px 0px 0px 2px rgba(0,0,0,0.5) inset;
  224. }
  225. .thing.cantAfford
  226. {
  227. opacity:0.65;
  228. }
  229. .upgrade.cantAfford
  230. {
  231. border:none;
  232. }
  233.  
  234. .thing-costs{font-weight:bold;text-shadow:1px 1px 0px rgba(0,0,0,0.5);}
  235. .cost.hasEnough{color:#0f0;}
  236. .cost.notEnough{color:#f00;}
  237.  
  238.  
  239. .button>.thing-text
  240. {
  241. text-decoration:underline;
  242. }
  243.  
  244. .building
  245. {
  246. display:block;
  247. margin-right:0px;
  248. font-size:14px;
  249. }
  250.  
  251. .fullWidth
  252. {
  253. display:block;
  254. margin-left:0px;
  255. margin-right:0px;
  256. z-index:10;
  257. }
  258. #game .fullWidth
  259. {
  260. height:auto;
  261. min-height:auto;
  262. }
  263. .fullWidth,.fullWidth:hover
  264. {
  265. background:rgba(0,0,0,0.75);
  266. box-shadow:none;
  267. color:#fff;
  268. }
  269. .fullWidth:before,.fullWidth:after
  270. {
  271. content:'';
  272. height:1px;
  273. background:rgba(255,255,255,0.75);
  274. position:absolute;
  275. left:0px;
  276. right:0px;
  277. z-index:-1;
  278. }
  279. .fullWidth:before{top:-1px;}
  280. .fullWidth:after{bottom:-1px;}
  281.  
  282. .fullWidth .thing-icon
  283. {
  284. margin-top:-10px;
  285. margin-bottom:-10px;
  286. }
  287. .fullWidth .thing-text
  288. {
  289. margin-top:-4px;
  290. margin-bottom:-4px;
  291. }
  292.  
  293. .listing
  294. {
  295. font-weight:normal;
  296. }
  297.  
  298. #game.filtersOn .thing-icon{filter:drop-shadow(3px 3px 1px rgba(0,0,0,0.5));}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement