studyup 0.0.0-stage → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (898) hide show
  1. package/hexgl-package/HexGL-master/.htaccess +4 -0
  2. package/hexgl-package/HexGL-master/LICENSE +21 -0
  3. package/hexgl-package/HexGL-master/README.md +26 -0
  4. package/hexgl-package/HexGL-master/audio/LICENSE +28 -0
  5. package/hexgl-package/HexGL-master/audio/bg.ogg +0 -0
  6. package/hexgl-package/HexGL-master/audio/boost.ogg +0 -0
  7. package/hexgl-package/HexGL-master/audio/crash.ogg +0 -0
  8. package/hexgl-package/HexGL-master/audio/destroyed.ogg +0 -0
  9. package/hexgl-package/HexGL-master/audio/wind.ogg +0 -0
  10. package/hexgl-package/HexGL-master/bkcore/Audio.js +142 -0
  11. package/hexgl-package/HexGL-master/bkcore/hexgl/CameraChase.js +73 -0
  12. package/hexgl-package/HexGL-master/bkcore/hexgl/Gameplay.js +231 -0
  13. package/hexgl-package/HexGL-master/bkcore/hexgl/HUD.js +270 -0
  14. package/hexgl-package/HexGL-master/bkcore/hexgl/HexGL.js +446 -0
  15. package/hexgl-package/HexGL-master/bkcore/hexgl/Ladder.js +52 -0
  16. package/hexgl-package/HexGL-master/bkcore/hexgl/RaceData.js +99 -0
  17. package/hexgl-package/HexGL-master/bkcore/hexgl/ShipControls.js +806 -0
  18. package/hexgl-package/HexGL-master/bkcore/hexgl/ShipEffects.js +186 -0
  19. package/hexgl-package/HexGL-master/bkcore/hexgl/tracks/Cityscape.js +521 -0
  20. package/hexgl-package/HexGL-master/bkcore/threejs/Loader.js +260 -0
  21. package/hexgl-package/HexGL-master/bkcore/threejs/Particles.js +191 -0
  22. package/hexgl-package/HexGL-master/bkcore/threejs/Preloader.js +151 -0
  23. package/hexgl-package/HexGL-master/bkcore/threejs/RenderManager.js +132 -0
  24. package/hexgl-package/HexGL-master/bkcore/threejs/Shaders.js +950 -0
  25. package/hexgl-package/HexGL-master/bkcore.coffee/ImageData.coffee +141 -0
  26. package/hexgl-package/HexGL-master/bkcore.coffee/ImageData.js +156 -0
  27. package/hexgl-package/HexGL-master/bkcore.coffee/Timer.coffee +118 -0
  28. package/hexgl-package/HexGL-master/bkcore.coffee/Timer.js +159 -0
  29. package/hexgl-package/HexGL-master/bkcore.coffee/Utils.coffee +193 -0
  30. package/hexgl-package/HexGL-master/bkcore.coffee/Utils.js +250 -0
  31. package/hexgl-package/HexGL-master/bkcore.coffee/controllers/GamepadController.coffee +45 -0
  32. package/hexgl-package/HexGL-master/bkcore.coffee/controllers/GamepadController.js +73 -0
  33. package/hexgl-package/HexGL-master/bkcore.coffee/controllers/OrientationController.coffee +72 -0
  34. package/hexgl-package/HexGL-master/bkcore.coffee/controllers/OrientationController.js +130 -0
  35. package/hexgl-package/HexGL-master/bkcore.coffee/controllers/TouchController.coffee +109 -0
  36. package/hexgl-package/HexGL-master/bkcore.coffee/controllers/TouchController.js +188 -0
  37. package/hexgl-package/HexGL-master/bkcore.coffee/tests.html +10 -0
  38. package/hexgl-package/HexGL-master/bkcore.coffee/threejs/Particles.coffee +199 -0
  39. package/hexgl-package/HexGL-master/bkcore.coffee/threejs/Particles.js +210 -0
  40. package/hexgl-package/HexGL-master/cache.appcache +74 -0
  41. package/hexgl-package/HexGL-master/css/BebasNeue-webfont.eot +0 -0
  42. package/hexgl-package/HexGL-master/css/BebasNeue-webfont.svg +245 -0
  43. package/hexgl-package/HexGL-master/css/BebasNeue-webfont.ttf +0 -0
  44. package/hexgl-package/HexGL-master/css/BebasNeue-webfont.woff +0 -0
  45. package/hexgl-package/HexGL-master/css/bg.jpg +0 -0
  46. package/hexgl-package/HexGL-master/css/fonts.css +16 -0
  47. package/hexgl-package/HexGL-master/css/help-0.png +0 -0
  48. package/hexgl-package/HexGL-master/css/help-1.png +0 -0
  49. package/hexgl-package/HexGL-master/css/help-2.png +0 -0
  50. package/hexgl-package/HexGL-master/css/help-3.png +0 -0
  51. package/hexgl-package/HexGL-master/css/mobile-controls-1.jpg +0 -0
  52. package/hexgl-package/HexGL-master/css/mobile-controls-2.jpg +0 -0
  53. package/hexgl-package/HexGL-master/css/mobile-over.jpg +0 -0
  54. package/hexgl-package/HexGL-master/css/mobile.jpg +0 -0
  55. package/hexgl-package/HexGL-master/css/multi.css +264 -0
  56. package/hexgl-package/HexGL-master/css/title.png +0 -0
  57. package/hexgl-package/HexGL-master/css/touchcontroller.css +8 -0
  58. package/hexgl-package/HexGL-master/favicon.png +0 -0
  59. package/hexgl-package/HexGL-master/geometries/bonus/base/base.js +45 -0
  60. package/hexgl-package/HexGL-master/geometries/booster/booster.js +45 -0
  61. package/hexgl-package/HexGL-master/geometries/ships/feisar/feisar.js +45 -0
  62. package/hexgl-package/HexGL-master/geometries/tracks/cityscape/bonus/speed.js +45 -0
  63. package/hexgl-package/HexGL-master/geometries/tracks/cityscape/scrapers1.js +45 -0
  64. package/hexgl-package/HexGL-master/geometries/tracks/cityscape/scrapers2.js +45 -0
  65. package/hexgl-package/HexGL-master/geometries/tracks/cityscape/start.js +45 -0
  66. package/hexgl-package/HexGL-master/geometries/tracks/cityscape/startbanner.js +45 -0
  67. package/hexgl-package/HexGL-master/geometries/tracks/cityscape/track.js +45 -0
  68. package/hexgl-package/HexGL-master/geometries/tracks/edge/track.js +38 -0
  69. package/hexgl-package/HexGL-master/icon_128.png +0 -0
  70. package/hexgl-package/HexGL-master/icon_256.png +0 -0
  71. package/hexgl-package/HexGL-master/icon_32.png +0 -0
  72. package/hexgl-package/HexGL-master/icon_64.png +0 -0
  73. package/hexgl-package/HexGL-master/index.html +129 -0
  74. package/hexgl-package/HexGL-master/launch.coffee +85 -0
  75. package/hexgl-package/HexGL-master/launch.js +116 -0
  76. package/hexgl-package/HexGL-master/libs/DAT.GUI.min.js +53 -0
  77. package/hexgl-package/HexGL-master/libs/Detector.js +59 -0
  78. package/hexgl-package/HexGL-master/libs/Editor.html +717 -0
  79. package/hexgl-package/HexGL-master/libs/Editor_files/App.js +212 -0
  80. package/hexgl-package/HexGL-master/libs/Editor_files/CanvasRenderer.js +389 -0
  81. package/hexgl-package/HexGL-master/libs/Editor_files/Diagram.js +148 -0
  82. package/hexgl-package/HexGL-master/libs/Editor_files/Iterator.js +92 -0
  83. package/hexgl-package/HexGL-master/libs/Editor_files/Links.js +56 -0
  84. package/hexgl-package/HexGL-master/libs/Editor_files/ModuleList.js +47 -0
  85. package/hexgl-package/HexGL-master/libs/Editor_files/Node.js +122 -0
  86. package/hexgl-package/HexGL-master/libs/Editor_files/Parser.js +140 -0
  87. package/hexgl-package/HexGL-master/libs/Editor_files/Project.js +162 -0
  88. package/hexgl-package/HexGL-master/libs/Editor_files/Timer.js +166 -0
  89. package/hexgl-package/HexGL-master/libs/Editor_files/ace.js +11 -0
  90. package/hexgl-package/HexGL-master/libs/Editor_files/class.js +989 -0
  91. package/hexgl-package/HexGL-master/libs/Editor_files/editor.css +16 -0
  92. package/hexgl-package/HexGL-master/libs/Editor_files/font.css +24 -0
  93. package/hexgl-package/HexGL-master/libs/Editor_files/gamecore.js +133 -0
  94. package/hexgl-package/HexGL-master/libs/Editor_files/hashlist.js +41 -0
  95. package/hexgl-package/HexGL-master/libs/Editor_files/jhashtable.js +468 -0
  96. package/hexgl-package/HexGL-master/libs/Editor_files/jquery-1.8.js +2 -0
  97. package/hexgl-package/HexGL-master/libs/Editor_files/kinetic.js +30 -0
  98. package/hexgl-package/HexGL-master/libs/Editor_files/main.css +204 -0
  99. package/hexgl-package/HexGL-master/libs/Editor_files/mode-json.js +1 -0
  100. package/hexgl-package/HexGL-master/libs/Editor_files/pooled.js +542 -0
  101. package/hexgl-package/HexGL-master/libs/Editor_files/theme-monokai.js +1 -0
  102. package/hexgl-package/HexGL-master/libs/ShaderExtras.js +1788 -0
  103. package/hexgl-package/HexGL-master/libs/Stats.js +6 -0
  104. package/hexgl-package/HexGL-master/libs/Three.dev.js +758 -0
  105. package/hexgl-package/HexGL-master/libs/Three.r53.js +767 -0
  106. package/hexgl-package/HexGL-master/libs/leap-0.4.1.min.js +3 -0
  107. package/hexgl-package/HexGL-master/libs/postprocessing/BloomPass.js +100 -0
  108. package/hexgl-package/HexGL-master/libs/postprocessing/DotScreenPass.js +52 -0
  109. package/hexgl-package/HexGL-master/libs/postprocessing/EffectComposer.js +143 -0
  110. package/hexgl-package/HexGL-master/libs/postprocessing/FilmPass.js +51 -0
  111. package/hexgl-package/HexGL-master/libs/postprocessing/MaskPass.js +86 -0
  112. package/hexgl-package/HexGL-master/libs/postprocessing/RenderPass.js +63 -0
  113. package/hexgl-package/HexGL-master/libs/postprocessing/SavePass.js +52 -0
  114. package/hexgl-package/HexGL-master/libs/postprocessing/ShaderPass.js +51 -0
  115. package/hexgl-package/HexGL-master/libs/postprocessing/TexturePass.js +37 -0
  116. package/hexgl-package/HexGL-master/manifest.webapp +18 -0
  117. package/hexgl-package/HexGL-master/package.webapp +10 -0
  118. package/hexgl-package/HexGL-master/package.zip +0 -0
  119. package/hexgl-package/HexGL-master/replays/cityscape-casual/bkcore.replay.json +1 -0
  120. package/hexgl-package/HexGL-master/textures/bonus/base/diffuse.jpg +0 -0
  121. package/hexgl-package/HexGL-master/textures/bonus/base/normal.jpg +0 -0
  122. package/hexgl-package/HexGL-master/textures/bonus/base/specular.jpg +0 -0
  123. package/hexgl-package/HexGL-master/textures/checker.png +0 -0
  124. package/hexgl-package/HexGL-master/textures/hud/hex.jpg +0 -0
  125. package/hexgl-package/HexGL-master/textures/hud/hud-bg.png +0 -0
  126. package/hexgl-package/HexGL-master/textures/hud/hud-fg-shield.png +0 -0
  127. package/hexgl-package/HexGL-master/textures/hud/hud-fg-speed.png +0 -0
  128. package/hexgl-package/HexGL-master/textures/particles/cloud - Copie.png +0 -0
  129. package/hexgl-package/HexGL-master/textures/particles/cloud.png +0 -0
  130. package/hexgl-package/HexGL-master/textures/particles/damage.png +0 -0
  131. package/hexgl-package/HexGL-master/textures/particles/spark - Copie.png +0 -0
  132. package/hexgl-package/HexGL-master/textures/particles/spark.png +0 -0
  133. package/hexgl-package/HexGL-master/textures/ships/feisar/booster/booster.png +0 -0
  134. package/hexgl-package/HexGL-master/textures/ships/feisar/booster/boostersprite.jpg +0 -0
  135. package/hexgl-package/HexGL-master/textures/ships/feisar/diffuse.jpg +0 -0
  136. package/hexgl-package/HexGL-master/textures/ships/feisar/normal.jpg +0 -0
  137. package/hexgl-package/HexGL-master/textures/ships/feisar/specular.jpg +0 -0
  138. package/hexgl-package/HexGL-master/textures/skybox/dawnclouds/nx.jpg +0 -0
  139. package/hexgl-package/HexGL-master/textures/skybox/dawnclouds/ny.jpg +0 -0
  140. package/hexgl-package/HexGL-master/textures/skybox/dawnclouds/nz.jpg +0 -0
  141. package/hexgl-package/HexGL-master/textures/skybox/dawnclouds/px.jpg +0 -0
  142. package/hexgl-package/HexGL-master/textures/skybox/dawnclouds/py.jpg +0 -0
  143. package/hexgl-package/HexGL-master/textures/skybox/dawnclouds/pz.jpg +0 -0
  144. package/hexgl-package/HexGL-master/textures/tracks/cityscape/collision.png +0 -0
  145. package/hexgl-package/HexGL-master/textures/tracks/cityscape/diffuse.jpg +0 -0
  146. package/hexgl-package/HexGL-master/textures/tracks/cityscape/height.png +0 -0
  147. package/hexgl-package/HexGL-master/textures/tracks/cityscape/normal.jpg +0 -0
  148. package/hexgl-package/HexGL-master/textures/tracks/cityscape/scrapers1/diffuse.jpg +0 -0
  149. package/hexgl-package/HexGL-master/textures/tracks/cityscape/scrapers1/normal.jpg +0 -0
  150. package/hexgl-package/HexGL-master/textures/tracks/cityscape/scrapers1/specular.jpg +0 -0
  151. package/hexgl-package/HexGL-master/textures/tracks/cityscape/scrapers2/diffuse.jpg +0 -0
  152. package/hexgl-package/HexGL-master/textures/tracks/cityscape/scrapers2/normal.jpg +0 -0
  153. package/hexgl-package/HexGL-master/textures/tracks/cityscape/scrapers2/specular.jpg +0 -0
  154. package/hexgl-package/HexGL-master/textures/tracks/cityscape/specular.jpg +0 -0
  155. package/hexgl-package/HexGL-master/textures/tracks/cityscape/start/diffuse.jpg +0 -0
  156. package/hexgl-package/HexGL-master/textures/tracks/cityscape/start/normal.jpg +0 -0
  157. package/hexgl-package/HexGL-master/textures/tracks/cityscape/start/specular.jpg +0 -0
  158. package/hexgl-package/HexGL-master/textures/tracks/cityscape/start/start.jpg +0 -0
  159. package/hexgl-package/HexGL-master/textures.full/bonus/base/diffuse.jpg +0 -0
  160. package/hexgl-package/HexGL-master/textures.full/bonus/base/normal.jpg +0 -0
  161. package/hexgl-package/HexGL-master/textures.full/bonus/base/specular.jpg +0 -0
  162. package/hexgl-package/HexGL-master/textures.full/checker.png +0 -0
  163. package/hexgl-package/HexGL-master/textures.full/hud/hex.jpg +0 -0
  164. package/hexgl-package/HexGL-master/textures.full/hud/hud-bg.png +0 -0
  165. package/hexgl-package/HexGL-master/textures.full/hud/hud-fg-shield.png +0 -0
  166. package/hexgl-package/HexGL-master/textures.full/hud/hud-fg-speed.png +0 -0
  167. package/hexgl-package/HexGL-master/textures.full/particles/cloud - Copie.png +0 -0
  168. package/hexgl-package/HexGL-master/textures.full/particles/cloud.png +0 -0
  169. package/hexgl-package/HexGL-master/textures.full/particles/damage.png +0 -0
  170. package/hexgl-package/HexGL-master/textures.full/particles/spark - Copie.png +0 -0
  171. package/hexgl-package/HexGL-master/textures.full/particles/spark.png +0 -0
  172. package/hexgl-package/HexGL-master/textures.full/ships/feisar/booster/booster.png +0 -0
  173. package/hexgl-package/HexGL-master/textures.full/ships/feisar/booster/boostersprite.jpg +0 -0
  174. package/hexgl-package/HexGL-master/textures.full/ships/feisar/diffuse.jpg +0 -0
  175. package/hexgl-package/HexGL-master/textures.full/ships/feisar/normal.jpg +0 -0
  176. package/hexgl-package/HexGL-master/textures.full/ships/feisar/specular.jpg +0 -0
  177. package/hexgl-package/HexGL-master/textures.full/skybox/dawnclouds/nx.jpg +0 -0
  178. package/hexgl-package/HexGL-master/textures.full/skybox/dawnclouds/ny.jpg +0 -0
  179. package/hexgl-package/HexGL-master/textures.full/skybox/dawnclouds/nz.jpg +0 -0
  180. package/hexgl-package/HexGL-master/textures.full/skybox/dawnclouds/px.jpg +0 -0
  181. package/hexgl-package/HexGL-master/textures.full/skybox/dawnclouds/py.jpg +0 -0
  182. package/hexgl-package/HexGL-master/textures.full/skybox/dawnclouds/pz.jpg +0 -0
  183. package/hexgl-package/HexGL-master/textures.full/tracks/cityscape/collision.png +0 -0
  184. package/hexgl-package/HexGL-master/textures.full/tracks/cityscape/diffuse.jpg +0 -0
  185. package/hexgl-package/HexGL-master/textures.full/tracks/cityscape/height.png +0 -0
  186. package/hexgl-package/HexGL-master/textures.full/tracks/cityscape/normal.jpg +0 -0
  187. package/hexgl-package/HexGL-master/textures.full/tracks/cityscape/scrapers1/diffuse.jpg +0 -0
  188. package/hexgl-package/HexGL-master/textures.full/tracks/cityscape/scrapers1/normal.jpg +0 -0
  189. package/hexgl-package/HexGL-master/textures.full/tracks/cityscape/scrapers1/specular.jpg +0 -0
  190. package/hexgl-package/HexGL-master/textures.full/tracks/cityscape/scrapers2/diffuse.jpg +0 -0
  191. package/hexgl-package/HexGL-master/textures.full/tracks/cityscape/scrapers2/normal.jpg +0 -0
  192. package/hexgl-package/HexGL-master/textures.full/tracks/cityscape/scrapers2/specular.jpg +0 -0
  193. package/hexgl-package/HexGL-master/textures.full/tracks/cityscape/specular.jpg +0 -0
  194. package/hexgl-package/HexGL-master/textures.full/tracks/cityscape/start/diffuse.jpg +0 -0
  195. package/hexgl-package/HexGL-master/textures.full/tracks/cityscape/start/normal.jpg +0 -0
  196. package/hexgl-package/HexGL-master/textures.full/tracks/cityscape/start/specular.jpg +0 -0
  197. package/hexgl-package/HexGL-master/textures.full/tracks/cityscape/start/start.jpg +0 -0
  198. package/index.html +518 -0
  199. package/package.json +13 -4
  200. package/sandboxels-package/sandboxels-1.13.2/.github/CONTRIBUTING.md +10 -0
  201. package/sandboxels-package/sandboxels-1.13.2/.github/FUNDING.yml +13 -0
  202. package/sandboxels-package/sandboxels-1.13.2/.github/SUPPORT.md +9 -0
  203. package/sandboxels-package/sandboxels-1.13.2/404.html +74 -0
  204. package/sandboxels-package/sandboxels-1.13.2/CITATION.cff +42 -0
  205. package/sandboxels-package/sandboxels-1.13.2/CNAME +1 -0
  206. package/sandboxels-package/sandboxels-1.13.2/README.md +47 -0
  207. package/sandboxels-package/sandboxels-1.13.2/SECURITY.md +9 -0
  208. package/sandboxels-package/sandboxels-1.13.2/ad.html +73 -0
  209. package/sandboxels-package/sandboxels-1.13.2/aff.json +3 -0
  210. package/sandboxels-package/sandboxels-1.13.2/archive/first-version.html +234 -0
  211. package/sandboxels-package/sandboxels-1.13.2/archive/second-version.html +1293 -0
  212. package/sandboxels-package/sandboxels-1.13.2/archive/third-version.html +2242 -0
  213. package/sandboxels-package/sandboxels-1.13.2/archive.txt +231 -0
  214. package/sandboxels-package/sandboxels-1.13.2/backgrounds/License.txt +1 -0
  215. package/sandboxels-package/sandboxels-1.13.2/backgrounds/sky.png +0 -0
  216. package/sandboxels-package/sandboxels-1.13.2/backgrounds/sky_dark.png +0 -0
  217. package/sandboxels-package/sandboxels-1.13.2/backgrounds/sky_grass.png +0 -0
  218. package/sandboxels-package/sandboxels-1.13.2/backgrounds/sky_pink.png +0 -0
  219. package/sandboxels-package/sandboxels-1.13.2/backgrounds/sky_purple.png +0 -0
  220. package/sandboxels-package/sandboxels-1.13.2/backgrounds/sky_warm.png +0 -0
  221. package/sandboxels-package/sandboxels-1.13.2/changelog.html +3362 -0
  222. package/sandboxels-package/sandboxels-1.13.2/changelog.txt +3096 -0
  223. package/sandboxels-package/sandboxels-1.13.2/controls.html +191 -0
  224. package/sandboxels-package/sandboxels-1.13.2/controls.txt +65 -0
  225. package/sandboxels-package/sandboxels-1.13.2/education-use.html +109 -0
  226. package/sandboxels-package/sandboxels-1.13.2/feed.rss +30 -0
  227. package/sandboxels-package/sandboxels-1.13.2/feedback.html +89 -0
  228. package/sandboxels-package/sandboxels-1.13.2/fonts/PressStart2P-License-OFL.txt +93 -0
  229. package/sandboxels-package/sandboxels-1.13.2/fonts/PressStart2P-Regular.ttf +0 -0
  230. package/sandboxels-package/sandboxels-1.13.2/fonts/VT323-License-OFL.txt +93 -0
  231. package/sandboxels-package/sandboxels-1.13.2/fonts/VT323-Regular.ttf +0 -0
  232. package/sandboxels-package/sandboxels-1.13.2/fonts/Vietnamese_Pixel.ttf +0 -0
  233. package/sandboxels-package/sandboxels-1.13.2/fonts/fusion-pixel-12px-monospaced-ja.ttf +0 -0
  234. package/sandboxels-package/sandboxels-1.13.2/fonts/fusion-pixel-12px-monospaced-ko.ttf +0 -0
  235. package/sandboxels-package/sandboxels-1.13.2/fonts/fusion-pixel-12px-monospaced-latin.ttf +0 -0
  236. package/sandboxels-package/sandboxels-1.13.2/fonts/fusion-pixel-12px-monospaced-zh_hans.ttf +0 -0
  237. package/sandboxels-package/sandboxels-1.13.2/fonts/fusion-pixel-12px-monospaced-zh_hant.ttf +0 -0
  238. package/sandboxels-package/sandboxels-1.13.2/help.html +122 -0
  239. package/sandboxels-package/sandboxels-1.13.2/icons/80x15.png +0 -0
  240. package/sandboxels-package/sandboxels-1.13.2/icons/88x31.png +0 -0
  241. package/sandboxels-package/sandboxels-1.13.2/icons/android-chrome-192x192.png +0 -0
  242. package/sandboxels-package/sandboxels-1.13.2/icons/android-chrome-384x384.png +0 -0
  243. package/sandboxels-package/sandboxels-1.13.2/icons/apple-touch-icon-114x114-precomposed.png +0 -0
  244. package/sandboxels-package/sandboxels-1.13.2/icons/apple-touch-icon-114x114.png +0 -0
  245. package/sandboxels-package/sandboxels-1.13.2/icons/apple-touch-icon-120x120-precomposed.png +0 -0
  246. package/sandboxels-package/sandboxels-1.13.2/icons/apple-touch-icon-120x120.png +0 -0
  247. package/sandboxels-package/sandboxels-1.13.2/icons/apple-touch-icon-144x144-precomposed.png +0 -0
  248. package/sandboxels-package/sandboxels-1.13.2/icons/apple-touch-icon-144x144.png +0 -0
  249. package/sandboxels-package/sandboxels-1.13.2/icons/apple-touch-icon-152x152-precomposed.png +0 -0
  250. package/sandboxels-package/sandboxels-1.13.2/icons/apple-touch-icon-152x152.png +0 -0
  251. package/sandboxels-package/sandboxels-1.13.2/icons/apple-touch-icon-180x180-precomposed.png +0 -0
  252. package/sandboxels-package/sandboxels-1.13.2/icons/apple-touch-icon-180x180.png +0 -0
  253. package/sandboxels-package/sandboxels-1.13.2/icons/apple-touch-icon-57x57-precomposed.png +0 -0
  254. package/sandboxels-package/sandboxels-1.13.2/icons/apple-touch-icon-57x57.png +0 -0
  255. package/sandboxels-package/sandboxels-1.13.2/icons/apple-touch-icon-60x60-precomposed.png +0 -0
  256. package/sandboxels-package/sandboxels-1.13.2/icons/apple-touch-icon-60x60.png +0 -0
  257. package/sandboxels-package/sandboxels-1.13.2/icons/apple-touch-icon-72x72-precomposed.png +0 -0
  258. package/sandboxels-package/sandboxels-1.13.2/icons/apple-touch-icon-72x72.png +0 -0
  259. package/sandboxels-package/sandboxels-1.13.2/icons/apple-touch-icon-76x76-precomposed.png +0 -0
  260. package/sandboxels-package/sandboxels-1.13.2/icons/apple-touch-icon-76x76.png +0 -0
  261. package/sandboxels-package/sandboxels-1.13.2/icons/apple-touch-icon-precomposed.png +0 -0
  262. package/sandboxels-package/sandboxels-1.13.2/icons/apple-touch-icon.png +0 -0
  263. package/sandboxels-package/sandboxels-1.13.2/icons/browserconfig.xml +9 -0
  264. package/sandboxels-package/sandboxels-1.13.2/icons/card.png +0 -0
  265. package/sandboxels-package/sandboxels-1.13.2/icons/cover-3840x1240px-text.png +0 -0
  266. package/sandboxels-package/sandboxels-1.13.2/icons/cover-3840x1240px.png +0 -0
  267. package/sandboxels-package/sandboxels-1.13.2/icons/cover-3840x1240px.webp +0 -0
  268. package/sandboxels-package/sandboxels-1.13.2/icons/cover.png +0 -0
  269. package/sandboxels-package/sandboxels-1.13.2/icons/favicon-16x16.png +0 -0
  270. package/sandboxels-package/sandboxels-1.13.2/icons/favicon-32x32.png +0 -0
  271. package/sandboxels-package/sandboxels-1.13.2/icons/favicon.ico +0 -0
  272. package/sandboxels-package/sandboxels-1.13.2/icons/icon-hd.png +0 -0
  273. package/sandboxels-package/sandboxels-1.13.2/icons/icon.png +0 -0
  274. package/sandboxels-package/sandboxels-1.13.2/icons/index.html +196 -0
  275. package/sandboxels-package/sandboxels-1.13.2/icons/modulator.png +0 -0
  276. package/sandboxels-package/sandboxels-1.13.2/icons/mstile-150x150.png +0 -0
  277. package/sandboxels-package/sandboxels-1.13.2/icons/original-logo-recreated-pixel.png +0 -0
  278. package/sandboxels-package/sandboxels-1.13.2/icons/promo1.png +0 -0
  279. package/sandboxels-package/sandboxels-1.13.2/icons/promo2.png +0 -0
  280. package/sandboxels-package/sandboxels-1.13.2/icons/promo3.png +0 -0
  281. package/sandboxels-package/sandboxels-1.13.2/icons/promo4.png +0 -0
  282. package/sandboxels-package/sandboxels-1.13.2/icons/safari-pinned-tab.svg +107 -0
  283. package/sandboxels-package/sandboxels-1.13.2/icons/site.webmanifest +20 -0
  284. package/sandboxels-package/sandboxels-1.13.2/icons/tall.webp +0 -0
  285. package/sandboxels-package/sandboxels-1.13.2/icons/wallpaper-old.png +0 -0
  286. package/sandboxels-package/sandboxels-1.13.2/icons/wallpaper.png +0 -0
  287. package/sandboxels-package/sandboxels-1.13.2/icons/wallpaper.webp +0 -0
  288. package/sandboxels-package/sandboxels-1.13.2/icons/wordmark-black.png +0 -0
  289. package/sandboxels-package/sandboxels-1.13.2/icons/wordmark-white.png +0 -0
  290. package/sandboxels-package/sandboxels-1.13.2/index.html +21523 -0
  291. package/sandboxels-package/sandboxels-1.13.2/lang/README.txt +5 -0
  292. package/sandboxels-package/sandboxels-1.13.2/lang/af.json +1 -0
  293. package/sandboxels-package/sandboxels-1.13.2/lang/ar.json +1 -0
  294. package/sandboxels-package/sandboxels-1.13.2/lang/ar_sy.json +1 -0
  295. package/sandboxels-package/sandboxels-1.13.2/lang/bn.json +1 -0
  296. package/sandboxels-package/sandboxels-1.13.2/lang/ca.json +1 -0
  297. package/sandboxels-package/sandboxels-1.13.2/lang/cs.json +1 -0
  298. package/sandboxels-package/sandboxels-1.13.2/lang/da.json +1 -0
  299. package/sandboxels-package/sandboxels-1.13.2/lang/de.json +1 -0
  300. package/sandboxels-package/sandboxels-1.13.2/lang/el.json +1 -0
  301. package/sandboxels-package/sandboxels-1.13.2/lang/en.json +1 -0
  302. package/sandboxels-package/sandboxels-1.13.2/lang/en_au.json +1 -0
  303. package/sandboxels-package/sandboxels-1.13.2/lang/en_ca.json +1 -0
  304. package/sandboxels-package/sandboxels-1.13.2/lang/en_gb.json +1 -0
  305. package/sandboxels-package/sandboxels-1.13.2/lang/es.json +1 -0
  306. package/sandboxels-package/sandboxels-1.13.2/lang/et.json +1 -0
  307. package/sandboxels-package/sandboxels-1.13.2/lang/fi.json +1 -0
  308. package/sandboxels-package/sandboxels-1.13.2/lang/fil.json +1 -0
  309. package/sandboxels-package/sandboxels-1.13.2/lang/fr.json +1 -0
  310. package/sandboxels-package/sandboxels-1.13.2/lang/gen.js +21 -0
  311. package/sandboxels-package/sandboxels-1.13.2/lang/he.json +1 -0
  312. package/sandboxels-package/sandboxels-1.13.2/lang/hu.json +1 -0
  313. package/sandboxels-package/sandboxels-1.13.2/lang/id.json +1 -0
  314. package/sandboxels-package/sandboxels-1.13.2/lang/it.json +1 -0
  315. package/sandboxels-package/sandboxels-1.13.2/lang/ja.json +1 -0
  316. package/sandboxels-package/sandboxels-1.13.2/lang/ko.json +1 -0
  317. package/sandboxels-package/sandboxels-1.13.2/lang/la.json +1 -0
  318. package/sandboxels-package/sandboxels-1.13.2/lang/ne.json +1 -0
  319. package/sandboxels-package/sandboxels-1.13.2/lang/nl.json +1 -0
  320. package/sandboxels-package/sandboxels-1.13.2/lang/no.json +1 -0
  321. package/sandboxels-package/sandboxels-1.13.2/lang/pl.json +1 -0
  322. package/sandboxels-package/sandboxels-1.13.2/lang/pt.json +1 -0
  323. package/sandboxels-package/sandboxels-1.13.2/lang/pt_br.json +1 -0
  324. package/sandboxels-package/sandboxels-1.13.2/lang/qha.json +1 -0
  325. package/sandboxels-package/sandboxels-1.13.2/lang/qvp.json +1 -0
  326. package/sandboxels-package/sandboxels-1.13.2/lang/ro.json +1 -0
  327. package/sandboxels-package/sandboxels-1.13.2/lang/ru.json +1 -0
  328. package/sandboxels-package/sandboxels-1.13.2/lang/sr.json +1 -0
  329. package/sandboxels-package/sandboxels-1.13.2/lang/sv.json +1 -0
  330. package/sandboxels-package/sandboxels-1.13.2/lang/template.json +677 -0
  331. package/sandboxels-package/sandboxels-1.13.2/lang/th.json +1 -0
  332. package/sandboxels-package/sandboxels-1.13.2/lang/tok.json +1 -0
  333. package/sandboxels-package/sandboxels-1.13.2/lang/tok_old.json +543 -0
  334. package/sandboxels-package/sandboxels-1.13.2/lang/tr.json +1 -0
  335. package/sandboxels-package/sandboxels-1.13.2/lang/uk.json +1 -0
  336. package/sandboxels-package/sandboxels-1.13.2/lang/vi.json +1 -0
  337. package/sandboxels-package/sandboxels-1.13.2/lang/xem.json +1 -0
  338. package/sandboxels-package/sandboxels-1.13.2/lang/zh_cn.json +1 -0
  339. package/sandboxels-package/sandboxels-1.13.2/lang/zh_hant.json +1 -0
  340. package/sandboxels-package/sandboxels-1.13.2/license.txt +48 -0
  341. package/sandboxels-package/sandboxels-1.13.2/lite.html +1599 -0
  342. package/sandboxels-package/sandboxels-1.13.2/manifest.json +33 -0
  343. package/sandboxels-package/sandboxels-1.13.2/media.html +134 -0
  344. package/sandboxels-package/sandboxels-1.13.2/mobile-use.html +110 -0
  345. package/sandboxels-package/sandboxels-1.13.2/mod-list.html +535 -0
  346. package/sandboxels-package/sandboxels-1.13.2/mods/1.10example.js +118 -0
  347. package/sandboxels-package/sandboxels-1.13.2/mods/10kelements.js +172 -0
  348. package/sandboxels-package/sandboxels-1.13.2/mods/3pms_mod.js +144 -0
  349. package/sandboxels-package/sandboxels-1.13.2/mods/AnonymousWorldgenLibrary.js +55 -0
  350. package/sandboxels-package/sandboxels-1.13.2/mods/Batteries.js +288 -0
  351. package/sandboxels-package/sandboxels-1.13.2/mods/BlueStuff.js +681 -0
  352. package/sandboxels-package/sandboxels-1.13.2/mods/CandyCanes.js +15 -0
  353. package/sandboxels-package/sandboxels-1.13.2/mods/CandyCorn.js +8 -0
  354. package/sandboxels-package/sandboxels-1.13.2/mods/CherrySoda.js +77 -0
  355. package/sandboxels-package/sandboxels-1.13.2/mods/EasterEggs.js +1 -0
  356. package/sandboxels-package/sandboxels-1.13.2/mods/ExtraMachines.js +2338 -0
  357. package/sandboxels-package/sandboxels-1.13.2/mods/FoodFoodFood.js +114 -0
  358. package/sandboxels-package/sandboxels-1.13.2/mods/Gemstones.js +80 -0
  359. package/sandboxels-package/sandboxels-1.13.2/mods/GrapeSoda.js +141 -0
  360. package/sandboxels-package/sandboxels-1.13.2/mods/Humanitize.js +959 -0
  361. package/sandboxels-package/sandboxels-1.13.2/mods/Inators.js +108 -0
  362. package/sandboxels-package/sandboxels-1.13.2/mods/IreThings.js +169 -0
  363. package/sandboxels-package/sandboxels-1.13.2/mods/Lab.js +397 -0
  364. package/sandboxels-package/sandboxels-1.13.2/mods/LimesAdditions.js +401 -0
  365. package/sandboxels-package/sandboxels-1.13.2/mods/MarkusFoodMod.js +334 -0
  366. package/sandboxels-package/sandboxels-1.13.2/mods/Mucho_frio_y_Calor.js +16 -0
  367. package/sandboxels-package/sandboxels-1.13.2/mods/Natural_disasters.js +207 -0
  368. package/sandboxels-package/sandboxels-1.13.2/mods/Neutronium Mod.js +1228 -0
  369. package/sandboxels-package/sandboxels-1.13.2/mods/PRNGworldgenlib.js +526 -0
  370. package/sandboxels-package/sandboxels-1.13.2/mods/Quicksand_one.js +1355 -0
  371. package/sandboxels-package/sandboxels-1.13.2/mods/RF_transmitter_receiver.js +62 -0
  372. package/sandboxels-package/sandboxels-1.13.2/mods/Random_quicksands.js +932 -0
  373. package/sandboxels-package/sandboxels-1.13.2/mods/Science_mod.js +1791 -0
  374. package/sandboxels-package/sandboxels-1.13.2/mods/Shroomboxels.js +71 -0
  375. package/sandboxels-package/sandboxels-1.13.2/mods/SuperASAX_Funny_Mod.js +297 -0
  376. package/sandboxels-package/sandboxels-1.13.2/mods/Temperature+.js +47 -0
  377. package/sandboxels-package/sandboxels-1.13.2/mods/Thread.js +180 -0
  378. package/sandboxels-package/sandboxels-1.13.2/mods/UAMM.js +502 -0
  379. package/sandboxels-package/sandboxels-1.13.2/mods/Ultra_Steel.js +61 -0
  380. package/sandboxels-package/sandboxels-1.13.2/mods/UwUify.js +87 -0
  381. package/sandboxels-package/sandboxels-1.13.2/mods/VCR_OSD_MONO.ttf +0 -0
  382. package/sandboxels-package/sandboxels-1.13.2/mods/Vegan.js +255 -0
  383. package/sandboxels-package/sandboxels-1.13.2/mods/WhisperingTheory.js +213 -0
  384. package/sandboxels-package/sandboxels-1.13.2/mods/aChefsDream.js +8159 -0
  385. package/sandboxels-package/sandboxels-1.13.2/mods/aChefsDream2.js +815 -0
  386. package/sandboxels-package/sandboxels-1.13.2/mods/aChefsDream_beta.js +12 -0
  387. package/sandboxels-package/sandboxels-1.13.2/mods/aScientistsWish.js +1195 -0
  388. package/sandboxels-package/sandboxels-1.13.2/mods/a_bundle_of_tests.js +417 -0
  389. package/sandboxels-package/sandboxels-1.13.2/mods/a_mod_by_alice.js +46043 -0
  390. package/sandboxels-package/sandboxels-1.13.2/mods/acid_and_shapes.js +1 -0
  391. package/sandboxels-package/sandboxels-1.13.2/mods/adaceythings.js +343 -0
  392. package/sandboxels-package/sandboxels-1.13.2/mods/adjustablepixelsize.js +28 -0
  393. package/sandboxels-package/sandboxels-1.13.2/mods/advanced_colonies.js +146 -0
  394. package/sandboxels-package/sandboxels-1.13.2/mods/advancedbugs.js +37 -0
  395. package/sandboxels-package/sandboxels-1.13.2/mods/aircrafts.js +260 -0
  396. package/sandboxels-package/sandboxels-1.13.2/mods/alchem.js +372 -0
  397. package/sandboxels-package/sandboxels-1.13.2/mods/alchemy.js +69 -0
  398. package/sandboxels-package/sandboxels-1.13.2/mods/alcohol.js +113 -0
  399. package/sandboxels-package/sandboxels-1.13.2/mods/alkahest.js +33 -0
  400. package/sandboxels-package/sandboxels-1.13.2/mods/alkali_metal.js +308 -0
  401. package/sandboxels-package/sandboxels-1.13.2/mods/all_around_fillers.js +73 -0
  402. package/sandboxels-package/sandboxels-1.13.2/mods/all_stain.js +7 -0
  403. package/sandboxels-package/sandboxels-1.13.2/mods/allliquids.js +24 -0
  404. package/sandboxels-package/sandboxels-1.13.2/mods/amogus.js +69 -0
  405. package/sandboxels-package/sandboxels-1.13.2/mods/anmm.js +566 -0
  406. package/sandboxels-package/sandboxels-1.13.2/mods/ants.js +137 -0
  407. package/sandboxels-package/sandboxels-1.13.2/mods/apioforms_pre.js +238 -0
  408. package/sandboxels-package/sandboxels-1.13.2/mods/applestuff.js +80 -0
  409. package/sandboxels-package/sandboxels-1.13.2/mods/asciiboxels.js +231 -0
  410. package/sandboxels-package/sandboxels-1.13.2/mods/aussieAdditions.js +123 -0
  411. package/sandboxels-package/sandboxels-1.13.2/mods/baby.js +65 -0
  412. package/sandboxels-package/sandboxels-1.13.2/mods/background_changer.js +59 -0
  413. package/sandboxels-package/sandboxels-1.13.2/mods/bacteria_mod.js +121 -0
  414. package/sandboxels-package/sandboxels-1.13.2/mods/bananas.js +543 -0
  415. package/sandboxels-package/sandboxels-1.13.2/mods/barf_mod.js +42 -0
  416. package/sandboxels-package/sandboxels-1.13.2/mods/barista.js +209 -0
  417. package/sandboxels-package/sandboxels-1.13.2/mods/bere.js +85 -0
  418. package/sandboxels-package/sandboxels-1.13.2/mods/betterMenuScreens.js +279 -0
  419. package/sandboxels-package/sandboxels-1.13.2/mods/betterModManager.js +174 -0
  420. package/sandboxels-package/sandboxels-1.13.2/mods/betterSettings.js +304 -0
  421. package/sandboxels-package/sandboxels-1.13.2/mods/betterStats.js +55 -0
  422. package/sandboxels-package/sandboxels-1.13.2/mods/better_smooth_water.js +6 -0
  423. package/sandboxels-package/sandboxels-1.13.2/mods/betterelec.js +51 -0
  424. package/sandboxels-package/sandboxels-1.13.2/mods/bettergraygoo.js +1 -0
  425. package/sandboxels-package/sandboxels-1.13.2/mods/bettermetalscrap.js +37 -0
  426. package/sandboxels-package/sandboxels-1.13.2/mods/bf.js +394 -0
  427. package/sandboxels-package/sandboxels-1.13.2/mods/bfdi.js +145 -0
  428. package/sandboxels-package/sandboxels-1.13.2/mods/bigger_star_spawners.js +198 -0
  429. package/sandboxels-package/sandboxels-1.13.2/mods/biology.js +8694 -0
  430. package/sandboxels-package/sandboxels-1.13.2/mods/bioooze_and_pyrogens.js +264 -0
  431. package/sandboxels-package/sandboxels-1.13.2/mods/black_hole.js +43 -0
  432. package/sandboxels-package/sandboxels-1.13.2/mods/blocks.js +164 -0
  433. package/sandboxels-package/sandboxels-1.13.2/mods/boiling_things.js +540 -0
  434. package/sandboxels-package/sandboxels-1.13.2/mods/bojithekings_mod.js +377 -0
  435. package/sandboxels-package/sandboxels-1.13.2/mods/boompaste.js +76 -0
  436. package/sandboxels-package/sandboxels-1.13.2/mods/borders.js +76 -0
  437. package/sandboxels-package/sandboxels-1.13.2/mods/bouncing_balls.js +703 -0
  438. package/sandboxels-package/sandboxels-1.13.2/mods/broken_mod_test.js +1 -0
  439. package/sandboxels-package/sandboxels-1.13.2/mods/building.js +154 -0
  440. package/sandboxels-package/sandboxels-1.13.2/mods/buildingreplicator.js +210 -0
  441. package/sandboxels-package/sandboxels-1.13.2/mods/c_fighter_jet.js +449 -0
  442. package/sandboxels-package/sandboxels-1.13.2/mods/cannibal_cooking.js +620 -0
  443. package/sandboxels-package/sandboxels-1.13.2/mods/cash_n_more.js +58 -0
  444. package/sandboxels-package/sandboxels-1.13.2/mods/cat.js +100 -0
  445. package/sandboxels-package/sandboxels-1.13.2/mods/cells.js +376 -0
  446. package/sandboxels-package/sandboxels-1.13.2/mods/chalcopyrite.js +124 -0
  447. package/sandboxels-package/sandboxels-1.13.2/mods/chalk.js +499 -0
  448. package/sandboxels-package/sandboxels-1.13.2/mods/change.js +58 -0
  449. package/sandboxels-package/sandboxels-1.13.2/mods/changePixelDebug.js +9 -0
  450. package/sandboxels-package/sandboxels-1.13.2/mods/changeTempReactionParameter.js +73 -0
  451. package/sandboxels-package/sandboxels-1.13.2/mods/chaos.js +32 -0
  452. package/sandboxels-package/sandboxels-1.13.2/mods/charsonsmodbeta.js +494 -0
  453. package/sandboxels-package/sandboxels-1.13.2/mods/charsonsmoduno.js +2116 -0
  454. package/sandboxels-package/sandboxels-1.13.2/mods/chem.js +7877 -0
  455. package/sandboxels-package/sandboxels-1.13.2/mods/chemFormula.js +44 -0
  456. package/sandboxels-package/sandboxels-1.13.2/mods/chemFormulas.json +549 -0
  457. package/sandboxels-package/sandboxels-1.13.2/mods/cherries.js +543 -0
  458. package/sandboxels-package/sandboxels-1.13.2/mods/chess.js +1463 -0
  459. package/sandboxels-package/sandboxels-1.13.2/mods/children.js +14 -0
  460. package/sandboxels-package/sandboxels-1.13.2/mods/circuitcore.js +1914 -0
  461. package/sandboxels-package/sandboxels-1.13.2/mods/circuitcore_displays.js +157 -0
  462. package/sandboxels-package/sandboxels-1.13.2/mods/citybuilding.js +193 -0
  463. package/sandboxels-package/sandboxels-1.13.2/mods/classic_explosives.js +62 -0
  464. package/sandboxels-package/sandboxels-1.13.2/mods/classic_textures.js +196 -0
  465. package/sandboxels-package/sandboxels-1.13.2/mods/clf3.js +86 -0
  466. package/sandboxels-package/sandboxels-1.13.2/mods/clone_liquid.js +22 -0
  467. package/sandboxels-package/sandboxels-1.13.2/mods/clouds.js +103 -0
  468. package/sandboxels-package/sandboxels-1.13.2/mods/cmur.js +5195 -0
  469. package/sandboxels-package/sandboxels-1.13.2/mods/code_library.js +1827 -0
  470. package/sandboxels-package/sandboxels-1.13.2/mods/coffee.js +228 -0
  471. package/sandboxels-package/sandboxels-1.13.2/mods/cold_liquid_explosion.js +20 -0
  472. package/sandboxels-package/sandboxels-1.13.2/mods/cold_opposites.js +66 -0
  473. package/sandboxels-package/sandboxels-1.13.2/mods/coldblooded.js +729 -0
  474. package/sandboxels-package/sandboxels-1.13.2/mods/collab_mod.js +253 -0
  475. package/sandboxels-package/sandboxels-1.13.2/mods/colonies.js +574 -0
  476. package/sandboxels-package/sandboxels-1.13.2/mods/colorLED.js +38 -0
  477. package/sandboxels-package/sandboxels-1.13.2/mods/color_everything.js +3 -0
  478. package/sandboxels-package/sandboxels-1.13.2/mods/color_tools.js +297 -0
  479. package/sandboxels-package/sandboxels-1.13.2/mods/colored_lightbulbs.js +44 -0
  480. package/sandboxels-package/sandboxels-1.13.2/mods/combustion.js +416 -0
  481. package/sandboxels-package/sandboxels-1.13.2/mods/community_desserts.js +829 -0
  482. package/sandboxels-package/sandboxels-1.13.2/mods/content.js +131 -0
  483. package/sandboxels-package/sandboxels-1.13.2/mods/controllable_pixel.js +75 -0
  484. package/sandboxels-package/sandboxels-1.13.2/mods/controllable_pixel_test.js +161 -0
  485. package/sandboxels-package/sandboxels-1.13.2/mods/conveyance.js +95 -0
  486. package/sandboxels-package/sandboxels-1.13.2/mods/cooked_apple.js +26 -0
  487. package/sandboxels-package/sandboxels-1.13.2/mods/cookie_clicker.js +943 -0
  488. package/sandboxels-package/sandboxels-1.13.2/mods/cookingnstuff.js +1 -0
  489. package/sandboxels-package/sandboxels-1.13.2/mods/cool_tools.js +35 -0
  490. package/sandboxels-package/sandboxels-1.13.2/mods/copy_canvas.js +9 -0
  491. package/sandboxels-package/sandboxels-1.13.2/mods/copypaste.js +100 -0
  492. package/sandboxels-package/sandboxels-1.13.2/mods/coresbyp.js +90 -0
  493. package/sandboxels-package/sandboxels-1.13.2/mods/cpt_alt.js +241 -0
  494. package/sandboxels-package/sandboxels-1.13.2/mods/crimson.js +424 -0
  495. package/sandboxels-package/sandboxels-1.13.2/mods/cs_expanded.js +31 -0
  496. package/sandboxels-package/sandboxels-1.13.2/mods/cubesstuff.js +3329 -0
  497. package/sandboxels-package/sandboxels-1.13.2/mods/currency.js +246 -0
  498. package/sandboxels-package/sandboxels-1.13.2/mods/cursed_shader_by_jayd.js +90 -0
  499. package/sandboxels-package/sandboxels-1.13.2/mods/cursor.js +3 -0
  500. package/sandboxels-package/sandboxels-1.13.2/mods/cursor_shapes.js +149 -0
  501. package/sandboxels-package/sandboxels-1.13.2/mods/customBackground.js +45 -0
  502. package/sandboxels-package/sandboxels-1.13.2/mods/customexplosion.js +110 -0
  503. package/sandboxels-package/sandboxels-1.13.2/mods/customtemptools.js +50 -0
  504. package/sandboxels-package/sandboxels-1.13.2/mods/dalgonacandy.js +41 -0
  505. package/sandboxels-package/sandboxels-1.13.2/mods/datawire.js +238 -0
  506. package/sandboxels-package/sandboxels-1.13.2/mods/date_test.js +268 -0
  507. package/sandboxels-package/sandboxels-1.13.2/mods/death_count.js +35 -0
  508. package/sandboxels-package/sandboxels-1.13.2/mods/debris.js +75 -0
  509. package/sandboxels-package/sandboxels-1.13.2/mods/debrisable.js +1136 -0
  510. package/sandboxels-package/sandboxels-1.13.2/mods/debugRework.js +169 -0
  511. package/sandboxels-package/sandboxels-1.13.2/mods/delete_all_of_element.js +17 -0
  512. package/sandboxels-package/sandboxels-1.13.2/mods/deneme.js +70 -0
  513. package/sandboxels-package/sandboxels-1.13.2/mods/dependency_test.js +13 -0
  514. package/sandboxels-package/sandboxels-1.13.2/mods/descriptions.js +17 -0
  515. package/sandboxels-package/sandboxels-1.13.2/mods/devsnacks.js +193 -0
  516. package/sandboxels-package/sandboxels-1.13.2/mods/devtests.js +278 -0
  517. package/sandboxels-package/sandboxels-1.13.2/mods/discord_port.js +36 -0
  518. package/sandboxels-package/sandboxels-1.13.2/mods/doElectricity changes.js +55 -0
  519. package/sandboxels-package/sandboxels-1.13.2/mods/dogs.js +85 -0
  520. package/sandboxels-package/sandboxels-1.13.2/mods/doom.js +935 -0
  521. package/sandboxels-package/sandboxels-1.13.2/mods/doomsday.js +56 -0
  522. package/sandboxels-package/sandboxels-1.13.2/mods/drawPixels_change_test.js +39 -0
  523. package/sandboxels-package/sandboxels-1.13.2/mods/dried_food.js +38 -0
  524. package/sandboxels-package/sandboxels-1.13.2/mods/drill.js +261 -0
  525. package/sandboxels-package/sandboxels-1.13.2/mods/drills.js +760 -0
  526. package/sandboxels-package/sandboxels-1.13.2/mods/easysurvival.js +917 -0
  527. package/sandboxels-package/sandboxels-1.13.2/mods/edible_everything.js +7 -0
  528. package/sandboxels-package/sandboxels-1.13.2/mods/editTools.js +608 -0
  529. package/sandboxels-package/sandboxels-1.13.2/mods/eklegems.js +1313 -0
  530. package/sandboxels-package/sandboxels-1.13.2/mods/electricityTest.js +42 -0
  531. package/sandboxels-package/sandboxels-1.13.2/mods/elem3.js +352316 -0
  532. package/sandboxels-package/sandboxels-1.13.2/mods/elementEraser.js +40 -0
  533. package/sandboxels-package/sandboxels-1.13.2/mods/element_UI.js +140 -0
  534. package/sandboxels-package/sandboxels-1.13.2/mods/elementreplacer.js +12 -0
  535. package/sandboxels-package/sandboxels-1.13.2/mods/elementsManager.js +1212 -0
  536. package/sandboxels-package/sandboxels-1.13.2/mods/empty.js +7 -0
  537. package/sandboxels-package/sandboxels-1.13.2/mods/evenmoretemptools.js +42 -0
  538. package/sandboxels-package/sandboxels-1.13.2/mods/example_mod.js +89 -0
  539. package/sandboxels-package/sandboxels-1.13.2/mods/example_mod_old.js +84 -0
  540. package/sandboxels-package/sandboxels-1.13.2/mods/exoplanet.js +220 -0
  541. package/sandboxels-package/sandboxels-1.13.2/mods/explodeAtPlus.js +138 -0
  542. package/sandboxels-package/sandboxels-1.13.2/mods/explosionsound.js +19 -0
  543. package/sandboxels-package/sandboxels-1.13.2/mods/extra_element_info.js +79 -0
  544. package/sandboxels-package/sandboxels-1.13.2/mods/extrasaveslots.js +42 -0
  545. package/sandboxels-package/sandboxels-1.13.2/mods/fans.js +204 -0
  546. package/sandboxels-package/sandboxels-1.13.2/mods/fantastic_creatures.js +198 -0
  547. package/sandboxels-package/sandboxels-1.13.2/mods/fantasy_elements.js +800 -0
  548. package/sandboxels-package/sandboxels-1.13.2/mods/fast_lightmap.js +339 -0
  549. package/sandboxels-package/sandboxels-1.13.2/mods/fey_and_more.js +1678 -0
  550. package/sandboxels-package/sandboxels-1.13.2/mods/fill_script.js +42 -0
  551. package/sandboxels-package/sandboxels-1.13.2/mods/find.js +115 -0
  552. package/sandboxels-package/sandboxels-1.13.2/mods/fine_tuned_cloner.js +121 -0
  553. package/sandboxels-package/sandboxels-1.13.2/mods/fire_extinguisher.js +128 -0
  554. package/sandboxels-package/sandboxels-1.13.2/mods/fire_mod.js +565 -0
  555. package/sandboxels-package/sandboxels-1.13.2/mods/fire_slime.js +68 -0
  556. package/sandboxels-package/sandboxels-1.13.2/mods/fishin.js +519 -0
  557. package/sandboxels-package/sandboxels-1.13.2/mods/fission.js +68 -0
  558. package/sandboxels-package/sandboxels-1.13.2/mods/fission_physics.js +86 -0
  559. package/sandboxels-package/sandboxels-1.13.2/mods/fiveys_stuff.js +119 -0
  560. package/sandboxels-package/sandboxels-1.13.2/mods/flesh_infection.js +645 -0
  561. package/sandboxels-package/sandboxels-1.13.2/mods/flipflop.js +36 -0
  562. package/sandboxels-package/sandboxels-1.13.2/mods/flowers_and_forests.js +468 -0
  563. package/sandboxels-package/sandboxels-1.13.2/mods/flying_fish.js +49 -0
  564. package/sandboxels-package/sandboxels-1.13.2/mods/food_mods.js +15 -0
  565. package/sandboxels-package/sandboxels-1.13.2/mods/foodgalore +100 -0
  566. package/sandboxels-package/sandboxels-1.13.2/mods/fools+.js +299 -0
  567. package/sandboxels-package/sandboxels-1.13.2/mods/fools.js +99 -0
  568. package/sandboxels-package/sandboxels-1.13.2/mods/fools24.js +842 -0
  569. package/sandboxels-package/sandboxels-1.13.2/mods/fools25.js +350 -0
  570. package/sandboxels-package/sandboxels-1.13.2/mods/fossils.js +676 -0
  571. package/sandboxels-package/sandboxels-1.13.2/mods/fractals.js +156 -0
  572. package/sandboxels-package/sandboxels-1.13.2/mods/franklin.js +44 -0
  573. package/sandboxels-package/sandboxels-1.13.2/mods/freeTPS.js +19 -0
  574. package/sandboxels-package/sandboxels-1.13.2/mods/fueled_generators.js +131 -0
  575. package/sandboxels-package/sandboxels-1.13.2/mods/funny elements 2022-11-15.js +84 -0
  576. package/sandboxels-package/sandboxels-1.13.2/mods/funny_liquid.js +618 -0
  577. package/sandboxels-package/sandboxels-1.13.2/mods/funny_liquid_2.js +322 -0
  578. package/sandboxels-package/sandboxels-1.13.2/mods/funny_liquid_3.js +254 -0
  579. package/sandboxels-package/sandboxels-1.13.2/mods/funny_solid.js +163 -0
  580. package/sandboxels-package/sandboxels-1.13.2/mods/funnynames.js +320 -0
  581. package/sandboxels-package/sandboxels-1.13.2/mods/fwibblen.js +69 -0
  582. package/sandboxels-package/sandboxels-1.13.2/mods/gambling.js +94 -0
  583. package/sandboxels-package/sandboxels-1.13.2/mods/gameOfLife.js +83 -0
  584. package/sandboxels-package/sandboxels-1.13.2/mods/garn47.js +325 -0
  585. package/sandboxels-package/sandboxels-1.13.2/mods/gasdecay.js +31 -0
  586. package/sandboxels-package/sandboxels-1.13.2/mods/generative_mods.js +2479 -0
  587. package/sandboxels-package/sandboxels-1.13.2/mods/generator_prompt.js +166 -0
  588. package/sandboxels-package/sandboxels-1.13.2/mods/genetics.js +4038 -0
  589. package/sandboxels-package/sandboxels-1.13.2/mods/glenn_gases.js +411 -0
  590. package/sandboxels-package/sandboxels-1.13.2/mods/glow.js +130 -0
  591. package/sandboxels-package/sandboxels-1.13.2/mods/gradient_background_support.js +21 -0
  592. package/sandboxels-package/sandboxels-1.13.2/mods/graphite.js +460 -0
  593. package/sandboxels-package/sandboxels-1.13.2/mods/grav_mudstones.js +382 -0
  594. package/sandboxels-package/sandboxels-1.13.2/mods/gravity.js +40 -0
  595. package/sandboxels-package/sandboxels-1.13.2/mods/gravity_test.js +51 -0
  596. package/sandboxels-package/sandboxels-1.13.2/mods/greenitemsandmore.js +183 -0
  597. package/sandboxels-package/sandboxels-1.13.2/mods/guided_rocket.js +106 -0
  598. package/sandboxels-package/sandboxels-1.13.2/mods/halogen.js +384 -0
  599. package/sandboxels-package/sandboxels-1.13.2/mods/haseulite.js +1673 -0
  600. package/sandboxels-package/sandboxels-1.13.2/mods/heatglow.js +74 -0
  601. package/sandboxels-package/sandboxels-1.13.2/mods/heatshield.js +30 -0
  602. package/sandboxels-package/sandboxels-1.13.2/mods/hexagon.js +45 -0
  603. package/sandboxels-package/sandboxels-1.13.2/mods/hidden_ground.js +42 -0
  604. package/sandboxels-package/sandboxels-1.13.2/mods/hideandshowtools.js +18 -0
  605. package/sandboxels-package/sandboxels-1.13.2/mods/human_edit.js +725 -0
  606. package/sandboxels-package/sandboxels-1.13.2/mods/human_friendly_design.js +899 -0
  607. package/sandboxels-package/sandboxels-1.13.2/mods/humans.js +203 -0
  608. package/sandboxels-package/sandboxels-1.13.2/mods/hydroid.js +224 -0
  609. package/sandboxels-package/sandboxels-1.13.2/mods/icb.js +32 -0
  610. package/sandboxels-package/sandboxels-1.13.2/mods/iean.js +135 -0
  611. package/sandboxels-package/sandboxels-1.13.2/mods/immune.js +199 -0
  612. package/sandboxels-package/sandboxels-1.13.2/mods/incinerators.js +29 -0
  613. package/sandboxels-package/sandboxels-1.13.2/mods/industry.js +308 -0
  614. package/sandboxels-package/sandboxels-1.13.2/mods/infLiqLight.js +8 -0
  615. package/sandboxels-package/sandboxels-1.13.2/mods/injector.js +450 -0
  616. package/sandboxels-package/sandboxels-1.13.2/mods/insane_random_events.js +123 -0
  617. package/sandboxels-package/sandboxels-1.13.2/mods/invertscroll.js +8 -0
  618. package/sandboxels-package/sandboxels-1.13.2/mods/invisible_things.js +83 -0
  619. package/sandboxels-package/sandboxels-1.13.2/mods/iocalfaeus_clones.js +100 -0
  620. package/sandboxels-package/sandboxels-1.13.2/mods/jaydsfunctions.js +187 -0
  621. package/sandboxels-package/sandboxels-1.13.2/mods/jaydsmods.js +89 -0
  622. package/sandboxels-package/sandboxels-1.13.2/mods/jaydstuff.js +783 -0
  623. package/sandboxels-package/sandboxels-1.13.2/mods/junction.js +50 -0
  624. package/sandboxels-package/sandboxels-1.13.2/mods/ketchup_mod.js +526 -0
  625. package/sandboxels-package/sandboxels-1.13.2/mods/kopalsBar.js +175 -0
  626. package/sandboxels-package/sandboxels-1.13.2/mods/kopalstuff.js +541 -0
  627. package/sandboxels-package/sandboxels-1.13.2/mods/lactose_intolerance_and_celiac.js +18 -0
  628. package/sandboxels-package/sandboxels-1.13.2/mods/laetium.js +328 -0
  629. package/sandboxels-package/sandboxels-1.13.2/mods/lattice_filler.js +29 -0
  630. package/sandboxels-package/sandboxels-1.13.2/mods/lemonade.js +71 -0
  631. package/sandboxels-package/sandboxels-1.13.2/mods/libhooktick.js +49 -0
  632. package/sandboxels-package/sandboxels-1.13.2/mods/libpacman-v1.js +61 -0
  633. package/sandboxels-package/sandboxels-1.13.2/mods/libpixeltracking.js +29 -0
  634. package/sandboxels-package/sandboxels-1.13.2/mods/library_test.js +5 -0
  635. package/sandboxels-package/sandboxels-1.13.2/mods/life_eater.js +169 -0
  636. package/sandboxels-package/sandboxels-1.13.2/mods/light.js +218 -0
  637. package/sandboxels-package/sandboxels-1.13.2/mods/lighting_test.js +79 -0
  638. package/sandboxels-package/sandboxels-1.13.2/mods/lightmap.js +382 -0
  639. package/sandboxels-package/sandboxels-1.13.2/mods/limewater.js +75 -0
  640. package/sandboxels-package/sandboxels-1.13.2/mods/liquid_energy.js +294 -0
  641. package/sandboxels-package/sandboxels-1.13.2/mods/liquid_mixing.js +184 -0
  642. package/sandboxels-package/sandboxels-1.13.2/mods/liquid_void.js +29 -0
  643. package/sandboxels-package/sandboxels-1.13.2/mods/littlejohnny.js +72 -0
  644. package/sandboxels-package/sandboxels-1.13.2/mods/lizard_mod.js +91 -0
  645. package/sandboxels-package/sandboxels-1.13.2/mods/logicgates.js +482 -0
  646. package/sandboxels-package/sandboxels-1.13.2/mods/lone_urea.js +69 -0
  647. package/sandboxels-package/sandboxels-1.13.2/mods/lost_souls.js +177 -0
  648. package/sandboxels-package/sandboxels-1.13.2/mods/lye.js +34 -0
  649. package/sandboxels-package/sandboxels-1.13.2/mods/machines.js +293 -0
  650. package/sandboxels-package/sandboxels-1.13.2/mods/manyMoreThemes.js +67 -0
  651. package/sandboxels-package/sandboxels-1.13.2/mods/mars.js +473 -0
  652. package/sandboxels-package/sandboxels-1.13.2/mods/maxColorOffset.js +54 -0
  653. package/sandboxels-package/sandboxels-1.13.2/mods/maze.js +71 -0
  654. package/sandboxels-package/sandboxels-1.13.2/mods/meat_rockets.js +70 -0
  655. package/sandboxels-package/sandboxels-1.13.2/mods/memelists.js +17 -0
  656. package/sandboxels-package/sandboxels-1.13.2/mods/metals.js +791 -0
  657. package/sandboxels-package/sandboxels-1.13.2/mods/minecraft.js +818 -0
  658. package/sandboxels-package/sandboxels-1.13.2/mods/minesweeper.js +100 -0
  659. package/sandboxels-package/sandboxels-1.13.2/mods/miscellaneous_elements.js +278 -0
  660. package/sandboxels-package/sandboxels-1.13.2/mods/miscible_psoup_and_birthpool.js +7 -0
  661. package/sandboxels-package/sandboxels-1.13.2/mods/mix.js +65 -0
  662. package/sandboxels-package/sandboxels-1.13.2/mods/mixture.js +714 -0
  663. package/sandboxels-package/sandboxels-1.13.2/mods/mixtureII.js +440 -0
  664. package/sandboxels-package/sandboxels-1.13.2/mods/mjsstuff.js +233 -0
  665. package/sandboxels-package/sandboxels-1.13.2/mods/mobile_keybinds.js +33 -0
  666. package/sandboxels-package/sandboxels-1.13.2/mods/mobile_shift.js +336 -0
  667. package/sandboxels-package/sandboxels-1.13.2/mods/mobs.js +5147 -0
  668. package/sandboxels-package/sandboxels-1.13.2/mods/mod_for_mnem.js +1 -0
  669. package/sandboxels-package/sandboxels-1.13.2/mods/modlangs.js +53 -0
  670. package/sandboxels-package/sandboxels-1.13.2/mods/moreViews.js +473 -0
  671. package/sandboxels-package/sandboxels-1.13.2/mods/more_art_states.js +89 -0
  672. package/sandboxels-package/sandboxels-1.13.2/mods/more_breaking.js +189 -0
  673. package/sandboxels-package/sandboxels-1.13.2/mods/more_disasters.js +497 -0
  674. package/sandboxels-package/sandboxels-1.13.2/mods/more_gold.js +115 -0
  675. package/sandboxels-package/sandboxels-1.13.2/mods/morebombs.js +1143 -0
  676. package/sandboxels-package/sandboxels-1.13.2/mods/morechemistry.js +1764 -0
  677. package/sandboxels-package/sandboxels-1.13.2/mods/morefoodsmod.js +154 -0
  678. package/sandboxels-package/sandboxels-1.13.2/mods/moreliquids.js +138 -0
  679. package/sandboxels-package/sandboxels-1.13.2/mods/morepowders.js +335 -0
  680. package/sandboxels-package/sandboxels-1.13.2/mods/moretools.js +68 -0
  681. package/sandboxels-package/sandboxels-1.13.2/mods/moretrees.js +490 -0
  682. package/sandboxels-package/sandboxels-1.13.2/mods/mossstuff.js +2301 -0
  683. package/sandboxels-package/sandboxels-1.13.2/mods/mouthwash.js +23 -0
  684. package/sandboxels-package/sandboxels-1.13.2/mods/move_tools.js +71 -0
  685. package/sandboxels-package/sandboxels-1.13.2/mods/moveable_cubes.js +258 -0
  686. package/sandboxels-package/sandboxels-1.13.2/mods/moving_pixels.js +179 -0
  687. package/sandboxels-package/sandboxels-1.13.2/mods/mush_infection.js +321 -0
  688. package/sandboxels-package/sandboxels-1.13.2/mods/musicalfruit.js +4 -0
  689. package/sandboxels-package/sandboxels-1.13.2/mods/mustard.js +48 -0
  690. package/sandboxels-package/sandboxels-1.13.2/mods/mystic.js +274 -0
  691. package/sandboxels-package/sandboxels-1.13.2/mods/nastystuff.js +57 -0
  692. package/sandboxels-package/sandboxels-1.13.2/mods/nature_Mod.js +1384 -0
  693. package/sandboxels-package/sandboxels-1.13.2/mods/nekonicos_stuff.js +1651 -0
  694. package/sandboxels-package/sandboxels-1.13.2/mods/nested_for_reaction_example.js +19 -0
  695. package/sandboxels-package/sandboxels-1.13.2/mods/nettysaddon.js +48 -0
  696. package/sandboxels-package/sandboxels-1.13.2/mods/neutronium_compressor.js +416 -0
  697. package/sandboxels-package/sandboxels-1.13.2/mods/nicer_flame.js +48 -0
  698. package/sandboxels-package/sandboxels-1.13.2/mods/nirmod.js +296 -0
  699. package/sandboxels-package/sandboxels-1.13.2/mods/nitroglycerin.js +54 -0
  700. package/sandboxels-package/sandboxels-1.13.2/mods/no_blood.js +23 -0
  701. package/sandboxels-package/sandboxels-1.13.2/mods/no_radiation_events.js +3 -0
  702. package/sandboxels-package/sandboxels-1.13.2/mods/no_random_grbs.js +9 -0
  703. package/sandboxels-package/sandboxels-1.13.2/mods/no_scroll.js +5 -0
  704. package/sandboxels-package/sandboxels-1.13.2/mods/noblegas.js +215 -0
  705. package/sandboxels-package/sandboxels-1.13.2/mods/nocancer.js +9 -0
  706. package/sandboxels-package/sandboxels-1.13.2/mods/nocancer2.js +1 -0
  707. package/sandboxels-package/sandboxels-1.13.2/mods/noconfirm.js +1 -0
  708. package/sandboxels-package/sandboxels-1.13.2/mods/nograssgrow.js +6 -0
  709. package/sandboxels-package/sandboxels-1.13.2/mods/noita.js +4895 -0
  710. package/sandboxels-package/sandboxels-1.13.2/mods/noita_demake.js +430 -0
  711. package/sandboxels-package/sandboxels-1.13.2/mods/nopixellimit.js +2 -0
  712. package/sandboxels-package/sandboxels-1.13.2/mods/note_block.js +97 -0
  713. package/sandboxels-package/sandboxels-1.13.2/mods/note_block_advanced.js +628 -0
  714. package/sandboxels-package/sandboxels-1.13.2/mods/nousersthings.js +4081 -0
  715. package/sandboxels-package/sandboxels-1.13.2/mods/nuclear.js +300 -0
  716. package/sandboxels-package/sandboxels-1.13.2/mods/nv7.js +35013 -0
  717. package/sandboxels-package/sandboxels-1.13.2/mods/obsidian.js +51 -0
  718. package/sandboxels-package/sandboxels-1.13.2/mods/occlusion.js +149 -0
  719. package/sandboxels-package/sandboxels-1.13.2/mods/ocean.js +130 -0
  720. package/sandboxels-package/sandboxels-1.13.2/mods/ochem_prerelease.js +774 -0
  721. package/sandboxels-package/sandboxels-1.13.2/mods/oldTooltip.js +23 -0
  722. package/sandboxels-package/sandboxels-1.13.2/mods/oldleds.js +20 -0
  723. package/sandboxels-package/sandboxels-1.13.2/mods/onTryMoveInto.js +85 -0
  724. package/sandboxels-package/sandboxels-1.13.2/mods/onecolor.js +146 -0
  725. package/sandboxels-package/sandboxels-1.13.2/mods/orchidslibrary.js +70 -0
  726. package/sandboxels-package/sandboxels-1.13.2/mods/ores.js +232 -0
  727. package/sandboxels-package/sandboxels-1.13.2/mods/organism.js +915 -0
  728. package/sandboxels-package/sandboxels-1.13.2/mods/oxide.theme.js +46 -0
  729. package/sandboxels-package/sandboxels-1.13.2/mods/page_color.js +35 -0
  730. package/sandboxels-package/sandboxels-1.13.2/mods/paint_event.js +17 -0
  731. package/sandboxels-package/sandboxels-1.13.2/mods/periodic_and_more.js +64 -0
  732. package/sandboxels-package/sandboxels-1.13.2/mods/peta.js +214 -0
  733. package/sandboxels-package/sandboxels-1.13.2/mods/petal_dye.js +40 -0
  734. package/sandboxels-package/sandboxels-1.13.2/mods/pixelResizeTool.js +18 -0
  735. package/sandboxels-package/sandboxels-1.13.2/mods/pizzasstuff.js +2338 -0
  736. package/sandboxels-package/sandboxels-1.13.2/mods/place_all_elements.js +30 -0
  737. package/sandboxels-package/sandboxels-1.13.2/mods/placuchtestthing.js +17 -0
  738. package/sandboxels-package/sandboxels-1.13.2/mods/planet.js +270 -0
  739. package/sandboxels-package/sandboxels-1.13.2/mods/planet_cracker.js +81 -0
  740. package/sandboxels-package/sandboxels-1.13.2/mods/plants.js +1616 -0
  741. package/sandboxels-package/sandboxels-1.13.2/mods/plastic.js +93 -0
  742. package/sandboxels-package/sandboxels-1.13.2/mods/portal.js +120 -0
  743. package/sandboxels-package/sandboxels-1.13.2/mods/potato_chips.js +44 -0
  744. package/sandboxels-package/sandboxels-1.13.2/mods/prairie.js +200 -0
  745. package/sandboxels-package/sandboxels-1.13.2/mods/precisionDrawing.js +58 -0
  746. package/sandboxels-package/sandboxels-1.13.2/mods/pressure.js +223 -0
  747. package/sandboxels-package/sandboxels-1.13.2/mods/pressure_sensitive.js +20 -0
  748. package/sandboxels-package/sandboxels-1.13.2/mods/prideflags.js +307 -0
  749. package/sandboxels-package/sandboxels-1.13.2/mods/primordial_birthpool.js +38 -0
  750. package/sandboxels-package/sandboxels-1.13.2/mods/prompt.js +1215 -0
  751. package/sandboxels-package/sandboxels-1.13.2/mods/prop and prompt variables.js +16 -0
  752. package/sandboxels-package/sandboxels-1.13.2/mods/prop.js +466 -0
  753. package/sandboxels-package/sandboxels-1.13.2/mods/pullers.js +479 -0
  754. package/sandboxels-package/sandboxels-1.13.2/mods/purple_guys_mod.js +3635 -0
  755. package/sandboxels-package/sandboxels-1.13.2/mods/pushers.js +287 -0
  756. package/sandboxels-package/sandboxels-1.13.2/mods/radioactive.js +135 -0
  757. package/sandboxels-package/sandboxels-1.13.2/mods/rainbow_cursor.js +12 -0
  758. package/sandboxels-package/sandboxels-1.13.2/mods/rainbow_tests.js +348 -0
  759. package/sandboxels-package/sandboxels-1.13.2/mods/rainsmod.js +412 -0
  760. package/sandboxels-package/sandboxels-1.13.2/mods/random_elems.js +463 -0
  761. package/sandboxels-package/sandboxels-1.13.2/mods/random_everything.js +7 -0
  762. package/sandboxels-package/sandboxels-1.13.2/mods/random_fixes.js +42 -0
  763. package/sandboxels-package/sandboxels-1.13.2/mods/random_liquids.js +220 -0
  764. package/sandboxels-package/sandboxels-1.13.2/mods/random_rocks.js +164 -0
  765. package/sandboxels-package/sandboxels-1.13.2/mods/random_things.js +69 -0
  766. package/sandboxels-package/sandboxels-1.13.2/mods/randomelements.js +200 -0
  767. package/sandboxels-package/sandboxels-1.13.2/mods/randomness.js +730 -0
  768. package/sandboxels-package/sandboxels-1.13.2/mods/randomness_but_tick.js +1257 -0
  769. package/sandboxels-package/sandboxels-1.13.2/mods/randomness_but_tool.js +26 -0
  770. package/sandboxels-package/sandboxels-1.13.2/mods/ray_cloner.js +150 -0
  771. package/sandboxels-package/sandboxels-1.13.2/mods/rays++.js +60 -0
  772. package/sandboxels-package/sandboxels-1.13.2/mods/rays.js +464 -0
  773. package/sandboxels-package/sandboxels-1.13.2/mods/reactor_supplies_and_others.js +88 -0
  774. package/sandboxels-package/sandboxels-1.13.2/mods/real_light.js +754 -0
  775. package/sandboxels-package/sandboxels-1.13.2/mods/replace.js +79 -0
  776. package/sandboxels-package/sandboxels-1.13.2/mods/replace_all.js +45 -0
  777. package/sandboxels-package/sandboxels-1.13.2/mods/reverse_time.js +421 -0
  778. package/sandboxels-package/sandboxels-1.13.2/mods/rich_grain.js +54 -0
  779. package/sandboxels-package/sandboxels-1.13.2/mods/rising_powders.js +3 -0
  780. package/sandboxels-package/sandboxels-1.13.2/mods/rock_paper_scissors.js +32 -0
  781. package/sandboxels-package/sandboxels-1.13.2/mods/roseyiede.js +363 -0
  782. package/sandboxels-package/sandboxels-1.13.2/mods/rpg.js +1342 -0
  783. package/sandboxels-package/sandboxels-1.13.2/mods/ru_expanded.js +25 -0
  784. package/sandboxels-package/sandboxels-1.13.2/mods/runAfterAutogen and onload restructure.js +1 -0
  785. package/sandboxels-package/sandboxels-1.13.2/mods/runAfterAutogen2.js +56 -0
  786. package/sandboxels-package/sandboxels-1.13.2/mods/sandboxels.js +2501 -0
  787. package/sandboxels-package/sandboxels-1.13.2/mods/saturnsstuff.js +729 -0
  788. package/sandboxels-package/sandboxels-1.13.2/mods/save_loading.js +520 -0
  789. package/sandboxels-package/sandboxels-1.13.2/mods/sbmixup.js +1439 -0
  790. package/sandboxels-package/sandboxels-1.13.2/mods/sbstuff.js +1865 -0
  791. package/sandboxels-package/sandboxels-1.13.2/mods/scenexe.js +770 -0
  792. package/sandboxels-package/sandboxels-1.13.2/mods/schematics.js +214 -0
  793. package/sandboxels-package/sandboxels-1.13.2/mods/scp.js +7831 -0
  794. package/sandboxels-package/sandboxels-1.13.2/mods/selective_paint.js +60 -0
  795. package/sandboxels-package/sandboxels-1.13.2/mods/sensitive.js +20 -0
  796. package/sandboxels-package/sandboxels-1.13.2/mods/shade.js +46 -0
  797. package/sandboxels-package/sandboxels-1.13.2/mods/shader_by_jayd.js +168 -0
  798. package/sandboxels-package/sandboxels-1.13.2/mods/shipstuff.js +198 -0
  799. package/sandboxels-package/sandboxels-1.13.2/mods/singleColor.js +1 -0
  800. package/sandboxels-package/sandboxels-1.13.2/mods/single_humans.js +147 -0
  801. package/sandboxels-package/sandboxels-1.13.2/mods/sky.js +141 -0
  802. package/sandboxels-package/sandboxels-1.13.2/mods/slag_fix.js +25 -0
  803. package/sandboxels-package/sandboxels-1.13.2/mods/smooth_water.js +6 -0
  804. package/sandboxels-package/sandboxels-1.13.2/mods/solid_rock.js +74 -0
  805. package/sandboxels-package/sandboxels-1.13.2/mods/solidcolor.js +146 -0
  806. package/sandboxels-package/sandboxels-1.13.2/mods/solubility.js +287 -0
  807. package/sandboxels-package/sandboxels-1.13.2/mods/some_tf_liquids.js +358 -0
  808. package/sandboxels-package/sandboxels-1.13.2/mods/souls.js +163 -0
  809. package/sandboxels-package/sandboxels-1.13.2/mods/soups.js +104 -0
  810. package/sandboxels-package/sandboxels-1.13.2/mods/spaceship.js +138 -0
  811. package/sandboxels-package/sandboxels-1.13.2/mods/special_property_library.js +155 -0
  812. package/sandboxels-package/sandboxels-1.13.2/mods/sponge_edit.js +76 -0
  813. package/sandboxels-package/sandboxels-1.13.2/mods/sports_beta.js +69 -0
  814. package/sandboxels-package/sandboxels-1.13.2/mods/spouts.js +715 -0
  815. package/sandboxels-package/sandboxels-1.13.2/mods/spring.js +283 -0
  816. package/sandboxels-package/sandboxels-1.13.2/mods/stainless_steel.js +126 -0
  817. package/sandboxels-package/sandboxels-1.13.2/mods/star_wars.js +70 -0
  818. package/sandboxels-package/sandboxels-1.13.2/mods/state_voids.js +347 -0
  819. package/sandboxels-package/sandboxels-1.13.2/mods/static.js +182 -0
  820. package/sandboxels-package/sandboxels-1.13.2/mods/stickyslime.js +3 -0
  821. package/sandboxels-package/sandboxels-1.13.2/mods/stickystuff.js +59 -0
  822. package/sandboxels-package/sandboxels-1.13.2/mods/stormlib.js +99 -0
  823. package/sandboxels-package/sandboxels-1.13.2/mods/stripe_paint.js +110 -0
  824. package/sandboxels-package/sandboxels-1.13.2/mods/structure_test.js +755 -0
  825. package/sandboxels-package/sandboxels-1.13.2/mods/sturdierpowders.js +595 -0
  826. package/sandboxels-package/sandboxels-1.13.2/mods/subspace.js +46 -0
  827. package/sandboxels-package/sandboxels-1.13.2/mods/survival.js +499 -0
  828. package/sandboxels-package/sandboxels-1.13.2/mods/survivalhack.js +500 -0
  829. package/sandboxels-package/sandboxels-1.13.2/mods/sus.js +92 -0
  830. package/sandboxels-package/sandboxels-1.13.2/mods/switches.js +53 -0
  831. package/sandboxels-package/sandboxels-1.13.2/mods/talismanadditions.js +124 -0
  832. package/sandboxels-package/sandboxels-1.13.2/mods/tech.js +282 -0
  833. package/sandboxels-package/sandboxels-1.13.2/mods/test.js +8 -0
  834. package/sandboxels-package/sandboxels-1.13.2/mods/test_2.js +399 -0
  835. package/sandboxels-package/sandboxels-1.13.2/mods/testmod.js +7 -0
  836. package/sandboxels-package/sandboxels-1.13.2/mods/text.js +681 -0
  837. package/sandboxels-package/sandboxels-1.13.2/mods/texture_pack_by_jayd.js +116 -0
  838. package/sandboxels-package/sandboxels-1.13.2/mods/texturepack.js +94 -0
  839. package/sandboxels-package/sandboxels-1.13.2/mods/the_ground.js +3 -0
  840. package/sandboxels-package/sandboxels-1.13.2/mods/the_ground_og.js +2570 -0
  841. package/sandboxels-package/sandboxels-1.13.2/mods/the_snail.js +63 -0
  842. package/sandboxels-package/sandboxels-1.13.2/mods/themostrandomstuff.js +523 -0
  843. package/sandboxels-package/sandboxels-1.13.2/mods/thermal_conduit.js +157 -0
  844. package/sandboxels-package/sandboxels-1.13.2/mods/thiquovite.js +1745 -0
  845. package/sandboxels-package/sandboxels-1.13.2/mods/ticking_temp_stuff.js +494 -0
  846. package/sandboxels-package/sandboxels-1.13.2/mods/time.js +7 -0
  847. package/sandboxels-package/sandboxels-1.13.2/mods/toms_stuff.js +308 -0
  848. package/sandboxels-package/sandboxels-1.13.2/mods/tool_pixel_behavior.js +792 -0
  849. package/sandboxels-package/sandboxels-1.13.2/mods/tooltip.js +32 -0
  850. package/sandboxels-package/sandboxels-1.13.2/mods/toothpaste.js +154 -0
  851. package/sandboxels-package/sandboxels-1.13.2/mods/tpt.js +89 -0
  852. package/sandboxels-package/sandboxels-1.13.2/mods/triggerable_random_powders.js +68 -0
  853. package/sandboxels-package/sandboxels-1.13.2/mods/troll.js +170 -0
  854. package/sandboxels-package/sandboxels-1.13.2/mods/true_flashbang.js +520 -0
  855. package/sandboxels-package/sandboxels-1.13.2/mods/ultimadrink.js +3191 -0
  856. package/sandboxels-package/sandboxels-1.13.2/mods/uncook.js +51 -0
  857. package/sandboxels-package/sandboxels-1.13.2/mods/unhide.js +10 -0
  858. package/sandboxels-package/sandboxels-1.13.2/mods/variety_mod.js +727 -0
  859. package/sandboxels-package/sandboxels-1.13.2/mods/velocity.js +139 -0
  860. package/sandboxels-package/sandboxels-1.13.2/mods/velocity2.js +209 -0
  861. package/sandboxels-package/sandboxels-1.13.2/mods/video.js +125 -0
  862. package/sandboxels-package/sandboxels-1.13.2/mods/vinegar.js +17 -0
  863. package/sandboxels-package/sandboxels-1.13.2/mods/volcanic_expansion.js +94 -0
  864. package/sandboxels-package/sandboxels-1.13.2/mods/war.js +51 -0
  865. package/sandboxels-package/sandboxels-1.13.2/mods/war_crimes.js +131 -0
  866. package/sandboxels-package/sandboxels-1.13.2/mods/waterspout.js +26 -0
  867. package/sandboxels-package/sandboxels-1.13.2/mods/weAllScreamFor.js +218 -0
  868. package/sandboxels-package/sandboxels-1.13.2/mods/weapons.js +1286 -0
  869. package/sandboxels-package/sandboxels-1.13.2/mods/wheel_fix.js +19 -0
  870. package/sandboxels-package/sandboxels-1.13.2/mods/wifi.js +162 -0
  871. package/sandboxels-package/sandboxels-1.13.2/mods/wifi_draw.js +87 -0
  872. package/sandboxels-package/sandboxels-1.13.2/mods/wine.js +8 -0
  873. package/sandboxels-package/sandboxels-1.13.2/mods/wirelike_test.js +681 -0
  874. package/sandboxels-package/sandboxels-1.13.2/mods/worldEdit.js +441 -0
  875. package/sandboxels-package/sandboxels-1.13.2/mods/worldEdit.ts +569 -0
  876. package/sandboxels-package/sandboxels-1.13.2/mods/world_gen_test.js +315 -0
  877. package/sandboxels-package/sandboxels-1.13.2/mods/worldgen_test.js +173 -0
  878. package/sandboxels-package/sandboxels-1.13.2/mods/worldgenlibrary.js +164 -0
  879. package/sandboxels-package/sandboxels-1.13.2/mods/x_dependent_change_test.js +34 -0
  880. package/sandboxels-package/sandboxels-1.13.2/mods/yumcherries.js +543 -0
  881. package/sandboxels-package/sandboxels-1.13.2/mods/zonneschijn7.js +6 -0
  882. package/sandboxels-package/sandboxels-1.13.2/mods/zoom.js +322 -0
  883. package/sandboxels-package/sandboxels-1.13.2/offline-use.html +103 -0
  884. package/sandboxels-package/sandboxels-1.13.2/offline.html +1 -0
  885. package/sandboxels-package/sandboxels-1.13.2/presskit.html +165 -0
  886. package/sandboxels-package/sandboxels-1.13.2/promo.html +13 -0
  887. package/sandboxels-package/sandboxels-1.13.2/scripts/im2elements/code.go +116 -0
  888. package/sandboxels-package/sandboxels-1.13.2/scripts/im2elements/go.mod +5 -0
  889. package/sandboxels-package/sandboxels-1.13.2/scripts/im2elements/go.sum +2 -0
  890. package/sandboxels-package/sandboxels-1.13.2/scripts/im2elements/main.go +58 -0
  891. package/sandboxels-package/sandboxels-1.13.2/scripts/perlin.js +165 -0
  892. package/sandboxels-package/sandboxels-1.13.2/service-worker.js +16 -0
  893. package/sandboxels-package/sandboxels-1.13.2/sitemap.txt +13 -0
  894. package/sandboxels-package/sandboxels-1.13.2/style.css +1105 -0
  895. package/sandboxels-package/sandboxels-1.13.2/template.html +86 -0
  896. package/sandboxels-package/sandboxels-1.13.2/tips.html +147 -0
  897. package/sandboxels-package/sandboxels-1.13.2/translate.html +105 -0
  898. package/README.md +0 -3
@@ -0,0 +1,2242 @@
1
+ <html>
2
+
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>Sandbox Game</title>
6
+ <link href="https://fonts.googleapis.com/css?family=Press+Start+2P" rel="stylesheet">
7
+ <meta name="viewport" content="width=device-width, initial-scale=1">
8
+
9
+ <style>
10
+ html, body {
11
+ width: 100%;
12
+ height: 100%;
13
+ margin: 0;
14
+ }
15
+ body {
16
+ font-family: 'Press Start 2P';
17
+ background-color: #000000;
18
+ color: #ffffff;
19
+ }
20
+ h1 {
21
+ padding: 10px;
22
+ }
23
+ #gameDiv { /*game canvas*/
24
+ border: 1px solid #ffffff;
25
+ position: absolute;
26
+ left: 50%;
27
+ transform: translate(-50%, -0%);
28
+ -webkit-touch-callout: none; /* iOS Safari */
29
+ -webkit-user-select: none; /* Safari */
30
+ -khtml-user-select: none; /* Konqueror HTML */
31
+ -moz-user-select: none; /* Old versions of Firefox */
32
+ -ms-user-select: none; /* Internet Explorer/Edge */
33
+ user-select: none;
34
+ }
35
+ button, input[type="submit"], input[type="reset"] {
36
+ background: none;
37
+ color: inherit;
38
+ border: none;
39
+ padding: 0;
40
+ font: inherit;
41
+ cursor: pointer;
42
+ outline: inherit;
43
+ }
44
+ #underBox {
45
+ position: absolute;
46
+ left: 50%;
47
+ transform: translate(-50%, -0%);
48
+ margin-top: 10px;
49
+ width: 100%;
50
+ }
51
+ #controls button {
52
+ padding: 5px 10px;
53
+ border-radius: 5px;
54
+ font-size: 1em;
55
+ text-shadow: 0.5px 1px 4px #000000;
56
+ color: rgba(255, 255, 255, 0.75);
57
+ border: 1px solid #797979;
58
+ margin: 0px 5px 5px 5px;
59
+ font-variant: small-caps;
60
+ }
61
+ #controls button.bright {
62
+ text-shadow: 0.5px 1px 4px #ffffff;
63
+ color: rgba(0, 0, 0, 0.75);
64
+ }
65
+ /*Darken when active*/
66
+ #controls button:active, #controls button:active:hover {
67
+ filter: brightness(60%);
68
+ }
69
+ #controls button:hover {
70
+ filter: brightness(90%);
71
+ }
72
+ #controls button:disabled {
73
+ cursor: not-allowed;
74
+ }
75
+ #controls button[current="true"], #controls button[on="true"] {
76
+ border: 1px solid #ffffff;
77
+ filter: brightness(110%);
78
+ box-shadow: 0 5px 15px rgba(255, 255, 255, .4);
79
+ color: rgba(255, 255, 255, 1);
80
+ }
81
+ #controls button.bright[current="true"] {
82
+ color: rgba(0, 0, 0, 1);
83
+ }
84
+ #controls button[on="true"] {
85
+ border-color:lime;
86
+ color:lime;
87
+ }
88
+ #controls div {
89
+ display:block;
90
+ }
91
+ .stat {
92
+ margin-right: 25px;
93
+ margin-bottom: 5px;
94
+ float:right;
95
+ }
96
+ #stats {
97
+ margin: 0px 5px 5px 5px;
98
+ font-size: 0.75em;
99
+ height: 2em;
100
+ }
101
+ #stat-pos, #stat-pixels, #stat-shift, #stat-tps, #stat-ticks {
102
+ float:left;
103
+ }
104
+ .categoryName {
105
+ font-size: 0.75em;
106
+ text-transform: uppercase;
107
+ margin-left: 5px;
108
+ vertical-align: middle;
109
+ }
110
+ #extraInfo {
111
+ margin:5px
112
+ }
113
+ </style>
114
+
115
+ <script>
116
+ //replaceAll polyfill
117
+ if (!String.prototype.replaceAll) {String.prototype.replaceAll = function(str, newStr){if (Object.prototype.toString.call(str).toLowerCase() === '[object regexp]') {return this.replace(str, newStr);}return this.replace(new RegExp(str, 'g'), newStr);};}
118
+ </script>
119
+
120
+ <script>
121
+
122
+ behaviors = {
123
+ "POWDER": [
124
+ "XX|XX|XX",
125
+ "XX|XX|XX",
126
+ "M2|M1|M2",
127
+ ],
128
+ "AGPOWDER": [
129
+ "M2|M1|M2",
130
+ "XX|XX|XX",
131
+ "XX|XX|XX",
132
+ ],
133
+ "LIQUID": [
134
+ "XX|XX|XX",
135
+ "M2|XX|M2",
136
+ "M1|M1|M1",
137
+ ],
138
+ "AGLIQUID": [
139
+ "M1|M1|M1",
140
+ "M2|XX|M2",
141
+ "XX|XX|XX",
142
+ ],
143
+ "WALL": [
144
+ "XX|XX|XX",
145
+ "XX|XX|XX",
146
+ "XX|XX|XX",
147
+ ],
148
+ "UL_UR": [
149
+ "M1|M1|M1",
150
+ "M2|XX|M2",
151
+ "XX|XX|XX",
152
+ ],
153
+ "GAS": [
154
+ "M2|M1|M2",
155
+ "M1|XX|M1",
156
+ "M2|M1|M2",
157
+ ],
158
+ "DGAS": [
159
+ "M2|M1|M2",
160
+ "M1|DL%5|M1",
161
+ "M2|M1|M2",
162
+ ],
163
+ "SUPPORT": [
164
+ "XX|XX|XX",
165
+ "SP|XX|SP",
166
+ "XX|M1|XX",
167
+ ],
168
+ "SUPPORTPOWDER": [
169
+ "XX|XX|XX",
170
+ "SP|XX|SP",
171
+ "M2|M1|M2",
172
+ ],
173
+ "DELETE": [
174
+ "XX|DL|XX",
175
+ "DL|XX|DL",
176
+ "XX|DL|XX",
177
+ ],
178
+ "FILL": [
179
+ "XX|CL|XX",
180
+ "CL|XX|CL",
181
+ "XX|CL|XX",
182
+ ],
183
+ "STURDYPOWDER": [
184
+ "XX|XX|XX",
185
+ "XX|XX|XX",
186
+ "XX|M1|XX",
187
+ ],
188
+ "SELFDELETE": [
189
+ "XX|XX|XX",
190
+ "XX|DL|XX",
191
+ "XX|XX|XX",
192
+ ],
193
+ "FOAM": [
194
+ "SW:water%10|SW:water%10|SW:water%10",
195
+ "XX|DL%5|XX",
196
+ "M2%25|M1%25|M2%25",
197
+ ],
198
+ "BUBBLE": [
199
+ "SW:water%25|SW:water%25|SW:water%25",
200
+ "M1%5|DL%0.25|M1%5",
201
+ "M1%2|M1%1|M1%2",
202
+ ],
203
+ "STICKY": [
204
+ "XX|ST|XX",
205
+ "ST|XX|ST",
206
+ "XX|ST AND M1|XX",
207
+ ],
208
+ }
209
+
210
+ airDensity = 1.225; // kg/m^3
211
+ airTemp = 20; // Celsius
212
+ // Object storing various powders, called elements
213
+ // name - name of the element
214
+ // color - color of the element's pixel
215
+ // density - density of the element [unused currently] (kg/m^3)
216
+ // behavior - behavior of the element
217
+ // flam - temperature of combustion [unused currently]
218
+ // temp - default temperature of the element (Celsius)
219
+ // tempHigh - highest temperature before state change
220
+ // tempLow - lowest temperature before state change
221
+ // stateHigh - element transformed into when tempHigh is reached
222
+ // stateLow - element transformed into when tempLow is reached
223
+ // viscosity - how slow a liquid will move (higher = slower) (cps)
224
+
225
+ // [Future]
226
+ // changeAfter - seconds before element dissolves
227
+ // change - element transformed into after time
228
+ elements = {
229
+ "heat": {
230
+ "name": "heat",
231
+ "color": "#ff0000",
232
+ "behavior": behaviors.WALL,
233
+ "temp": 2,
234
+ "category": "tools",
235
+ },
236
+ "cool": {
237
+ "name": "cool",
238
+ "color": "#0000ff",
239
+ "behavior": behaviors.WALL,
240
+ "temp": -2,
241
+ "category": "tools",
242
+ },
243
+ "sand": {
244
+ "name": "sand",
245
+ "color": "#e6d577",
246
+ "behavior": behaviors.POWDER,
247
+ "density": 1602,
248
+ "tempHigh": 1700,
249
+ "stateHigh": "molten_glass",
250
+ "category": "land",
251
+ },
252
+ "water": {
253
+ "name": "water",
254
+ "color": "#2167ff",
255
+ "behavior": behaviors.LIQUID,
256
+ "density": 997,
257
+ "tempHigh": 100,
258
+ "stateHigh": "steam",
259
+ "tempLow": 0,
260
+ "stateLow": "ice",
261
+ "viscosity": 1,
262
+ "category": "liquids",
263
+ },
264
+ "dirt": {
265
+ "name": "dirt",
266
+ "color": ["#9e6b4b","#9e6b4b","#9e6b4b","#9e6b4b","#9e6b4b","#9e6b4b","#9e6b4b","#9e6b4b","#9e6b4b","#9e6b4b","#9e6b4b","#9e6b4b","#9e6b4b","#9e6b4b","#b0a39b"],
267
+ "behavior": behaviors.POWDER,
268
+ "tempHigh":1200,
269
+ "category":"land",
270
+ },
271
+ "plant": {
272
+ "name": "plant",
273
+ "color": "#00bf00",
274
+ "behavior": [
275
+ "XX|DL:carbon_dioxide%50|XX",
276
+ "DL:carbon_dioxide%50|XX|DL:carbon_dioxide%50",
277
+ "XX|DL:carbon_dioxide%50|XX",
278
+ ],
279
+ "category":"life",
280
+ "burn":65,
281
+ "burnTime":50,
282
+ },
283
+ "grass": {
284
+ "name": "grass",
285
+ "color": "#00ff00",
286
+ "behavior": [
287
+ "XX|XX|XX",
288
+ "XX|XX|XX",
289
+ "XX|M1|XX",
290
+ ],
291
+ "tempHigh": 400,
292
+ "stateHigh": "fire",
293
+ "burn":50,
294
+ "burnTime":20,
295
+ "category":"land",
296
+ },
297
+ "wall": {
298
+ "name": "wall",
299
+ "color": "#808080",
300
+ "behavior": behaviors.WALL,
301
+ "density": 0,
302
+ "category": "solids",
303
+ },
304
+ "fire": {
305
+ "name": "fire",
306
+ "color": ["#ff6b21","#ffa600","#ff4000"],
307
+ "behavior": behaviors.UL_UR,
308
+ "density": 1300,
309
+ "temp":400,
310
+ "tempLow":350,
311
+ "stateLow": "smoke",
312
+ "tempHigh": 6095,
313
+ "stateHigh": "plasma",
314
+ "category": "energy",
315
+ "burning": true,
316
+ "burnTime": 25,
317
+ "burnInto": "smoke",
318
+ },
319
+ "steam": {
320
+ "name": "steam",
321
+ "color": "#abd6ff",
322
+ "behavior": behaviors.GAS,
323
+ "density": 0.013,
324
+ "temp": 100,
325
+ "tempLow": 95,
326
+ "stateLow": "water",
327
+ "category": "gases",
328
+ },
329
+ "ice": {
330
+ "name": "ice",
331
+ "color": "#c5e9f0",
332
+ "behavior": behaviors.WALL,
333
+ "density": 917,
334
+ "temp": 0,
335
+ "tempHigh": 5,
336
+ "stateHigh": "water",
337
+ "category": "solids",
338
+ },
339
+ "snow": {
340
+ "name": "snow",
341
+ "color": "#e1f8fc",
342
+ "behavior": behaviors.POWDER,
343
+ "density": 100,
344
+ "temp": 0,
345
+ "tempHigh": 5,
346
+ "stateHigh": "water",
347
+ "category": "land",
348
+ },
349
+ "packed_snow": {
350
+ "name": "packed snow",
351
+ "color": "#bcdde3",
352
+ "behavior": behaviors.SUPPORTPOWDER,
353
+ "density": 100,
354
+ "temp": 0,
355
+ "tempHigh": 20,
356
+ "stateHigh": "water",
357
+ "category": "land",
358
+ },
359
+ "wood": {
360
+ "name": "wood",
361
+ "color": "#a0522d",
362
+ "behavior": behaviors.WALL,
363
+ "density": 745,
364
+ "tempHigh": 400,
365
+ "stateHigh": "fire",
366
+ "category": "solids",
367
+ "burn": 5,
368
+ "burnTime": 300,
369
+ "burnInto": ["ash","charcoal"],
370
+ },
371
+ "smoke": {
372
+ "name": "smoke",
373
+ "color": "#383838",
374
+ "behavior": behaviors.DGAS,
375
+ "density": 1180,
376
+ "temp": 114,
377
+ "tempHigh": 605,
378
+ "stateHigh": "fire",
379
+ "deleteAfter": 100,
380
+ "category": "gases",
381
+ },
382
+ "rock": {
383
+ "name": "rock",
384
+ "color": ["#808080","#4f4f4f","#949494"],
385
+ "behavior": behaviors.POWDER,
386
+ "density": 2700,
387
+ "tempHigh": 950,
388
+ "stateHigh": "magma",
389
+ "category": "land",
390
+ },
391
+ "magma": {
392
+ "name": "magma",
393
+ "color": ["#ff6f00","#ff8c00","#ff4d00"],
394
+ "behavior": [
395
+ "XX|CR:fire%2.5|XX",
396
+ "M2|XX|M2",
397
+ "M1|M1|M1",
398
+ ],
399
+ "temp": 950,
400
+ "tempLow": 800,
401
+ "stateLow": "rock",
402
+ "viscosity": 10000,
403
+ "category": "liquids",
404
+ },
405
+ "concrete": {
406
+ "name": "concrete",
407
+ "color": "#ababab",
408
+ "behavior": behaviors.SUPPORT,
409
+ "density": 2400,
410
+ "tempHigh": 1500,
411
+ "stateHigh": "magma",
412
+ "category": "structure",
413
+ },
414
+ "plasma": {
415
+ "name": "plasma",
416
+ "color": ["#8800ff","#b184d9","#8800ff"],
417
+ "behavior": behaviors.GAS,
418
+ "temp":12750,
419
+ "tempChange":-100,
420
+ "tempLow":10000,
421
+ "stateLow": "fire",
422
+ "category": "energy",
423
+ "burning": true,
424
+ },
425
+ "iron": {
426
+ "name": "iron",
427
+ "color": "#cbcdcd",
428
+ "behavior": behaviors.WALL,
429
+ "tempHigh": 1538,
430
+ "category": "solids",
431
+ },
432
+ "glass": {
433
+ "name": "glass",
434
+ "color": "#5e7c80",
435
+ "behavior": behaviors.WALL,
436
+ "tempHigh": 1500,
437
+ "category": "solids",
438
+ },
439
+ "glass_shard": {
440
+ "name": "glass shard",
441
+ "color": "#5e7c80",
442
+ "behavior": behaviors.POWDER,
443
+ "tempHigh": 1500,
444
+ "stateHigh": "molten_glass",
445
+ "category": "structure",
446
+ },
447
+ "blood": {
448
+ "name": "blood",
449
+ "color": "#ff0000",
450
+ "behavior": behaviors.LIQUID,
451
+ "viscosity": 10,
452
+ "category":"liquids",
453
+ },
454
+ "honey": {
455
+ "name": "honey",
456
+ "color": ["#ffd700","#ffae00"],
457
+ "behavior": behaviors.LIQUID,
458
+ "viscosity": 10000,
459
+ "category":"liquids",
460
+ },
461
+ "ketchup": {
462
+ "name": "ketchup",
463
+ "color": "#ff3119",
464
+ "behavior": behaviors.LIQUID,
465
+ "viscosity": 50000,
466
+ "category":"liquids",
467
+ },
468
+ "molasses": {
469
+ "name": "molasses",
470
+ "color": "#240f00",
471
+ "behavior": behaviors.LIQUID,
472
+ "viscosity": 7500,
473
+ "category":"liquids",
474
+ },
475
+ "filler": {
476
+ "name": "filler",
477
+ "color": "#ae4cd9",
478
+ "behavior": behaviors.FILL,
479
+ "category":"special",
480
+ },
481
+ "gravel": {
482
+ "name": "gravel",
483
+ "color": "#454b51",
484
+ "behavior": behaviors.POWDER,
485
+ "category":"land",
486
+ },
487
+ "slime": {
488
+ "name": "slime",
489
+ "color": "#81cf63",
490
+ "behavior": behaviors.LIQUID,
491
+ "viscosity": 5000,
492
+ "category":"liquids",
493
+ },
494
+ "ruins": {
495
+ "name": "ruins",
496
+ "color": "#5c5c5c",
497
+ "behavior": [
498
+ "XX|SP|XX",
499
+ "XX|XX|XX",
500
+ "M2%1|M1|M2%1"
501
+ ],
502
+ "category":"structure",
503
+ },
504
+ "void": {
505
+ "name": "void",
506
+ "color": "#262626",
507
+ "behavior": behaviors.DELETE,
508
+ "category":"special",
509
+ },
510
+ "flea": {
511
+ "name": "flea",
512
+ "color": "#9e4732",
513
+ "behavior": [
514
+ "M2|XX|M2",
515
+ "DL:blood|XX|DL:blood",
516
+ "M2|M1|M2",
517
+ ],
518
+ "tempHigh": 35,
519
+ "stateHigh": "ash",
520
+ "category":"life",
521
+ "burn":95,
522
+ "burnTime":25,
523
+ },
524
+ "ant": {
525
+ "name": "ant",
526
+ "color": "#4a0903",
527
+ "behavior": [
528
+ "SW:dirt,sand,gravel%5|XX|SW:dirt,sand,gravel%5",
529
+ "M2|XX|M2",
530
+ "SW:dirt,sand,gravel%5|M1|SW:dirt,sand,gravel%5",
531
+ ],
532
+ "tempHigh": 53.7,
533
+ "stateHigh": "ash",
534
+ "category":"life",
535
+ "burn":95,
536
+ "burnTime":25,
537
+ },
538
+ "fly": {
539
+ "name": "fly",
540
+ "color": "#303012",
541
+ "behavior": [
542
+ "M1|XX|M1",
543
+ "DL:plant,meat,cooked_meat|XX|DL:plant,meat,cooked_meat",
544
+ "M1|M2|M1",
545
+ ],
546
+ "tempHigh": 47,
547
+ "stateHigh": "ash",
548
+ "category":"life",
549
+ "burn":95,
550
+ "burnTime":25,
551
+ },
552
+ "frog": {
553
+ "name": "frog",
554
+ "color": "#607300",
555
+ "behavior": [
556
+ "M2%3|CR:slime%0.01|M2%3",
557
+ "DL:fly|XX|DL:fly",
558
+ "XX|M1|XX",
559
+ ],
560
+ "temp": 19.1,
561
+ "tempHigh": 41,
562
+ "stateHigh": "meat",
563
+ "tempLow": -18,
564
+ "stateLow": "frozen_frog",
565
+ "category":"life",
566
+ "burn":75,
567
+ "burnTime":30,
568
+ },
569
+ "frozen_frog": {
570
+ "name": "frozen frog",
571
+ "color": "#007349",
572
+ "behavior": behaviors.STURDYPOWDER,
573
+ "temp": -18,
574
+ "tempHigh": 0,
575
+ "stateHigh": "frog",
576
+ "tempLow": -18,
577
+ "stateLow": "frozen_frog",
578
+ "category":"life",
579
+ "hidden": true,
580
+ },
581
+ "fish": {
582
+ "name": "fish",
583
+ "color": "#ac8650",
584
+ "behavior": [
585
+ "SW:water%6|M2%5|SW:water%6",
586
+ "DL:algae|XX|DL:algae",
587
+ "SW:water%8|M1|SW:water%8",
588
+ ],
589
+ "temp": 20,
590
+ "tempHigh": 32,
591
+ "stateHigh": "meat",
592
+ "category":"life",
593
+ "burn":40,
594
+ "burnTime":100,
595
+ },
596
+ "algae": {
597
+ "name": "algae",
598
+ "color": "#00870e",
599
+ "behavior": [
600
+ "XX|XX|XX",
601
+ "SW:water%1|XX|SW:water%1",
602
+ "SW:water%10|M1|SW:water%18",
603
+ ],
604
+ "category":"life",
605
+ "burn":95,
606
+ "burnTime":20,
607
+ },
608
+ "heater": {
609
+ "name": "heater",
610
+ "color": "#881111",
611
+ "behavior": [
612
+ "XX|HT|XX",
613
+ "HT|XX|HT",
614
+ "XX|HT|XX",
615
+ ],
616
+ "category":"machines",
617
+ },
618
+ "cooler": {
619
+ "name": "cooler",
620
+ "color": "#111188",
621
+ "behavior": [
622
+ "XX|CO|XX",
623
+ "CO|XX|CO",
624
+ "XX|CO|XX",
625
+ ],
626
+ "category":"machines",
627
+ },
628
+ "superheater": {
629
+ "name": "superheater",
630
+ "color": "#dd1111",
631
+ "behavior": [
632
+ "XX|HT:10|XX",
633
+ "HT:10|XX|HT:10",
634
+ "XX|HT:10|XX",
635
+ ],
636
+ "category":"machines",
637
+ },
638
+ "freezer": {
639
+ "name": "freezer",
640
+ "color": "#1111dd",
641
+ "behavior": [
642
+ "XX|CO:10|XX",
643
+ "CO:10|XX|CO:10",
644
+ "XX|CO:10|XX",
645
+ ],
646
+ "category":"machines",
647
+ },
648
+ "smoke_grenade": {
649
+ "name": "smoke grenade",
650
+ "color": "#2b382c",
651
+ "behavior": [
652
+ "XX|CR:smoke|XX",
653
+ "XX|XX|XX",
654
+ "M2|M1|M2",
655
+ ],
656
+ "category":"weapons",
657
+ },
658
+ "torch": {
659
+ "name": "torch",
660
+ "color": "#d68542",
661
+ "behavior": [
662
+ "XX|CR:fire|XX",
663
+ "XX|XX|XX",
664
+ "XX|XX|XX",
665
+ ],
666
+ "category":"special",
667
+ },
668
+ "water_spout": {
669
+ "name": "water spout",
670
+ "color": "#606378",
671
+ "behavior": [
672
+ "XX|CR:water|XX",
673
+ "CR:water|XX|CR:water",
674
+ "XX|CR:water|XX",
675
+ ],
676
+ "category":"special",
677
+ },
678
+ "bone_marrow": {
679
+ "name": "bone marrow",
680
+ "color": "#c97265",
681
+ "behavior": [
682
+ "XX|CR:blood,bone,bone%5|XX",
683
+ "CR:blood,bone,bone%5|XX|CR:blood,bone,bone%5",
684
+ "XX|CR:blood,bone,bone%5|XX",
685
+ ],
686
+ "category":"life",
687
+ "hidden": true,
688
+ },
689
+ "bone": {
690
+ "name": "bone",
691
+ "color": "#d9d9d9",
692
+ "behavior": behaviors.SUPPORT,
693
+ "category":"life",
694
+ },
695
+ "anti_powder": {
696
+ "name": "anti powder",
697
+ "color": "#ebd1d8",
698
+ "behavior": behaviors.AGPOWDER,
699
+ "category":"special",
700
+ },
701
+ "anti_fluid": {
702
+ "name": "anti fluid",
703
+ "color": "#d1dbeb",
704
+ "behavior": behaviors.AGLIQUID,
705
+ "category":"special",
706
+ },
707
+ "vertical": {
708
+ "name": "vertical",
709
+ "color": "#d9d9d9",
710
+ "behavior": [
711
+ "XX|M1|XX",
712
+ "CR:wall|XX|CR:wall",
713
+ "XX|XX|XX",
714
+ ],
715
+ "category":"special",
716
+ "hidden":true,
717
+ },
718
+ "horizontal": {
719
+ "name": "horizontal",
720
+ "color": "#d9d9d9",
721
+ "behavior": [
722
+ "XX|CR:wall|XX",
723
+ "XX|XX|M1",
724
+ "XX|CR:wall|XX",
725
+ ],
726
+ "category":"special",
727
+ "hidden":true,
728
+ },
729
+ "rain_cloud": {
730
+ "name": "rain cloud",
731
+ "color": "#636b78",
732
+ "behavior": [
733
+ "XX|XX|XX",
734
+ "XX|XX|XX",
735
+ "XX|CR:water%1|XX",
736
+ ],
737
+ "category":"special",
738
+ },
739
+ "snow_cloud": {
740
+ "name": "snow cloud",
741
+ "color": "#7e8691",
742
+ "behavior": [
743
+ "XX|XX|XX",
744
+ "XX|XX|XX",
745
+ "XX|CR:packed_snow%1|XX",
746
+ ],
747
+ "category":"special",
748
+ },
749
+ "rocket": {
750
+ "name": "rocket",
751
+ "color": "#ff0000",
752
+ "behavior": [
753
+ "XX|M1|XX",
754
+ "XX|XX|XX",
755
+ "XX|CR:fire|XX",
756
+ ],
757
+ "category":"weapons",
758
+ "hidden":true,
759
+ },
760
+ "ash": {
761
+ "name": "ash",
762
+ "color": ["#8c8c8c","#9c9c9c"],
763
+ "behavior": behaviors.POWDER,
764
+ "category":"energy",
765
+ },
766
+ "meat": {
767
+ "name": "meat",
768
+ "color": "#b86565",
769
+ "behavior": behaviors.SUPPORT,
770
+ "tempHigh": 80,
771
+ "stateHigh": "cooked_meat",
772
+ "tempLow": -18,
773
+ "stateLow": "frozen_meat",
774
+ "category":"life",
775
+ "burn":25,
776
+ "burnTime":200,
777
+ "burnInto":"cooked_meat",
778
+ },
779
+ "cooked_meat": {
780
+ "name": "cooked meat",
781
+ "color": "#61361c",
782
+ "behavior": behaviors.STURDYPOWDER,
783
+ "tempHigh": 120,
784
+ "stateHigh": "ash",
785
+ "category":"life",
786
+ "hidden":true,
787
+ "burn":25,
788
+ "burnTime":200,
789
+ "burnInto": "ash",
790
+ },
791
+ "frozen_meat": {
792
+ "name": "frozen meat",
793
+ "color": "#65b8aa",
794
+ "behavior": behaviors.STURDYPOWDER,
795
+ "temp": -18,
796
+ "tempHigh": 0,
797
+ "stateHigh": "meat",
798
+ "category":"life",
799
+ "hidden":true,
800
+ },
801
+ "light": {
802
+ "name": "light",
803
+ "color": "#ffffa8",
804
+ "behavior": behaviors.SELFDELETE,
805
+ "category":"energy",
806
+ },
807
+ "pointer": {
808
+ "name": "pointer",
809
+ "color": "#ff0000",
810
+ "behavior": behaviors.SELFDELETE,
811
+ "category":"tools",
812
+ "hidden":true,
813
+ },
814
+ "charcoal": {
815
+ "name": "charcoal",
816
+ "color": "#2b2b2b",
817
+ "behavior": behaviors.POWDER,
818
+ "burn": 25,
819
+ "burnTime": 1000,
820
+ "burnInto": "carbon_dioxide",
821
+ "category": "energy",
822
+ },
823
+ "carbon_dioxide": {
824
+ "name": "carbon dioxide",
825
+ "color": "#2f2f2f",
826
+ "behavior": behaviors.GAS,
827
+ "category": "gases",
828
+ "tempLow": -78.5,
829
+ "stateLow": "dry_ice",
830
+ },
831
+ "dry_ice": {
832
+ "name": "dry ice",
833
+ "color": "#e6e6e6",
834
+ "behavior": behaviors.WALL,
835
+ "category": "solids",
836
+ "temp": -78.5,
837
+ "tempHigh": -78.5,
838
+ "stateHigh": "carbon_dioxide",
839
+ },
840
+ "oil": {
841
+ "name": "oil",
842
+ "color": "#300000",
843
+ "behavior": behaviors.LIQUID,
844
+ "category": "liquids",
845
+ "burn": 100,
846
+ "burnTime": 30,
847
+ "burnInto": ["carbon_dioxide","fire"],
848
+ "viscosity": 250,
849
+ },
850
+ "lamp_oil": {
851
+ "name": "lamp oil",
852
+ "color": "#1a0803",
853
+ "behavior": behaviors.LIQUID,
854
+ "category": "liquids",
855
+ "burn": 95,
856
+ "burnTime": 2000,
857
+ "burnInto": ["carbon_dioxide","fire"],
858
+ "viscosity": 3,
859
+ },
860
+ "propane": {
861
+ "name": "propane",
862
+ "color": "#cfcfcf",
863
+ "behavior": behaviors.GAS,
864
+ "category": "gases",
865
+ "burn": 100,
866
+ "burnTime": 5,
867
+ "fireColor": ["#00ffff","#00ffdd"],
868
+ },
869
+ "methane": {
870
+ "name": "methane",
871
+ "color": "#9f9f9f",
872
+ "behavior": behaviors.GAS,
873
+ "category": "gases",
874
+ "burn": 85,
875
+ "burnTime": 5,
876
+ "fireColor": ["#00ffff","#00ffdd"],
877
+ },
878
+ "oxygen": {
879
+ "name": "oxygen",
880
+ "color": "#99c7ff",
881
+ "behavior": behaviors.GAS,
882
+ "category": "gases",
883
+ "burn": 100,
884
+ "burnTime": 2,
885
+ "tempLow": -183.94,
886
+ "stateLow": "liquid_oxygen",
887
+ },
888
+ "liquid_oxygen": {
889
+ "name": "liquid oxygen",
890
+ "color": "#00ad99",
891
+ "behavior": behaviors.LIQUID,
892
+ "category": "liquids",
893
+ "burn": 100,
894
+ "burnTime": 2,
895
+ "temp":-182.94,
896
+ "tempHigh": -182.94,
897
+ "stateHigh": "oxygen",
898
+ },
899
+ "tinder": {
900
+ "name": "tinder",
901
+ "color": ["#917256","#87684F","#735F4A","#5D4C3E","#4B3A2E"],
902
+ "behavior": behaviors.STURDYPOWDER,
903
+ "category": "energy",
904
+ "burn": 50,
905
+ "burnTime": 100,
906
+ },
907
+ "static": {
908
+ "name": "static",
909
+ "color": ["#ffffff","#888888","#000000"],
910
+ "behavior": [
911
+ "XX|XX|XX",
912
+ "XX|CC:ffffff,9c9c9c,454545|XX",
913
+ "XX|XX|XX",
914
+ ],
915
+ "category": "special",
916
+ },
917
+ "borax": {
918
+ "name": "borax",
919
+ "color": "#ffffff",
920
+ "behavior": behaviors.POWDER,
921
+ "burn": 15,
922
+ "burnTime": 200,
923
+ "fireColor": ["#34eb67","#5ceb34"],
924
+ "tempHigh": 743,
925
+ },
926
+ "bamboo": {
927
+ "name": "bamboo",
928
+ "color": "#336600",
929
+ "behavior": behaviors.WALL,
930
+ "tempHigh": 400,
931
+ "stateHigh": "fire",
932
+ "burn": 10,
933
+ "burnTime": 200,
934
+ "category": "life",
935
+ },
936
+ "bamboo_plant": {
937
+ "name": "bamboo plant",
938
+ "color": "#b4c781",
939
+ "behavior": [
940
+ "XX|M2%0.25|XX",
941
+ "XX|L2:bamboo AND CH:bamboo%0.025|XX",
942
+ "XX|M1|XX",
943
+ ],
944
+ "tempHigh": 400,
945
+ "stateHigh": "fire",
946
+ "burn": 30,
947
+ "burnTime": 100,
948
+ "category": "life",
949
+ },
950
+ "clay": {
951
+ "name": "clay",
952
+ "color": "#d4c59c",
953
+ "behavior": behaviors.SUPPORT,
954
+ "tempHigh": 135,
955
+ "stateHigh": "baked_clay",
956
+ "category": "land",
957
+ },
958
+ "baked_clay": {
959
+ "name": "baked clay",
960
+ "color": "#b85746",
961
+ "behavior": behaviors.SUPPORT,
962
+ "category": "structure",
963
+ },
964
+ "brick": {
965
+ "name": "brick",
966
+ "color": "#cb4141",
967
+ "behavior": behaviors.WALL,
968
+ "category": "structure",
969
+ "tempHigh": 1540,
970
+ },
971
+
972
+ "sapling": {
973
+ "name": "sapling",
974
+ "color": "#3e9c3e",
975
+ "behavior": [
976
+ "XX|M2%2|XX",
977
+ "XX|L2:wood,tree_branch AND CH:wood%0.25|XX",
978
+ "XX|M1|XX",
979
+ ],
980
+ "tempHigh": 400,
981
+ "stateHigh": "fire",
982
+ "burn": 65,
983
+ "burnTime": 15,
984
+ "category": "life",
985
+ },
986
+ "grass_seed": {
987
+ "name": "grass seed",
988
+ "color": "#00ff00",
989
+ "behavior": [
990
+ "XX|M2%0.05|XX",
991
+ "XX|L2:grass|XX",
992
+ "XX|M1|XX",
993
+ ],
994
+ "tempHigh": 400,
995
+ "stateHigh": "fire",
996
+ "burn": 50,
997
+ "burnTime": 20,
998
+ "category": "life",
999
+ },
1000
+ "wheat_seed": {
1001
+ "name": "wheat seed",
1002
+ "color": "#b6c981",
1003
+ "behavior": [
1004
+ "XX|M2%0.25|XX",
1005
+ "CR:wheat%0.05|L2:wheat|CR:wheat%0.05",
1006
+ "XX|M1|XX",
1007
+ ],
1008
+ "tempHigh": 400,
1009
+ "stateHigh": "fire",
1010
+ "burn": 50,
1011
+ "burnTime": 20,
1012
+ "category": "life",
1013
+ },
1014
+ "wheat": {
1015
+ "name": "wheat",
1016
+ "color": "#c9bc81",
1017
+ "behavior": behaviors.WALL,
1018
+ "tempHigh": 400,
1019
+ "stateHigh": "fire",
1020
+ "burn":40,
1021
+ "burnTime":25,
1022
+ "category":"life",
1023
+ "hidden":true,
1024
+ },
1025
+ "straw": {
1026
+ "name": "straw",
1027
+ "color": "#c9bc81",
1028
+ "behavior": behaviors.SUPPORT,
1029
+ "tempHigh": 400,
1030
+ "stateHigh": "fire",
1031
+ "burn": 60,
1032
+ "burnTime": 40,
1033
+ "category": "structure",
1034
+ },
1035
+ "flower_seed": {
1036
+ "name": "flower seed",
1037
+ "color": "#0e990e",
1038
+ "behavior": [
1039
+ "XX|M2%1.5|XX",
1040
+ "XX|L2:grass AND CH:pistil%0.3|XX",
1041
+ "XX|M1|XX",
1042
+ ],
1043
+ "tempHigh": 400,
1044
+ "stateHigh": "fire",
1045
+ "burn":50,
1046
+ "burnTime":20,
1047
+ "category":"life",
1048
+ },
1049
+ "pistil": {
1050
+ "name": "petal",
1051
+ "color": "#734e39",
1052
+ "behavior": [
1053
+ "XX|CR:petal%10|XX",
1054
+ "CR:petal%10|XX|CR:petal%10",
1055
+ "XX|M1|XX",
1056
+ ],
1057
+ "tempHigh": 400,
1058
+ "stateHigh": "fire",
1059
+ "burn":50,
1060
+ "burnTime":20,
1061
+ "category":"life",
1062
+ "hidden": true,
1063
+ },
1064
+ "petal": {
1065
+ "name": "petal",
1066
+ "color": "#ff0000",
1067
+ "behavior": behaviors.WALL,
1068
+ "tempHigh": 400,
1069
+ "stateHigh": "fire",
1070
+ "burn":50,
1071
+ "burnTime":20,
1072
+ "category":"life",
1073
+ "hidden": true,
1074
+ },
1075
+ "tree_branch": {
1076
+ "name": "tree branch",
1077
+ "color": "#a0522d",
1078
+ "behavior": [
1079
+ "CR:plant,tree_branch%2|CR:plant,plant,plant,tree_branch%2|CR:plant,tree_branch%2",
1080
+ "XX|XX|XX",
1081
+ "XX|XX|XX",
1082
+ ],
1083
+ "density": 745,
1084
+ "tempHigh": 400,
1085
+ "stateHigh": "fire",
1086
+ "category": "solids",
1087
+ "burn": 40,
1088
+ "burnTime": 50,
1089
+ "burnInto": ["ash","charcoal"],
1090
+ "hidden": true,
1091
+ },
1092
+ "vine": {
1093
+ "name": "vine",
1094
+ "color": "#005900",
1095
+ "behavior": [
1096
+ "XX|XX|XX",
1097
+ "XX|XX|XX",
1098
+ "XX|CL%2.5|XX",
1099
+ ],
1100
+ "tempHigh": 400,
1101
+ "stateHigh": "fire",
1102
+ "burn": 35,
1103
+ "burnTime": 100,
1104
+ "category": "life",
1105
+ },
1106
+ "burner": {
1107
+ "name": "burner",
1108
+ "color": "#d6baa9",
1109
+ "behavior": [
1110
+ "CR:propane|CR:propane|CR:propane",
1111
+ "XX|XX|XX",
1112
+ "XX|XX|XX",
1113
+ ],
1114
+ "category": "machines"
1115
+ },
1116
+ "foam": {
1117
+ "name": "foam",
1118
+ "color": "#cad2e3",
1119
+ "behavior": behaviors.FOAM,
1120
+ "category": "liquids"
1121
+ },
1122
+ "bubble": {
1123
+ "name": "bubble",
1124
+ "color": "#afc7fa",
1125
+ "behavior": behaviors.BUBBLE,
1126
+ "category": "liquids"
1127
+ },
1128
+ "rainbow": {
1129
+ "name": "rainbow",
1130
+ "color": ["#ff0000","#ff8800","#ffff00","#00ff00","#00ffff","#0000ff","#ff00ff"],
1131
+ "behavior": [
1132
+ "XX|XX|XX",
1133
+ "XX|CC:ff0000,ff8800,ffff00,00ff00,00ffff,0000ff,ff00ff|XX",
1134
+ "XX|XX|XX",
1135
+ ],
1136
+ "category": "special",
1137
+ },
1138
+ "copper": {
1139
+ "name": "copper",
1140
+ "color": "#e08128",
1141
+ "behavior": [
1142
+ "XX|XX|XX",
1143
+ "XX|CH:oxidized_copper%0.001|XX",
1144
+ "XX|XX|XX",
1145
+ ],
1146
+ "category": "solids",
1147
+ "tempHigh": 1085,
1148
+ },
1149
+ "oxidized_copper": {
1150
+ "name": "oxidized copper",
1151
+ "color": "#7f9c21",
1152
+ "behavior": [
1153
+ "XX|XX|XX",
1154
+ "XX|XX|XX",
1155
+ "XX|XX|XX",
1156
+ ],
1157
+ "category": "solids",
1158
+ "hidden": true,
1159
+ "tempHigh": 1085,
1160
+ "stateHigh": "molten_copper",
1161
+ },
1162
+ "acid": {
1163
+ "name": "acid",
1164
+ "color": ["#b5cf91","#a1ff5e","#288f2a"],
1165
+ "behavior": [
1166
+ "XX|DL%5|XX",
1167
+ "DL%5 AND M2|XX|DL%5 AND M2",
1168
+ "DL%5 AND M2|DL%10 AND M1|DL%5 AND M2",
1169
+ ],
1170
+ "category": "liquids",
1171
+ "burn": 30,
1172
+ "burnTime": 1,
1173
+ },
1174
+ "dust": {
1175
+ "name": "dust",
1176
+ "color": "#666666",
1177
+ "behavior": behaviors.POWDER,
1178
+ "burn": 10,
1179
+ "burnTime": 1,
1180
+ },
1181
+ "glue": {
1182
+ "name": "glue",
1183
+ "color": "#f0f0f0",
1184
+ "behavior": behaviors.STICKY,
1185
+ "category": "liquids",
1186
+ },
1187
+ "gray_goo": {
1188
+ "name": "gray goo",
1189
+ "color": "#c0c0c0",
1190
+ "behavior": [
1191
+ "XX|CH:gray_goo|XX",
1192
+ "CH:gray_goo|DL%5|CH:gray_goo",
1193
+ "XX|CH:gray_goo AND M1|XX",
1194
+ ],
1195
+ "category": "machines",
1196
+ },
1197
+ "virus": {
1198
+ "name": "virus",
1199
+ "color": "#cc00ff",
1200
+ "behavior": [
1201
+ "XX|CH:virus%25|XX",
1202
+ "CH:virus%25|XX|CH:virus%25",
1203
+ "XX|CH:virus%25 AND M1|XX",
1204
+ ],
1205
+ "category": "special",
1206
+ },
1207
+ "worm": {
1208
+ "name": "worm",
1209
+ "color": "#402208",
1210
+ "behavior": [
1211
+ "DL:ash%1 AND SW:dirt,sand,gravel,ash%3|XX|DL:ash%1 AND SW:dirt,sand,gravel,ash%3",
1212
+ "DL:ash%1 AND M2%10|XX|DL:ash%1 AND M2%10",
1213
+ "DL:ash%1 AND SW:dirt,sand,gravel,ash%3|M1|DL:ash%1 AND SW:dirt,sand,gravel,ash%3",
1214
+ ],
1215
+ "tempHigh": 40,
1216
+ "stateHigh": "ash",
1217
+ "category":"life",
1218
+ "burn":95,
1219
+ "burnTime":25,
1220
+ },
1221
+ "termite": {
1222
+ "name": "termite",
1223
+ "color": "#f5a056",
1224
+ "behavior": [
1225
+ "SW:wood,tree_branch%5|XX|SW:wood,tree_branch%5",
1226
+ "DL:wood%4 AND M2%15|XX|DL:wood%4 AND M2%15",
1227
+ "SW:wood,tree_branch%5|M1|SW:wood,tree_branch%5",
1228
+ ],
1229
+ "tempHigh": 37.78,
1230
+ "stateHigh": "ash",
1231
+ "category":"life",
1232
+ "burn":95,
1233
+ "burnTime":25,
1234
+ },
1235
+
1236
+
1237
+ }
1238
+
1239
+ // Loop through behaviors and each behavior, if it is a string, split the items and replace the value with the array
1240
+ for (var behavior in behaviors) {
1241
+ if (typeof behaviors[behavior][0] === "string") {
1242
+ var newbehavior = [];
1243
+ for (var i = 0; i < behaviors[behavior].length; i++) {
1244
+ newbehavior.push(behaviors[behavior][i].split("|"));
1245
+ }
1246
+ behaviors[behavior] = newbehavior;
1247
+ }
1248
+ }
1249
+
1250
+ // Loop through each element. If it has a tempHigh, but not a stateHigh, create a new molten element
1251
+ for (element in elements) {
1252
+ if (elements[element].tempHigh && !elements[element].stateHigh) {
1253
+ var newname = "molten_"+element;
1254
+ elements[element].stateHigh = newname;
1255
+ elements[newname] = {
1256
+ "name": newname.replaceAll("_"," "),
1257
+ "color": ["#ff6f00","#ff8c00","#ff4d00"],
1258
+ "behavior": behaviors.LIQUID,
1259
+ "density": elements[element].density/2,
1260
+ "temp": elements[element].tempHigh,
1261
+ "tempLow": elements[element].tempHigh-100,
1262
+ "stateLow": element,
1263
+ "viscosity": 10000,
1264
+ "hidden": true,
1265
+ }
1266
+ }
1267
+ if (elements[element].behavior && typeof elements[element].behavior[0] === "string") {
1268
+ var newbehavior = [];
1269
+ for (var i = 0; i < elements[element].behavior.length; i++) {
1270
+ newbehavior.push(elements[element].behavior[i].split("|"));
1271
+ }
1272
+ elements[element].behavior = newbehavior;
1273
+ }
1274
+ }
1275
+
1276
+ function hexToRGB(hex) {
1277
+ var result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
1278
+ return result ? {
1279
+ r: parseInt(result[1], 16),
1280
+ g: parseInt(result[2], 16),
1281
+ b: parseInt(result[3], 16)
1282
+ } : null;
1283
+ }
1284
+ // convert every color in the elements object to rgb
1285
+ for (var key in elements) {
1286
+ if (elements.hasOwnProperty(key)) {
1287
+ // if the color is an array, loop over each one
1288
+ if (elements[key].color instanceof Array) {
1289
+ var rgbs = [];
1290
+ var rgbos = [];
1291
+ for (var i = 0; i < elements[key].color.length; i++) {
1292
+ var c = elements[key].color[i];
1293
+ if (c.startsWith("#")) {
1294
+ var rgb = hexToRGB(c);
1295
+ rgbs.push("rgb("+rgb.r+","+rgb.g+","+rgb.b+")");
1296
+ rgbos.push(rgb);
1297
+ }
1298
+ else {
1299
+ rgbs.push(c);
1300
+ }
1301
+ }
1302
+ elements[key].color = rgbs;
1303
+ elements[key].colorObject = rgbos;
1304
+ } else {
1305
+ // if elements[key].color starts with #
1306
+ if (elements[key].color.startsWith("#")) {
1307
+ var rgb = hexToRGB(elements[key].color);
1308
+ elements[key].color = "rgb("+rgb.r+","+rgb.g+","+rgb.b+")";
1309
+ elements[key].colorObject = rgb;
1310
+ }
1311
+ }
1312
+ }
1313
+ }
1314
+
1315
+ currentPixels = [];
1316
+ currentID = 0;
1317
+ // Pixel class, with attributes such as x, y, and element
1318
+ class Pixel {
1319
+ constructor(x, y, element) {
1320
+ this.x = x;
1321
+ this.y = y;
1322
+ this.element = element;
1323
+ var elementInfo = elements[element];
1324
+ this.color = pixelColorPick(this);
1325
+ // If element doesn't have temp attribute, set temp to airTemp
1326
+ if (elementInfo.temp==undefined) {
1327
+ this.temp = airTemp;
1328
+ } else {
1329
+ this.temp = elementInfo.temp;
1330
+ }
1331
+ this.start = pixelTicks;
1332
+ this.id = currentID;
1333
+ if (elementInfo.burning) {
1334
+ this.burning = true;
1335
+ this.burnStart = pixelTicks;
1336
+ }
1337
+ else {
1338
+ this.burning = false;
1339
+ }
1340
+ currentID++;
1341
+ pixelMap[x][y] = this;
1342
+ }
1343
+ }
1344
+ pixelSize = 10;
1345
+
1346
+ function outOfBounds(x,y) {
1347
+ // Returns true if the pixel is out of bounds
1348
+ return y > height-1 || y < 1 || x > width-1 || x < 1
1349
+ }
1350
+ function isEmpty(x, y, ignoreBounds=false) {
1351
+ if (outOfBounds(x,y)) {
1352
+ return ignoreBounds;
1353
+ }
1354
+ return pixelMap[x][y] == undefined;
1355
+ }
1356
+ function canMove(pixel,x,y) {
1357
+ if (isEmpty(x,y)) {
1358
+ return true;
1359
+ }
1360
+ }
1361
+ function movePixel(pixel,x,y,leaveBehind=null) {
1362
+ // if the pixel isn't in currentPixels, return
1363
+ if (!currentPixels.includes(pixel)) {
1364
+ return;
1365
+ }
1366
+ // Delete the pixel from the old position
1367
+ delete pixelMap[pixel.x][pixel.y];
1368
+ if (leaveBehind != null && isEmpty(pixel.x,pixel.y)) { createPixel(leaveBehind,pixel.x,pixel.y); }
1369
+ pixel.x = x;
1370
+ pixel.y = y;
1371
+ pixelMap[x][y] = pixel;
1372
+ }
1373
+ function clonePixel(pixel,x,y) {
1374
+ currentPixels.push(new Pixel(x, y, pixel.element));
1375
+ }
1376
+ function createPixel(element,x,y) {
1377
+ currentPixels.push(new Pixel(x, y, element));
1378
+ }
1379
+ function deletePixel(x,y,id=null) {
1380
+ delete pixelMap[x][y];
1381
+ if (id != null) {
1382
+ for (var i = 0; i < currentPixels.length; i++) {
1383
+ if (currentPixels[i].id == id) {
1384
+ currentPixels.splice(i, 1);
1385
+ return;
1386
+ }
1387
+ }
1388
+ }
1389
+ for (var i = 0; i < currentPixels.length; i++) {
1390
+ if (currentPixels[i].x == x && currentPixels[i].y == y) {
1391
+ currentPixels.splice(i, 1);
1392
+ break;
1393
+ }
1394
+ }
1395
+ }
1396
+ function swapPixels(pixel1,pixel2) {
1397
+ var tempX = pixel1.x;
1398
+ var tempY = pixel1.y;
1399
+ pixel1.x = pixel2.x;
1400
+ pixel1.y = pixel2.y;
1401
+ pixel2.x = tempX;
1402
+ pixel2.y = tempY;
1403
+ pixelMap[pixel1.x][pixel1.y] = pixel1;
1404
+ pixelMap[pixel2.x][pixel2.y] = pixel2;
1405
+ }
1406
+
1407
+ function behaviorCoords(x,y,bx,by) {
1408
+ bx -= 1;
1409
+ by -= 1;
1410
+ x += bx;
1411
+ y += by;
1412
+ return {x:x,y:y};
1413
+ }
1414
+ /* New Behavior Example (Sand)
1415
+ [
1416
+ ["XX","XX","XX"],
1417
+ ["XX","XX","XX"],
1418
+ ["M2","M1","M2"]
1419
+ ] */
1420
+ /* Behavior Rules
1421
+ XX = Ignore
1422
+ M1 = Move (First Priority)
1423
+ M2 = Move (Second Priority)
1424
+ SP = Support (Doesn't move if all aren't empty)
1425
+ DL = Delete
1426
+ CL = Clone
1427
+ CH = Change
1428
+ RP = Replace (Move to an existing element)
1429
+ CR:element_name = Create a pixel of element_name
1430
+ LB:element_name = Leave behind a pixel of element_name when moved (Must be center cell)
1431
+ %(num) = Chance of rule happening
1432
+ L1:element_name = Leave behind only on M1 moves
1433
+ L2:element_name = Leave behind only on M2 moves
1434
+ SW = Swap
1435
+ HT = Heat
1436
+ CO = Cool
1437
+ CC = Change Color (Hexadecimal)
1438
+ ST = Stick
1439
+ */
1440
+ function pixelTick(pixel) {
1441
+ if (pixel.start == pixelTicks) {return}
1442
+ var info = elements[pixel.element];
1443
+ var behavior = info.behavior;
1444
+ var x = pixel.x;
1445
+ var y = pixel.y;
1446
+ var move1Spots = [];
1447
+ var move2Spots = [];
1448
+ var supportSpots = [];
1449
+ var replaceSpots = [];
1450
+ var swapSpots = [];
1451
+ var sticking = false;
1452
+ var deleted = false;
1453
+ var leaveBehind = null;
1454
+ var leaveBehind1 = null;
1455
+ var leaveBehind2 = null;
1456
+ // Parse behavior
1457
+ for (var by = 0; by < behavior.length; by++) {
1458
+ for (var bx = 0; bx < behavior[by].length; bx++) {
1459
+ var b0 = behavior[by][bx].trim();
1460
+ //if (b.includes(" OR ")) {
1461
+ // b = b.split(" OR ")[Math.floor(Math.random()*b.split(" OR ").length)];
1462
+ //}
1463
+ // Loop through b0.split(" AND ")
1464
+ for (var i = 0; i < b0.split(" AND ").length; i++) {
1465
+ var b = b0.split(" AND ")[i];
1466
+ var arg = null;
1467
+ if (b.includes(":")) {
1468
+ arg = b.split(":")[1].split(/[\:\%]/)[0];
1469
+ if (!b.includes("%")) {
1470
+ b = b.split(/[\:\%]/)[0];
1471
+ }
1472
+ }
1473
+ // If b has "%" followed by a number in it, it's a chance to move
1474
+ if (b.includes("%")) {
1475
+ // Split the string at the "%" and use the second half as the chance (float)
1476
+ var chance = parseFloat(b.split("%")[1]);
1477
+ //console.log(b+": "+(Math.random()*100 < chance));
1478
+ b = b.split(/[\:\%]/)[0];
1479
+ }
1480
+ else { var chance = 100; }
1481
+ if (b == "XX" || b=="") {continue}
1482
+ if (Math.random()*100 < chance) {
1483
+ var newCoords = behaviorCoords(x,y,bx,by);
1484
+ if (b == "M1") {
1485
+ if (!((Math.random()*100) < 100 / ((info.viscosity || 1) ** 0.25))) {
1486
+ newCoords.x = x;
1487
+ }
1488
+ move1Spots.push(newCoords);
1489
+ }
1490
+ else if (b == "M2") {
1491
+ if (!((Math.random()*100) < 100 / ((info.viscosity || 1) ** 0.25))) {
1492
+ newCoords.x = x;
1493
+ }
1494
+ move2Spots.push(newCoords);
1495
+ }
1496
+ else if (b == "SP") {
1497
+ supportSpots.push({x:newCoords.x,y:newCoords.y,arg:arg});
1498
+ }
1499
+ else if (b == "DL") {
1500
+ if ((!isEmpty(newCoords.x,newCoords.y)) && !outOfBounds(newCoords.x,newCoords.y)) {
1501
+ // if the pixel at newCoords is the same element as the pixel, ignore
1502
+ newPixel = pixelMap[newCoords.x][newCoords.y];
1503
+ if ((!(newPixel.element == pixel.element)) || (newCoords.x == x && newCoords.y == y)) {
1504
+ if (arg != null) { var args = arg.split(","); }
1505
+ if (arg == null || args.includes(newPixel.element)) {
1506
+ deletePixel(newCoords.x,newCoords.y);
1507
+ if (newCoords.x == x && newCoords.y == y) {
1508
+ deleted = true;
1509
+ }
1510
+ }
1511
+ }
1512
+ }
1513
+ }
1514
+ else if (b == "CL") {
1515
+ if (isEmpty(newCoords.x,newCoords.y)) {
1516
+ clonePixel(pixel,newCoords.x,newCoords.y);
1517
+ }
1518
+ }
1519
+ //Change pixel
1520
+ else if (b == "CH") {
1521
+ if (!isEmpty(newCoords.x,newCoords.y) && !outOfBounds(newCoords.x,newCoords.y)) {
1522
+ var newPixel = pixelMap[newCoords.x][newCoords.y];
1523
+ if (newPixel.element != arg) {
1524
+ newPixel.element = arg;
1525
+ newPixel.color = pixelColorPick(newPixel);
1526
+ newPixel.start = pixelTicks;
1527
+ }
1528
+ }
1529
+ }
1530
+ //Replace pixel
1531
+ /*else if (b == "RP") {
1532
+ replaceSpots.push({x:newCoords.x,y:newCoords.y,arg:arg});
1533
+ }*/
1534
+ //Create pixel
1535
+ else if (b == "CR") {
1536
+ if (isEmpty(newCoords.x,newCoords.y)) {
1537
+ if (arg == null) {
1538
+ arg = pixel.element;
1539
+ }
1540
+ else if (arg.includes(",")) {
1541
+ arg = arg.split(",")[Math.floor(Math.random()*arg.split(",").length)];
1542
+ }
1543
+ createPixel(arg,newCoords.x,newCoords.y);
1544
+ }
1545
+ }
1546
+ //Leave behind element
1547
+ else if (b == "LB" || b == "L1" || b == "L2") {
1548
+ if (arg != null && arg.includes(",")) {
1549
+ arg = arg.split(",")[Math.floor(Math.random()*arg.split(",").length)];
1550
+ }
1551
+ if (b=="LB") {leaveBehind = arg;}
1552
+ else if (b=="L1") {leaveBehind1 = arg;}
1553
+ else if (b=="L2") {leaveBehind2 = arg;}
1554
+ }
1555
+ //Swap
1556
+ else if (b == "SW") {
1557
+ if (!isEmpty(newCoords.x,newCoords.y) && !outOfBounds(newCoords.x,newCoords.y)) {
1558
+ var newPixel = pixelMap[newCoords.x][newCoords.y];
1559
+ if (arg != null) { var args = arg.split(","); }
1560
+ if (arg == null || args.includes(newPixel.element)) {
1561
+ swapSpots.push({x:newCoords.x,y:newCoords.y});
1562
+ }
1563
+ }
1564
+ }
1565
+ //Heat
1566
+ else if (b == "HT") {
1567
+ if (!isEmpty(newCoords.x,newCoords.y) && !outOfBounds(newCoords.x,newCoords.y)) {
1568
+ var newPixel = pixelMap[newCoords.x][newCoords.y];
1569
+ if (arg != null) {arg = parseFloat(arg)}
1570
+ else {arg = 1}
1571
+ if (arg == NaN) {arg = 1}
1572
+ newPixel.temp += arg;
1573
+ pixelTempCheck(newPixel);
1574
+ }
1575
+ }
1576
+ //Cool
1577
+ else if (b == "CO") {
1578
+ if (!isEmpty(newCoords.x,newCoords.y) && !outOfBounds(newCoords.x,newCoords.y)) {
1579
+ var newPixel = pixelMap[newCoords.x][newCoords.y];
1580
+ if (arg != null) {arg = parseFloat(arg)}
1581
+ else {arg = 1}
1582
+ if (arg == NaN) {arg = 1}
1583
+ newPixel.temp -= arg;
1584
+ pixelTempCheck(newPixel);
1585
+ }
1586
+ }
1587
+ //Change color
1588
+ else if (b == "CC") {
1589
+ if (!isEmpty(newCoords.x,newCoords.y) && !outOfBounds(newCoords.x,newCoords.y)) {
1590
+ var newPixel = pixelMap[newCoords.x][newCoords.y];
1591
+ if (arg == null) {arg = newPixel.colorObject}
1592
+ else {
1593
+ if (arg.includes(",")) {
1594
+ arg = arg.split(",")[Math.floor(Math.random()*arg.split(",").length)];
1595
+ }
1596
+ if (!arg.startsWith("#")) {
1597
+ arg = "#" + arg;
1598
+ }
1599
+ }
1600
+ newPixel.color = pixelColorPick(newPixel,arg);
1601
+ }
1602
+ }
1603
+ //Stick
1604
+ else if (b=="ST") {
1605
+ if (!isEmpty(newCoords.x,newCoords.y) && !outOfBounds(newCoords.x,newCoords.y)) {
1606
+ var newPixel = pixelMap[newCoords.x][newCoords.y];
1607
+ if (newPixel.element != pixel.element && (arg == null || newPixel.element == arg)) {
1608
+ sticking = true
1609
+ }
1610
+ }
1611
+ }
1612
+
1613
+
1614
+ }
1615
+ }
1616
+ }
1617
+ }
1618
+ if (deleted) {return;}
1619
+ var move = true;
1620
+ if (supportSpots.length > 0) {
1621
+ var supportCount = 0;
1622
+ var allEmpty = true;
1623
+ for (var i = 0; i < supportSpots.length; i++) {
1624
+ var bx = supportSpots[i].x;
1625
+ var by = supportSpots[i].y;
1626
+ var arg = supportSpots[i].arg;
1627
+ if ((!isEmpty(bx,by)) && !outOfBounds(bx,by)) {
1628
+ if (pixelMap[bx][by].element == arg || arg == null) {
1629
+ supportCount++;
1630
+ }
1631
+ }
1632
+ }
1633
+ if (supportCount == supportSpots.length) {
1634
+ move = false;
1635
+ }
1636
+ }
1637
+ /*replaceSpotsCopy = replaceSpots.slice();
1638
+ if (replaceSpots.length > 0) {
1639
+ while (move1Spots.length > 0) {
1640
+ // coords = random item of replaceSpots
1641
+ var newCoords = replaceSpots[Math.floor(Math.random()*replaceSpots.length)];
1642
+ if (!isEmpty(newCoords.x,newCoords.y) && !outOfBounds(newCoords.x,newCoords.y)) {
1643
+ if (newPixel.element == newCoords.arg || newCoords.arg == null) {
1644
+ var newPixel = pixelMap[newCoords.x][newCoords.y];
1645
+ var newCoords = replaceSpots[Math.floor(Math.random()*replaceSpots.length)];
1646
+ deletePixel(newCoords.x,newCoords.y);
1647
+ pixelMap[newCoords.x][newCoords.y] = pixel;
1648
+ pixel.x = newCoords.x;
1649
+ pixel.y = newCoords.y;
1650
+ moved = true;
1651
+ replaceSpotsCopy.splice(replaceSpotsCopy.indexOf(newCoords),1);
1652
+ break;
1653
+ }
1654
+ }
1655
+ replaceSpots.splice(replaceSpots.indexOf(newCoords),1);
1656
+ }
1657
+ }
1658
+ if (replaceSpotsCopy.length > 0 && !moved) {
1659
+ // combine replaceSpotsCopy and move2Spots
1660
+ move2Spots = move2Spots.concat(replaceSpotsCopy);
1661
+ }*/
1662
+
1663
+ var moved = false;
1664
+
1665
+ if (swapSpots.length > 0) {
1666
+ var coords = swapSpots[Math.floor(Math.random()*swapSpots.length)];
1667
+ swapPixels(pixel,pixelMap[coords.x][coords.y]);
1668
+ move = false;
1669
+ moved = true;
1670
+ }
1671
+
1672
+ if (sticking) {
1673
+ move = false;
1674
+ }
1675
+
1676
+ // Move First Priority
1677
+ if (move) {
1678
+ if (move1Spots.length > 0) {
1679
+ // While move1Spots is not empty
1680
+ while (move1Spots.length > 0) {
1681
+ // coords = random item of move1Spots
1682
+ var coords = move1Spots[Math.floor(Math.random()*move1Spots.length)];
1683
+ var nx = coords.x;
1684
+ var ny = coords.y;
1685
+ if (isEmpty(nx,ny)) { // If coords is empty, move to coords
1686
+ movePixel(pixel,nx,ny,leaveBehind1 || leaveBehind);
1687
+ moved = true;
1688
+ break;
1689
+ }
1690
+ else { // Remove from move1Spots
1691
+ move1Spots.splice(move1Spots.indexOf(coords),1);
1692
+ }
1693
+ }
1694
+ }
1695
+ // Move Second Priority
1696
+ if (!moved && move2Spots.length > 0) {
1697
+ // While move2Spots is not empty
1698
+ while (move2Spots.length > 0) {
1699
+ // coords = random item of move2Spots
1700
+ var coords = move2Spots[Math.floor(Math.random()*move2Spots.length)];
1701
+ var nx = coords.x;
1702
+ var ny = coords.y;
1703
+ if (isEmpty(nx,ny)) { // If coords is empty, move to coords
1704
+ movePixel(pixel,nx,ny,leaveBehind2 || leaveBehind);
1705
+ moved = true;
1706
+ break;
1707
+ }
1708
+ else { // Remove from move2Spots
1709
+ move2Spots.splice(move2Spots.indexOf(coords),1);
1710
+ }
1711
+ }
1712
+ }
1713
+ }
1714
+
1715
+ if (pixel.burning) {
1716
+ pixel.temp += 1;
1717
+ pixelTempCheck(pixel);
1718
+ var burnSpots = [
1719
+ {x:pixel.x+1,y:pixel.y},
1720
+ {x:pixel.x-1,y:pixel.y},
1721
+ {x:pixel.x,y:pixel.y+1},
1722
+ {x:pixel.x,y:pixel.y-1},
1723
+ ];
1724
+ // loop through burnspots
1725
+ for (var i = 0; i < burnSpots.length; i++) {
1726
+ var burnSpot = burnSpots[i];
1727
+ if (!isEmpty(burnSpot.x,burnSpot.y) && !outOfBounds(burnSpot.x,burnSpot.y)) {
1728
+ var newPixel = pixelMap[burnSpot.x][burnSpot.y];
1729
+ if (elements[newPixel.element].burn && !newPixel.burning) {
1730
+ if (Math.floor(Math.random()*100) < elements[newPixel.element].burn) {
1731
+ newPixel.burning = true;
1732
+ newPixel.burnStart = pixelTicks;
1733
+ }
1734
+ }
1735
+ }
1736
+ }
1737
+
1738
+ if ((pixelTicks - pixel.burnStart > (info.burnTime || 200)) && Math.floor(Math.random()*100)<(info.burn || 10)) {
1739
+ var burnInto = info.burnInto;
1740
+ if (burnInto == undefined) {
1741
+ burnInto = 'fire';
1742
+ }
1743
+ else if (burnInto instanceof Array) {
1744
+ burnInto = burnInto[Math.floor(Math.random()*burnInto.length)];
1745
+ }
1746
+ pixel.element = burnInto;
1747
+ if (info.fireColor != undefined && burnInto == "fire") {
1748
+ pixel.color = pixelColorPick(pixel,info.fireColor);
1749
+ }
1750
+ else {
1751
+ pixel.color = pixelColorPick(pixel)
1752
+ }
1753
+ pixel.start = pixelTicks;
1754
+ if (elements[burnInto].burning != true) {
1755
+ pixel.burning = false;
1756
+ delete pixel.burnStart;
1757
+ }
1758
+ else {
1759
+ pixel.burning = true;
1760
+ pixel.burnStart = pixelTicks;
1761
+ }
1762
+ if (elements[burnInto].temp != undefined) {
1763
+ pixel.temp = elements[burnInto].temp;
1764
+ pixelTempCheck(pixel)
1765
+ }
1766
+ }
1767
+ else if (pixel.element != "fire" && isEmpty(pixel.x,pixel.y-1) && Math.floor(Math.random()*100)<10) {
1768
+ createPixel("fire",pixel.x,pixel.y-1);
1769
+ pixelMap[pixel.x][pixel.y-1].temp = pixel.temp+(pixelTicks - pixel.burnStart);
1770
+ if (info.fireColor != undefined) {
1771
+ pixelMap[pixel.x][pixel.y-1].color = pixelColorPick(pixelMap[pixel.x][pixel.y-1],info.fireColor);
1772
+ }
1773
+ }
1774
+
1775
+ }
1776
+
1777
+ if (info.tempChange != undefined) {
1778
+ pixel.temp += info.tempChange;
1779
+ pixelTempCheck(pixel);
1780
+ }
1781
+
1782
+
1783
+ }
1784
+ function pixelColorPick(pixel,customColor=null) {
1785
+ var element = pixel.element;
1786
+ var elementInfo = elements[element];
1787
+ //if (elementInfo.behavior instanceof Array) {
1788
+
1789
+ if (customColor != null) {
1790
+ if (Array.isArray(customColor)) {
1791
+ customColor = customColor[Math.floor(Math.random() * customColor.length)];
1792
+ }
1793
+ if (customColor.startsWith("#")) {
1794
+ customColor = hexToRGB(customColor);
1795
+ }
1796
+ var rgb = customColor;
1797
+ }
1798
+ else {
1799
+ var rgb = elements[element].colorObject; // {r, g, b}
1800
+ // If rgb is an array, choose a random item
1801
+ if (Array.isArray(rgb)) {
1802
+ rgb = rgb[Math.floor(Math.random() * rgb.length)];
1803
+ }
1804
+ }
1805
+ // Randomly darken or lighten the RGB color
1806
+ var coloroffset = Math.floor(Math.random() * (Math.random() > 0.5 ? -1 : 1) * Math.random() * 15);
1807
+ var r = rgb.r + coloroffset;
1808
+ var g = rgb.g + coloroffset;
1809
+ var b = rgb.b + coloroffset;
1810
+ // Make sure the color is within the RGB range
1811
+ r = Math.max(0, Math.min(255, r));
1812
+ g = Math.max(0, Math.min(255, g));
1813
+ b = Math.max(0, Math.min(255, b));
1814
+ var color = "rgb("+r+","+g+","+b+")";
1815
+
1816
+ /*}
1817
+ else {
1818
+ var color = elementInfo.color;
1819
+ if (Array.isArray(color)) {
1820
+ color = color[Math.floor(Math.random() * color.length)];
1821
+ }
1822
+ }*/
1823
+ return color;
1824
+ }
1825
+ function pixelTempCheck(pixel) {
1826
+ var elementInfo = elements[pixel.element];
1827
+ // If the pixel's temp >= the elementInfo tempHigh, change pixel.element to elementInfo.stateHigh
1828
+ if (pixel.temp >= elementInfo.tempHigh) {
1829
+ pixel.element = elementInfo.stateHigh;
1830
+ pixel.color = pixelColorPick(pixel);
1831
+ if (pixel.burning) {
1832
+ pixel.burning = false;
1833
+ delete pixel.burnStart;
1834
+ }
1835
+ if (elements[elementInfo.stateHigh].burning == true) {
1836
+ pixel.burning = true;
1837
+ pixel.burnStart = pixelTicks;
1838
+ }
1839
+ }
1840
+ // If the pixel's temp <= the elementInfo tempLow, change pixel.element to elementInfo.stateLow
1841
+ else if (pixel.temp <= elementInfo.tempLow) {
1842
+ pixel.element = elementInfo.stateLow;
1843
+ pixel.color = pixelColorPick(pixel);
1844
+ if (pixel.burning) {
1845
+ pixel.burning = false;
1846
+ delete pixel.burnStart;
1847
+ }
1848
+ if (elements[elementInfo.stateLow].burning) {
1849
+ pixel.burning = true;
1850
+ pixel.burnStart = pixelTicks;
1851
+ }
1852
+ }
1853
+ }
1854
+ function getNeighbors(pixel) {
1855
+ var neighbors = [];
1856
+ var x = pixel.x;
1857
+ var y = pixel.y;
1858
+ if (!isEmpty(x-1,y,true)) { neighbors.push(pixelMap[x-1][y]); }
1859
+ if (!isEmpty(x+1,y,true)) { neighbors.push(pixelMap[x+1][y]); }
1860
+ if (!isEmpty(x,y-1,true)) { neighbors.push(pixelMap[x][y-1]); }
1861
+ if (!isEmpty(x,y+1,true)) { neighbors.push(pixelMap[x][y+1]); }
1862
+ return neighbors;
1863
+ }
1864
+ hiding = false;
1865
+ function drawPixels(forceTick=false) {
1866
+ if (!hiding) {
1867
+ var canvas = document.getElementById("game");
1868
+ var ctx = canvas.getContext("2d");
1869
+ }
1870
+ // Draw the current pixels
1871
+ // newCurrentPixels = shuffled currentPixels
1872
+ var newCurrentPixels = currentPixels.slice();
1873
+ newCurrentPixels.sort(function() {return 0.5 - Math.random()});
1874
+ for (var i = 0; i < newCurrentPixels.length; i++) {
1875
+ pixel = newCurrentPixels[i];
1876
+ if (pixelMap[pixel.x][pixel.y] == undefined) {continue}
1877
+ if ((!paused) || forceTick) {pixelTick(pixel);};
1878
+ if (!hiding) {
1879
+ ctx.fillStyle = pixel.color;
1880
+ ctx.fillRect(pixel.x*10, pixel.y*10, 10, 10);
1881
+ }
1882
+ }
1883
+ if ((!paused) || forceTick) {pixelTicks++};
1884
+ }
1885
+ function tick() {
1886
+ // If mouseIsDown, do mouseAction
1887
+ if (mouseIsDown) {
1888
+ mouseAction(null,mousePos.x,mousePos.y);
1889
+ }
1890
+ // Get the canvas
1891
+ var canvas = document.getElementById("game");
1892
+ var ctx = canvas.getContext("2d");
1893
+ // Clear the canvas
1894
+ ctx.clearRect(0, 0, canvas.width, canvas.height);
1895
+ drawPixels();
1896
+
1897
+ var mouseOffset = Math.trunc(mouseSize/2);
1898
+ var topLeft = [mousePos.x-mouseOffset,mousePos.y-mouseOffset];
1899
+ var bottomRight = [mousePos.x+mouseOffset,mousePos.y+mouseOffset];
1900
+ // Draw a rectangle around the mouse
1901
+ ctx.strokeStyle = "white";
1902
+ ctx.strokeRect(topLeft[0]*10,topLeft[1]*10,(bottomRight[0]-topLeft[0]+1)*10,(bottomRight[1]-topLeft[1]+1)*10);
1903
+ updateStats();
1904
+ ticks ++;
1905
+ }
1906
+
1907
+ currentElement = "sand";
1908
+ mouseIsDown = false;
1909
+ mouseType = null;
1910
+ function mouseClick(e) {
1911
+ mouseIsDown = true;
1912
+ // If it's a left click
1913
+ if (e.button == 0) {
1914
+ mouseType = "left";
1915
+ }
1916
+ else if (e.button == 2) {
1917
+ mouseType = "right";
1918
+ }
1919
+ mouseMove(e);
1920
+ }
1921
+ function mouseUp(e) {
1922
+ mouseIsDown = false;
1923
+ }
1924
+
1925
+ function getMousePos(canvas, evt) {
1926
+ // If evt.touches is defined, use the first touch
1927
+ if (evt.touches) {
1928
+ evt = evt.touches[0];
1929
+ }
1930
+ var rect = canvas.getBoundingClientRect();
1931
+ return {
1932
+ // Round to nearest pixel
1933
+ x: Math.round((evt.clientX - rect.left)/pixelSize-0.5),
1934
+ y: Math.round((evt.clientY - rect.top)/pixelSize-0.5)
1935
+ };
1936
+ }
1937
+ function mouseMove(e) {
1938
+ if (mouseIsDown) {
1939
+ mouseAction(e);
1940
+ }
1941
+ else {
1942
+ var canvas = document.getElementById("game");
1943
+ mousePos = getMousePos(canvas, e);
1944
+ }
1945
+ }
1946
+ function mouseAction(e,mouseX=undefined,mouseY=undefined) {
1947
+ if (mouseType == "left") { mouse1Action(e,mouseX,mouseY); }
1948
+ else if (mouseType == "right") { mouse2Action(e,mouseX,mouseY); }
1949
+ }
1950
+ mouseSize = 5;
1951
+ mousePos = {x:0,y:0};
1952
+ function mouseRange(mouseX,mouseY) {
1953
+ var coords = [];
1954
+ var mouseOffset = Math.trunc(mouseSize/2);
1955
+ var topLeft = [mouseX-mouseOffset,mouseY-mouseOffset];
1956
+ var bottomRight = [mouseX+mouseOffset,mouseY+mouseOffset];
1957
+ // Starting at the top left, go through each pixel
1958
+ for (var x = topLeft[0]; x <= bottomRight[0]; x++) {
1959
+ for (var y = topLeft[1]; y <= bottomRight[1]; y++) {
1960
+ // If the pixel is empty, add it to coords
1961
+ coords.push([x,y]);
1962
+ }
1963
+ }
1964
+ return coords;
1965
+ }
1966
+ function mouse1Action(e,mouseX=undefined,mouseY=undefined) {
1967
+ // If x and y are undefined, get the mouse position
1968
+ if (mouseX == undefined && mouseY == undefined) {
1969
+ var canvas = document.getElementById("game");
1970
+ var ctx = canvas.getContext("2d");
1971
+ mousePos = getMousePos(canvas, e);
1972
+ var mouseX = mousePos.x;
1973
+ var mouseY = mousePos.y;
1974
+ }
1975
+ var coords = mouseRange(mouseX,mouseY);
1976
+ var element = elements[currentElement];
1977
+ // For each x,y in coords
1978
+ for (var i = 0; i < coords.length; i++) {
1979
+ var x = coords[i][0];
1980
+ var y = coords[i][1];
1981
+
1982
+ // If element name is heat or cool
1983
+ if (currentElement == "heat" || currentElement == "cool") {
1984
+ if (!isEmpty(x,y,false)) {
1985
+ if (outOfBounds(x,y)) {
1986
+ continue;
1987
+ }
1988
+ var pixel = pixelMap[x][y];
1989
+ if (shiftDown) {pixel.temp += element.temp*10;}
1990
+ else {pixel.temp += element.temp;}
1991
+ pixelTempCheck(pixel);
1992
+ }
1993
+ }
1994
+ else if (placeMode == "replace") {
1995
+ if (outOfBounds(x,y)) {
1996
+ continue;
1997
+ }
1998
+ // Remove pixel at position from currentPixels
1999
+ var index = currentPixels.indexOf(pixelMap[x][y]);
2000
+ if (index > -1) {
2001
+ currentPixels.splice(index, 1);
2002
+ }
2003
+ currentPixels.push(new Pixel(x, y, currentElement));
2004
+ }
2005
+ else if (isEmpty(x, y)) {
2006
+ currentPixels.push(new Pixel(x, y, currentElement));
2007
+ }
2008
+ }
2009
+ }
2010
+ function mouse2Action(e,mouseX=undefined,mouseY=undefined) {
2011
+ // Erase pixel at mouse position
2012
+ if (mouseX == undefined && mouseY == undefined) {
2013
+ var canvas = document.getElementById("game");
2014
+ var ctx = canvas.getContext("2d");
2015
+ mousePos = getMousePos(canvas, e);
2016
+ var mouseX = mousePos.x;
2017
+ var mouseY = mousePos.y;
2018
+ }
2019
+ var coords = mouseRange(mouseX,mouseY);
2020
+ // For each x,y in coords
2021
+ for (var i = 0; i < coords.length; i++) {
2022
+ var x = coords[i][0];
2023
+ var y = coords[i][1];
2024
+
2025
+ if (!isEmpty(x, y)) {
2026
+ if (outOfBounds(x,y)) {
2027
+ continue
2028
+ }
2029
+ var pixel = pixelMap[x][y];
2030
+ delete pixelMap[x][y];
2031
+ // Remove pixel from currentPixels
2032
+ for (var j = 0; j < currentPixels.length; j++) {
2033
+ if (currentPixels[j].x == x && currentPixels[j].y == y) {
2034
+ currentPixels.splice(j, 1);
2035
+ break;
2036
+ }
2037
+ }
2038
+ }
2039
+ }
2040
+ }
2041
+
2042
+ function selectElement(element) {
2043
+ var e1 = document.getElementById("elementButton-"+currentElement)
2044
+ if (e1 != null) { e1.setAttribute("current","false"); }
2045
+ currentElement = element;
2046
+ var e2 = document.getElementById("elementButton-"+element)
2047
+ if (e2 != null) { e2.setAttribute("current","true"); }
2048
+ }
2049
+ function clearAll() {
2050
+ currentPixels = [];
2051
+ pixelMap = [];
2052
+ for (var i = 0; i < width; i++) {
2053
+ pixelMap[i] = [];
2054
+ for (var j = 0; j < height; j++) {
2055
+ pixelMap[i][j] = undefined;
2056
+ }
2057
+ }
2058
+ pixelTicks = 0;
2059
+ }
2060
+
2061
+ // Update stats
2062
+ function updateStats() {
2063
+ var statsDiv = document.getElementById("stats");
2064
+ statsDiv.innerHTML = "<span id='stat-pos' class='stat'>x"+mousePos.x+",y"+mousePos.y+"</span>";
2065
+ statsDiv.innerHTML += "<span id='stat-pixels' class='stat'>Pxls:" + currentPixels.length+"</span>";
2066
+ statsDiv.innerHTML += "<span id='stat-tps' class='stat'>" + tps+"tps</span>";
2067
+ statsDiv.innerHTML += "<span id='stat-ticks' class='stat'>" + pixelTicks+"</span>";
2068
+ if (pixelMap[mousePos.x] != undefined) {
2069
+ var currentPixel = pixelMap[mousePos.x][mousePos.y];
2070
+ if (currentPixel != undefined) {
2071
+ statsDiv.innerHTML += "<span id='stat-element' class='stat'>Elem:"+currentPixel.element.toUpperCase()+"</span>";
2072
+ statsDiv.innerHTML += "<span id='stat-temperature' class='stat'>Temp:"+currentPixel.temp+"°C</span>";
2073
+ if (currentPixel.burning) {
2074
+ statsDiv.innerHTML += "<span id='stat-burning' class='stat'>Burning</span>";
2075
+ }
2076
+ }
2077
+ if (shiftDown) {
2078
+ statsDiv.innerHTML += "<span id='stat-shift' class='stat'>[↑ ]</span>";
2079
+ }
2080
+ }
2081
+ }
2082
+
2083
+ // On window load, run tick() 20 times per second
2084
+ tps = 30;
2085
+ tickInterval = window.setInterval(tick, 1000/tps);
2086
+ function resetInterval(newtps=30) {
2087
+ window.clearInterval(tickInterval);
2088
+ tickInterval = window.setInterval(tick, 1000/newtps);
2089
+ }
2090
+ ticks = 0;
2091
+ pixelTicks = 0;
2092
+
2093
+ placeMode = null;
2094
+ paused = false;
2095
+ function focusGame() { document.getElementById("game").focus(); }
2096
+ //on window load
2097
+ window.onload = function() {
2098
+ // While the mouse is down, run mouseDown()
2099
+ var gameCanvas = document.getElementById("game");
2100
+ // Get context
2101
+ var ctx = gameCanvas.getContext("2d");
2102
+ var newWidth = Math.ceil(window.innerWidth*0.9 / 10) * 10;
2103
+ var newHeight = Math.ceil(window.innerHeight*0.675 / 10) * 10;
2104
+ // If the new width is greater than 800, set it to 800
2105
+ if (newWidth > 1000) { newWidth = 1000; }
2106
+ // If we are on a desktop and the new height is greater than 600, set it to 600
2107
+ if (window.innerWidth > 1000 && newHeight > 600) { newHeight = 600; }
2108
+ ctx.canvas.width = newWidth;
2109
+ ctx.canvas.height = newHeight;
2110
+
2111
+ width = Math.round(newWidth/pixelSize)-1;
2112
+ height = Math.round(newHeight/pixelSize)-1;
2113
+ // Object with width arrays of pixels starting at 0
2114
+ pixelMap = {};
2115
+ for (var i = 0; i < width; i++) {
2116
+ pixelMap[i] = [];
2117
+ }
2118
+ //...drawing code...
2119
+ gameCanvas.addEventListener("mousedown", mouseClick);
2120
+ gameCanvas.addEventListener("touchstart", mouseClick);
2121
+ gameCanvas.addEventListener("mouseup", mouseUp);
2122
+ gameCanvas.addEventListener("touchend", mouseUp);
2123
+ gameCanvas.addEventListener("mousemove", mouseMove);
2124
+ gameCanvas.addEventListener("touchmove", mouseMove);
2125
+ gameCanvas.ontouchstart = function(e) {
2126
+ if (e.touches) e = e.touches[0];
2127
+ return false;
2128
+ }
2129
+ shiftDown = false;
2130
+ // If the user presses [ or -, decrease the mouse size by 2
2131
+ document.addEventListener("keydown", function(e) {
2132
+ if (e.keyCode == 219 || e.keyCode == 189) {
2133
+ if (shiftDown) {mouseSize = 1}
2134
+ else {
2135
+ mouseSize -= 2;
2136
+ if (mouseSize < 1) { mouseSize = 1; }
2137
+ }
2138
+ }
2139
+ // If the user presses ] or =, increase the mouse size by 2
2140
+ if (e.keyCode == 221 || e.keyCode == 187) {
2141
+ if (shiftDown) {mouseSize = (mouseSize+15)-((mouseSize+15) % 15)}
2142
+ else {mouseSize += 2;}
2143
+ // if height>width and mouseSize>height, set mouseSize to height, if width>height and mouseSize>width, set mouseSize to width
2144
+ if (mouseSize > (height > width ? height : width)) { mouseSize = (height > width ? height : width); }
2145
+ }
2146
+ else if (e.keyCode == 16 || e.keyCode == 18) { shiftDown = true; }
2147
+ // p or spacebar = pause
2148
+ else if (e.keyCode == 80 || e.keyCode == 32) {
2149
+ e.preventDefault();
2150
+ paused = !paused;
2151
+ if (paused) {
2152
+ document.getElementById("pauseButton").setAttribute("on","true");
2153
+ }
2154
+ else {
2155
+ document.getElementById("pauseButton").setAttribute("on","false");
2156
+ }
2157
+ }
2158
+ });
2159
+ // If the user releases either shift
2160
+ document.addEventListener("keyup", function(e) {
2161
+ if (e.keyCode == 16 || e.keyCode == 18) { shiftDown = false; }
2162
+ });
2163
+
2164
+ // Create buttons for elements
2165
+ // For each element type in elements, create a button in controls that sets the current element to that type
2166
+ // Alphabetically sort and loop through dictionary named "elements"
2167
+ elementCount = 0;
2168
+ hiddenCount = 0;
2169
+ for (var element in elements) {
2170
+ elementCount++;
2171
+ if (elements[element].hidden) { hiddenCount++; continue; }
2172
+ var category = elements[element].category;
2173
+ if (category==null) {category="Other"}
2174
+ var categoryDiv = document.getElementById("category-"+category);
2175
+ if (categoryDiv == null) {
2176
+ categoryDiv = document.createElement("div");
2177
+ categoryDiv.innerHTML = "<span class='categoryName'>"+category+"</span>";
2178
+ categoryDiv.setAttribute("id","category-"+category);
2179
+ categoryDiv.setAttribute("class","category");
2180
+ document.getElementById("elementControls").appendChild(categoryDiv);
2181
+ }
2182
+ var button = document.createElement("button");
2183
+ button.innerHTML = elements[element].name
2184
+ //capitalize first letter of each word
2185
+ button.innerHTML = button.innerHTML.replace("."," ").replace(/\w\S*/g, function(txt){return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();}).replace(" ",".").replace(/ /g, "");
2186
+ //set attribute of element to the element
2187
+ button.setAttribute("element", element);
2188
+ button.setAttribute("current", "false");
2189
+ button.className = "elementButton";
2190
+ //color of the element
2191
+ // if the element color is an array, make a gradient background color, otherwise, set the background color to the element color
2192
+ if (elements[element].color instanceof Array) {
2193
+ button.style.backgroundImage = "linear-gradient(to bottom right, "+elements[element].color.join(", ")+")";
2194
+ }
2195
+ else {
2196
+ button.style.background = elements[element].color;
2197
+ var colorObject = elements[element].colorObject;
2198
+ if ((colorObject.r+colorObject.g+colorObject.b)/3 > 200) {
2199
+ button.className += " bright"
2200
+ }
2201
+ }
2202
+ button.id = "elementButton-" + element;
2203
+ button.onclick = function() {
2204
+ selectElement(this.getAttribute("element"));
2205
+ }
2206
+ categoryDiv.appendChild(button);
2207
+ }
2208
+ document.getElementById("extraInfo").innerHTML = "<small>There are " + elementCount + " elements, including " + hiddenCount + " hidden ones.</small>";
2209
+ selectElement(currentElement);
2210
+ focusGame();
2211
+ // For every button element, onkeyup="event.preventDefault()"
2212
+ var buttonElements = document.getElementsByTagName("button");
2213
+ for (var i = 0; i < buttonElements.length; i++) {
2214
+ buttonElements[i].onkeyup = function(e) {
2215
+ e.preventDefault();
2216
+ }
2217
+ }
2218
+
2219
+ }
2220
+ </script>
2221
+ </head>
2222
+
2223
+ <body>
2224
+ <h1>Sandbox Game</h1>
2225
+ <div id="gameDiv">
2226
+ <canvas id="game" width="800" height="600" oncontextmenu="return false;">
2227
+ Your browser does not support the HTML5 canvas tag.
2228
+ </canvas>
2229
+ <div id="underDiv">
2230
+ <div id="stats"></div>
2231
+ <div id="controls">
2232
+ <div id="toolControls">
2233
+ <button id="pauseButton" title="Pause/play the simulation" class="controlButton" onclick='if (paused) {paused = false;this.setAttribute("on","false");}else {paused = true;this.setAttribute("on","true");};focusGame();' on="false">Pause</button><button id="frameButton" title="Pause and play one frame" class="controlButton" onclick='if (!paused) {paused=true;document.getElementById("pauseButton").setAttribute("on","true");}drawPixels(true);focusGame();' on="false">Step</button><button id="sizeUpButton" title="Increase the brush size" class="controlButton" onclick="mouseSize+=2;focusGame();">↑</button><button id="sizeDownButton" title="Decrease the brush size" class="controlButton" onclick="mouseSize-=2;focusGame();">↓</button><button id="resetButton" title="Clear the entire scene" class="controlButton" onclick="if (confirm('Are you sure you want to clear the whole scene?')) {clearAll();};focusGame();">Reset</button><button id="replaceButton" title="Override existing pixels when placing" class="controlButton" onclick='if (placeMode == "replace") {placeMode = null;this.setAttribute("on","false");}else {placeMode = "replace";this.setAttribute("on","true");};focusGame();' on="false">Replace</button><button id="elemSelectButton" title="Select an element by ID" class="controlButton" onclick='var e = prompt("Enter the element’s ID").replaceAll(" ","_");if (elements[e] != undefined) {currentElement = e;var btn = document.getElementById("elementButton-"+e);if (btn != null) {btn.setAttribute("current","true");}};focusGame();'>E</button><button id="tpsButton" title="Change the simulation Ticks Per Second (TPS)" class="controlButton" onclick='var newtps = prompt("Enter the new simulation Ticks Per Second (TPS). This is how many updates per second the simulation will run.\n\nThe default is 30.\n\nThe current TPS is " + tps + ".");if (newtps == null || newtps == "" || newtps == "0") {alert("You did not enter a valid TPS. The TPS will be reset.");tps = 30;}else if (newtps > 1000) {alert("You entered a TPS that is too high. The TPS will be set to the maximum, 1000.");tps = 1000;}else {tps = parseInt(newtps);if (isNaN(tps)) {alert("You did not enter a valid TPS. The TPS will be reset.");tps = 30;}}resetInterval(tps);focusGame();'>Tps</button><button id="hideButton" title="Stops updating the scene to allow more resources towards simulation" class="controlButton" onclick='if (hiding) {hiding = false;this.setAttribute("on","false");}else {hiding = true;this.setAttribute("on","true");};focusGame();' on="false">Hide</button>
2234
+ </div>
2235
+ <div id="elementControls"></div>
2236
+ </div>
2237
+ <div id="extraInfo"></div>
2238
+ </div>
2239
+ </div>
2240
+ </body>
2241
+
2242
+ </html>