studyup 0.0.0-stage → 1.0.0
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.
- package/hexgl-package/HexGL-master/.htaccess +4 -0
- package/hexgl-package/HexGL-master/LICENSE +21 -0
- package/hexgl-package/HexGL-master/README.md +26 -0
- package/hexgl-package/HexGL-master/audio/LICENSE +28 -0
- package/hexgl-package/HexGL-master/audio/bg.ogg +0 -0
- package/hexgl-package/HexGL-master/audio/boost.ogg +0 -0
- package/hexgl-package/HexGL-master/audio/crash.ogg +0 -0
- package/hexgl-package/HexGL-master/audio/destroyed.ogg +0 -0
- package/hexgl-package/HexGL-master/audio/wind.ogg +0 -0
- package/hexgl-package/HexGL-master/bkcore/Audio.js +142 -0
- package/hexgl-package/HexGL-master/bkcore/hexgl/CameraChase.js +73 -0
- package/hexgl-package/HexGL-master/bkcore/hexgl/Gameplay.js +231 -0
- package/hexgl-package/HexGL-master/bkcore/hexgl/HUD.js +270 -0
- package/hexgl-package/HexGL-master/bkcore/hexgl/HexGL.js +446 -0
- package/hexgl-package/HexGL-master/bkcore/hexgl/Ladder.js +52 -0
- package/hexgl-package/HexGL-master/bkcore/hexgl/RaceData.js +99 -0
- package/hexgl-package/HexGL-master/bkcore/hexgl/ShipControls.js +806 -0
- package/hexgl-package/HexGL-master/bkcore/hexgl/ShipEffects.js +186 -0
- package/hexgl-package/HexGL-master/bkcore/hexgl/tracks/Cityscape.js +521 -0
- package/hexgl-package/HexGL-master/bkcore/threejs/Loader.js +260 -0
- package/hexgl-package/HexGL-master/bkcore/threejs/Particles.js +191 -0
- package/hexgl-package/HexGL-master/bkcore/threejs/Preloader.js +151 -0
- package/hexgl-package/HexGL-master/bkcore/threejs/RenderManager.js +132 -0
- package/hexgl-package/HexGL-master/bkcore/threejs/Shaders.js +950 -0
- package/hexgl-package/HexGL-master/bkcore.coffee/ImageData.coffee +141 -0
- package/hexgl-package/HexGL-master/bkcore.coffee/ImageData.js +156 -0
- package/hexgl-package/HexGL-master/bkcore.coffee/Timer.coffee +118 -0
- package/hexgl-package/HexGL-master/bkcore.coffee/Timer.js +159 -0
- package/hexgl-package/HexGL-master/bkcore.coffee/Utils.coffee +193 -0
- package/hexgl-package/HexGL-master/bkcore.coffee/Utils.js +250 -0
- package/hexgl-package/HexGL-master/bkcore.coffee/controllers/GamepadController.coffee +45 -0
- package/hexgl-package/HexGL-master/bkcore.coffee/controllers/GamepadController.js +73 -0
- package/hexgl-package/HexGL-master/bkcore.coffee/controllers/OrientationController.coffee +72 -0
- package/hexgl-package/HexGL-master/bkcore.coffee/controllers/OrientationController.js +130 -0
- package/hexgl-package/HexGL-master/bkcore.coffee/controllers/TouchController.coffee +109 -0
- package/hexgl-package/HexGL-master/bkcore.coffee/controllers/TouchController.js +188 -0
- package/hexgl-package/HexGL-master/bkcore.coffee/tests.html +10 -0
- package/hexgl-package/HexGL-master/bkcore.coffee/threejs/Particles.coffee +199 -0
- package/hexgl-package/HexGL-master/bkcore.coffee/threejs/Particles.js +210 -0
- package/hexgl-package/HexGL-master/cache.appcache +74 -0
- package/hexgl-package/HexGL-master/css/BebasNeue-webfont.eot +0 -0
- package/hexgl-package/HexGL-master/css/BebasNeue-webfont.svg +245 -0
- package/hexgl-package/HexGL-master/css/BebasNeue-webfont.ttf +0 -0
- package/hexgl-package/HexGL-master/css/BebasNeue-webfont.woff +0 -0
- package/hexgl-package/HexGL-master/css/bg.jpg +0 -0
- package/hexgl-package/HexGL-master/css/fonts.css +16 -0
- package/hexgl-package/HexGL-master/css/help-0.png +0 -0
- package/hexgl-package/HexGL-master/css/help-1.png +0 -0
- package/hexgl-package/HexGL-master/css/help-2.png +0 -0
- package/hexgl-package/HexGL-master/css/help-3.png +0 -0
- package/hexgl-package/HexGL-master/css/mobile-controls-1.jpg +0 -0
- package/hexgl-package/HexGL-master/css/mobile-controls-2.jpg +0 -0
- package/hexgl-package/HexGL-master/css/mobile-over.jpg +0 -0
- package/hexgl-package/HexGL-master/css/mobile.jpg +0 -0
- package/hexgl-package/HexGL-master/css/multi.css +264 -0
- package/hexgl-package/HexGL-master/css/title.png +0 -0
- package/hexgl-package/HexGL-master/css/touchcontroller.css +8 -0
- package/hexgl-package/HexGL-master/favicon.png +0 -0
- package/hexgl-package/HexGL-master/geometries/bonus/base/base.js +45 -0
- package/hexgl-package/HexGL-master/geometries/booster/booster.js +45 -0
- package/hexgl-package/HexGL-master/geometries/ships/feisar/feisar.js +45 -0
- package/hexgl-package/HexGL-master/geometries/tracks/cityscape/bonus/speed.js +45 -0
- package/hexgl-package/HexGL-master/geometries/tracks/cityscape/scrapers1.js +45 -0
- package/hexgl-package/HexGL-master/geometries/tracks/cityscape/scrapers2.js +45 -0
- package/hexgl-package/HexGL-master/geometries/tracks/cityscape/start.js +45 -0
- package/hexgl-package/HexGL-master/geometries/tracks/cityscape/startbanner.js +45 -0
- package/hexgl-package/HexGL-master/geometries/tracks/cityscape/track.js +45 -0
- package/hexgl-package/HexGL-master/geometries/tracks/edge/track.js +38 -0
- package/hexgl-package/HexGL-master/icon_128.png +0 -0
- package/hexgl-package/HexGL-master/icon_256.png +0 -0
- package/hexgl-package/HexGL-master/icon_32.png +0 -0
- package/hexgl-package/HexGL-master/icon_64.png +0 -0
- package/hexgl-package/HexGL-master/index.html +129 -0
- package/hexgl-package/HexGL-master/launch.coffee +85 -0
- package/hexgl-package/HexGL-master/launch.js +116 -0
- package/hexgl-package/HexGL-master/libs/DAT.GUI.min.js +53 -0
- package/hexgl-package/HexGL-master/libs/Detector.js +59 -0
- package/hexgl-package/HexGL-master/libs/Editor.html +717 -0
- package/hexgl-package/HexGL-master/libs/Editor_files/App.js +212 -0
- package/hexgl-package/HexGL-master/libs/Editor_files/CanvasRenderer.js +389 -0
- package/hexgl-package/HexGL-master/libs/Editor_files/Diagram.js +148 -0
- package/hexgl-package/HexGL-master/libs/Editor_files/Iterator.js +92 -0
- package/hexgl-package/HexGL-master/libs/Editor_files/Links.js +56 -0
- package/hexgl-package/HexGL-master/libs/Editor_files/ModuleList.js +47 -0
- package/hexgl-package/HexGL-master/libs/Editor_files/Node.js +122 -0
- package/hexgl-package/HexGL-master/libs/Editor_files/Parser.js +140 -0
- package/hexgl-package/HexGL-master/libs/Editor_files/Project.js +162 -0
- package/hexgl-package/HexGL-master/libs/Editor_files/Timer.js +166 -0
- package/hexgl-package/HexGL-master/libs/Editor_files/ace.js +11 -0
- package/hexgl-package/HexGL-master/libs/Editor_files/class.js +989 -0
- package/hexgl-package/HexGL-master/libs/Editor_files/editor.css +16 -0
- package/hexgl-package/HexGL-master/libs/Editor_files/font.css +24 -0
- package/hexgl-package/HexGL-master/libs/Editor_files/gamecore.js +133 -0
- package/hexgl-package/HexGL-master/libs/Editor_files/hashlist.js +41 -0
- package/hexgl-package/HexGL-master/libs/Editor_files/jhashtable.js +468 -0
- package/hexgl-package/HexGL-master/libs/Editor_files/jquery-1.8.js +2 -0
- package/hexgl-package/HexGL-master/libs/Editor_files/kinetic.js +30 -0
- package/hexgl-package/HexGL-master/libs/Editor_files/main.css +204 -0
- package/hexgl-package/HexGL-master/libs/Editor_files/mode-json.js +1 -0
- package/hexgl-package/HexGL-master/libs/Editor_files/pooled.js +542 -0
- package/hexgl-package/HexGL-master/libs/Editor_files/theme-monokai.js +1 -0
- package/hexgl-package/HexGL-master/libs/ShaderExtras.js +1788 -0
- package/hexgl-package/HexGL-master/libs/Stats.js +6 -0
- package/hexgl-package/HexGL-master/libs/Three.dev.js +758 -0
- package/hexgl-package/HexGL-master/libs/Three.r53.js +767 -0
- package/hexgl-package/HexGL-master/libs/leap-0.4.1.min.js +3 -0
- package/hexgl-package/HexGL-master/libs/postprocessing/BloomPass.js +100 -0
- package/hexgl-package/HexGL-master/libs/postprocessing/DotScreenPass.js +52 -0
- package/hexgl-package/HexGL-master/libs/postprocessing/EffectComposer.js +143 -0
- package/hexgl-package/HexGL-master/libs/postprocessing/FilmPass.js +51 -0
- package/hexgl-package/HexGL-master/libs/postprocessing/MaskPass.js +86 -0
- package/hexgl-package/HexGL-master/libs/postprocessing/RenderPass.js +63 -0
- package/hexgl-package/HexGL-master/libs/postprocessing/SavePass.js +52 -0
- package/hexgl-package/HexGL-master/libs/postprocessing/ShaderPass.js +51 -0
- package/hexgl-package/HexGL-master/libs/postprocessing/TexturePass.js +37 -0
- package/hexgl-package/HexGL-master/manifest.webapp +18 -0
- package/hexgl-package/HexGL-master/package.webapp +10 -0
- package/hexgl-package/HexGL-master/package.zip +0 -0
- package/hexgl-package/HexGL-master/replays/cityscape-casual/bkcore.replay.json +1 -0
- package/hexgl-package/HexGL-master/textures/bonus/base/diffuse.jpg +0 -0
- package/hexgl-package/HexGL-master/textures/bonus/base/normal.jpg +0 -0
- package/hexgl-package/HexGL-master/textures/bonus/base/specular.jpg +0 -0
- package/hexgl-package/HexGL-master/textures/checker.png +0 -0
- package/hexgl-package/HexGL-master/textures/hud/hex.jpg +0 -0
- package/hexgl-package/HexGL-master/textures/hud/hud-bg.png +0 -0
- package/hexgl-package/HexGL-master/textures/hud/hud-fg-shield.png +0 -0
- package/hexgl-package/HexGL-master/textures/hud/hud-fg-speed.png +0 -0
- package/hexgl-package/HexGL-master/textures/particles/cloud - Copie.png +0 -0
- package/hexgl-package/HexGL-master/textures/particles/cloud.png +0 -0
- package/hexgl-package/HexGL-master/textures/particles/damage.png +0 -0
- package/hexgl-package/HexGL-master/textures/particles/spark - Copie.png +0 -0
- package/hexgl-package/HexGL-master/textures/particles/spark.png +0 -0
- package/hexgl-package/HexGL-master/textures/ships/feisar/booster/booster.png +0 -0
- package/hexgl-package/HexGL-master/textures/ships/feisar/booster/boostersprite.jpg +0 -0
- package/hexgl-package/HexGL-master/textures/ships/feisar/diffuse.jpg +0 -0
- package/hexgl-package/HexGL-master/textures/ships/feisar/normal.jpg +0 -0
- package/hexgl-package/HexGL-master/textures/ships/feisar/specular.jpg +0 -0
- package/hexgl-package/HexGL-master/textures/skybox/dawnclouds/nx.jpg +0 -0
- package/hexgl-package/HexGL-master/textures/skybox/dawnclouds/ny.jpg +0 -0
- package/hexgl-package/HexGL-master/textures/skybox/dawnclouds/nz.jpg +0 -0
- package/hexgl-package/HexGL-master/textures/skybox/dawnclouds/px.jpg +0 -0
- package/hexgl-package/HexGL-master/textures/skybox/dawnclouds/py.jpg +0 -0
- package/hexgl-package/HexGL-master/textures/skybox/dawnclouds/pz.jpg +0 -0
- package/hexgl-package/HexGL-master/textures/tracks/cityscape/collision.png +0 -0
- package/hexgl-package/HexGL-master/textures/tracks/cityscape/diffuse.jpg +0 -0
- package/hexgl-package/HexGL-master/textures/tracks/cityscape/height.png +0 -0
- package/hexgl-package/HexGL-master/textures/tracks/cityscape/normal.jpg +0 -0
- package/hexgl-package/HexGL-master/textures/tracks/cityscape/scrapers1/diffuse.jpg +0 -0
- package/hexgl-package/HexGL-master/textures/tracks/cityscape/scrapers1/normal.jpg +0 -0
- package/hexgl-package/HexGL-master/textures/tracks/cityscape/scrapers1/specular.jpg +0 -0
- package/hexgl-package/HexGL-master/textures/tracks/cityscape/scrapers2/diffuse.jpg +0 -0
- package/hexgl-package/HexGL-master/textures/tracks/cityscape/scrapers2/normal.jpg +0 -0
- package/hexgl-package/HexGL-master/textures/tracks/cityscape/scrapers2/specular.jpg +0 -0
- package/hexgl-package/HexGL-master/textures/tracks/cityscape/specular.jpg +0 -0
- package/hexgl-package/HexGL-master/textures/tracks/cityscape/start/diffuse.jpg +0 -0
- package/hexgl-package/HexGL-master/textures/tracks/cityscape/start/normal.jpg +0 -0
- package/hexgl-package/HexGL-master/textures/tracks/cityscape/start/specular.jpg +0 -0
- package/hexgl-package/HexGL-master/textures/tracks/cityscape/start/start.jpg +0 -0
- package/hexgl-package/HexGL-master/textures.full/bonus/base/diffuse.jpg +0 -0
- package/hexgl-package/HexGL-master/textures.full/bonus/base/normal.jpg +0 -0
- package/hexgl-package/HexGL-master/textures.full/bonus/base/specular.jpg +0 -0
- package/hexgl-package/HexGL-master/textures.full/checker.png +0 -0
- package/hexgl-package/HexGL-master/textures.full/hud/hex.jpg +0 -0
- package/hexgl-package/HexGL-master/textures.full/hud/hud-bg.png +0 -0
- package/hexgl-package/HexGL-master/textures.full/hud/hud-fg-shield.png +0 -0
- package/hexgl-package/HexGL-master/textures.full/hud/hud-fg-speed.png +0 -0
- package/hexgl-package/HexGL-master/textures.full/particles/cloud - Copie.png +0 -0
- package/hexgl-package/HexGL-master/textures.full/particles/cloud.png +0 -0
- package/hexgl-package/HexGL-master/textures.full/particles/damage.png +0 -0
- package/hexgl-package/HexGL-master/textures.full/particles/spark - Copie.png +0 -0
- package/hexgl-package/HexGL-master/textures.full/particles/spark.png +0 -0
- package/hexgl-package/HexGL-master/textures.full/ships/feisar/booster/booster.png +0 -0
- package/hexgl-package/HexGL-master/textures.full/ships/feisar/booster/boostersprite.jpg +0 -0
- package/hexgl-package/HexGL-master/textures.full/ships/feisar/diffuse.jpg +0 -0
- package/hexgl-package/HexGL-master/textures.full/ships/feisar/normal.jpg +0 -0
- package/hexgl-package/HexGL-master/textures.full/ships/feisar/specular.jpg +0 -0
- package/hexgl-package/HexGL-master/textures.full/skybox/dawnclouds/nx.jpg +0 -0
- package/hexgl-package/HexGL-master/textures.full/skybox/dawnclouds/ny.jpg +0 -0
- package/hexgl-package/HexGL-master/textures.full/skybox/dawnclouds/nz.jpg +0 -0
- package/hexgl-package/HexGL-master/textures.full/skybox/dawnclouds/px.jpg +0 -0
- package/hexgl-package/HexGL-master/textures.full/skybox/dawnclouds/py.jpg +0 -0
- package/hexgl-package/HexGL-master/textures.full/skybox/dawnclouds/pz.jpg +0 -0
- package/hexgl-package/HexGL-master/textures.full/tracks/cityscape/collision.png +0 -0
- package/hexgl-package/HexGL-master/textures.full/tracks/cityscape/diffuse.jpg +0 -0
- package/hexgl-package/HexGL-master/textures.full/tracks/cityscape/height.png +0 -0
- package/hexgl-package/HexGL-master/textures.full/tracks/cityscape/normal.jpg +0 -0
- package/hexgl-package/HexGL-master/textures.full/tracks/cityscape/scrapers1/diffuse.jpg +0 -0
- package/hexgl-package/HexGL-master/textures.full/tracks/cityscape/scrapers1/normal.jpg +0 -0
- package/hexgl-package/HexGL-master/textures.full/tracks/cityscape/scrapers1/specular.jpg +0 -0
- package/hexgl-package/HexGL-master/textures.full/tracks/cityscape/scrapers2/diffuse.jpg +0 -0
- package/hexgl-package/HexGL-master/textures.full/tracks/cityscape/scrapers2/normal.jpg +0 -0
- package/hexgl-package/HexGL-master/textures.full/tracks/cityscape/scrapers2/specular.jpg +0 -0
- package/hexgl-package/HexGL-master/textures.full/tracks/cityscape/specular.jpg +0 -0
- package/hexgl-package/HexGL-master/textures.full/tracks/cityscape/start/diffuse.jpg +0 -0
- package/hexgl-package/HexGL-master/textures.full/tracks/cityscape/start/normal.jpg +0 -0
- package/hexgl-package/HexGL-master/textures.full/tracks/cityscape/start/specular.jpg +0 -0
- package/hexgl-package/HexGL-master/textures.full/tracks/cityscape/start/start.jpg +0 -0
- package/index.html +291 -0
- package/package.json +12 -3
- package/sandboxels-package/sandboxels-1.13.2/.github/CONTRIBUTING.md +10 -0
- package/sandboxels-package/sandboxels-1.13.2/.github/FUNDING.yml +13 -0
- package/sandboxels-package/sandboxels-1.13.2/.github/SUPPORT.md +9 -0
- package/sandboxels-package/sandboxels-1.13.2/404.html +74 -0
- package/sandboxels-package/sandboxels-1.13.2/CITATION.cff +42 -0
- package/sandboxels-package/sandboxels-1.13.2/CNAME +1 -0
- package/sandboxels-package/sandboxels-1.13.2/README.md +47 -0
- package/sandboxels-package/sandboxels-1.13.2/SECURITY.md +9 -0
- package/sandboxels-package/sandboxels-1.13.2/ad.html +73 -0
- package/sandboxels-package/sandboxels-1.13.2/aff.json +3 -0
- package/sandboxels-package/sandboxels-1.13.2/archive/first-version.html +234 -0
- package/sandboxels-package/sandboxels-1.13.2/archive/second-version.html +1293 -0
- package/sandboxels-package/sandboxels-1.13.2/archive/third-version.html +2242 -0
- package/sandboxels-package/sandboxels-1.13.2/archive.txt +231 -0
- package/sandboxels-package/sandboxels-1.13.2/backgrounds/License.txt +1 -0
- package/sandboxels-package/sandboxels-1.13.2/backgrounds/sky.png +0 -0
- package/sandboxels-package/sandboxels-1.13.2/backgrounds/sky_dark.png +0 -0
- package/sandboxels-package/sandboxels-1.13.2/backgrounds/sky_grass.png +0 -0
- package/sandboxels-package/sandboxels-1.13.2/backgrounds/sky_pink.png +0 -0
- package/sandboxels-package/sandboxels-1.13.2/backgrounds/sky_purple.png +0 -0
- package/sandboxels-package/sandboxels-1.13.2/backgrounds/sky_warm.png +0 -0
- package/sandboxels-package/sandboxels-1.13.2/changelog.html +3362 -0
- package/sandboxels-package/sandboxels-1.13.2/changelog.txt +3096 -0
- package/sandboxels-package/sandboxels-1.13.2/controls.html +191 -0
- package/sandboxels-package/sandboxels-1.13.2/controls.txt +65 -0
- package/sandboxels-package/sandboxels-1.13.2/education-use.html +109 -0
- package/sandboxels-package/sandboxels-1.13.2/feed.rss +30 -0
- package/sandboxels-package/sandboxels-1.13.2/feedback.html +89 -0
- package/sandboxels-package/sandboxels-1.13.2/fonts/PressStart2P-License-OFL.txt +93 -0
- package/sandboxels-package/sandboxels-1.13.2/fonts/PressStart2P-Regular.ttf +0 -0
- package/sandboxels-package/sandboxels-1.13.2/fonts/VT323-License-OFL.txt +93 -0
- package/sandboxels-package/sandboxels-1.13.2/fonts/VT323-Regular.ttf +0 -0
- package/sandboxels-package/sandboxels-1.13.2/fonts/Vietnamese_Pixel.ttf +0 -0
- package/sandboxels-package/sandboxels-1.13.2/fonts/fusion-pixel-12px-monospaced-ja.ttf +0 -0
- package/sandboxels-package/sandboxels-1.13.2/fonts/fusion-pixel-12px-monospaced-ko.ttf +0 -0
- package/sandboxels-package/sandboxels-1.13.2/fonts/fusion-pixel-12px-monospaced-latin.ttf +0 -0
- package/sandboxels-package/sandboxels-1.13.2/fonts/fusion-pixel-12px-monospaced-zh_hans.ttf +0 -0
- package/sandboxels-package/sandboxels-1.13.2/fonts/fusion-pixel-12px-monospaced-zh_hant.ttf +0 -0
- package/sandboxels-package/sandboxels-1.13.2/help.html +122 -0
- package/sandboxels-package/sandboxels-1.13.2/icons/80x15.png +0 -0
- package/sandboxels-package/sandboxels-1.13.2/icons/88x31.png +0 -0
- package/sandboxels-package/sandboxels-1.13.2/icons/android-chrome-192x192.png +0 -0
- package/sandboxels-package/sandboxels-1.13.2/icons/android-chrome-384x384.png +0 -0
- package/sandboxels-package/sandboxels-1.13.2/icons/apple-touch-icon-114x114-precomposed.png +0 -0
- package/sandboxels-package/sandboxels-1.13.2/icons/apple-touch-icon-114x114.png +0 -0
- package/sandboxels-package/sandboxels-1.13.2/icons/apple-touch-icon-120x120-precomposed.png +0 -0
- package/sandboxels-package/sandboxels-1.13.2/icons/apple-touch-icon-120x120.png +0 -0
- package/sandboxels-package/sandboxels-1.13.2/icons/apple-touch-icon-144x144-precomposed.png +0 -0
- package/sandboxels-package/sandboxels-1.13.2/icons/apple-touch-icon-144x144.png +0 -0
- package/sandboxels-package/sandboxels-1.13.2/icons/apple-touch-icon-152x152-precomposed.png +0 -0
- package/sandboxels-package/sandboxels-1.13.2/icons/apple-touch-icon-152x152.png +0 -0
- package/sandboxels-package/sandboxels-1.13.2/icons/apple-touch-icon-180x180-precomposed.png +0 -0
- package/sandboxels-package/sandboxels-1.13.2/icons/apple-touch-icon-180x180.png +0 -0
- package/sandboxels-package/sandboxels-1.13.2/icons/apple-touch-icon-57x57-precomposed.png +0 -0
- package/sandboxels-package/sandboxels-1.13.2/icons/apple-touch-icon-57x57.png +0 -0
- package/sandboxels-package/sandboxels-1.13.2/icons/apple-touch-icon-60x60-precomposed.png +0 -0
- package/sandboxels-package/sandboxels-1.13.2/icons/apple-touch-icon-60x60.png +0 -0
- package/sandboxels-package/sandboxels-1.13.2/icons/apple-touch-icon-72x72-precomposed.png +0 -0
- package/sandboxels-package/sandboxels-1.13.2/icons/apple-touch-icon-72x72.png +0 -0
- package/sandboxels-package/sandboxels-1.13.2/icons/apple-touch-icon-76x76-precomposed.png +0 -0
- package/sandboxels-package/sandboxels-1.13.2/icons/apple-touch-icon-76x76.png +0 -0
- package/sandboxels-package/sandboxels-1.13.2/icons/apple-touch-icon-precomposed.png +0 -0
- package/sandboxels-package/sandboxels-1.13.2/icons/apple-touch-icon.png +0 -0
- package/sandboxels-package/sandboxels-1.13.2/icons/browserconfig.xml +9 -0
- package/sandboxels-package/sandboxels-1.13.2/icons/card.png +0 -0
- package/sandboxels-package/sandboxels-1.13.2/icons/cover-3840x1240px-text.png +0 -0
- package/sandboxels-package/sandboxels-1.13.2/icons/cover-3840x1240px.png +0 -0
- package/sandboxels-package/sandboxels-1.13.2/icons/cover-3840x1240px.webp +0 -0
- package/sandboxels-package/sandboxels-1.13.2/icons/cover.png +0 -0
- package/sandboxels-package/sandboxels-1.13.2/icons/favicon-16x16.png +0 -0
- package/sandboxels-package/sandboxels-1.13.2/icons/favicon-32x32.png +0 -0
- package/sandboxels-package/sandboxels-1.13.2/icons/favicon.ico +0 -0
- package/sandboxels-package/sandboxels-1.13.2/icons/icon-hd.png +0 -0
- package/sandboxels-package/sandboxels-1.13.2/icons/icon.png +0 -0
- package/sandboxels-package/sandboxels-1.13.2/icons/index.html +196 -0
- package/sandboxels-package/sandboxels-1.13.2/icons/modulator.png +0 -0
- package/sandboxels-package/sandboxels-1.13.2/icons/mstile-150x150.png +0 -0
- package/sandboxels-package/sandboxels-1.13.2/icons/original-logo-recreated-pixel.png +0 -0
- package/sandboxels-package/sandboxels-1.13.2/icons/promo1.png +0 -0
- package/sandboxels-package/sandboxels-1.13.2/icons/promo2.png +0 -0
- package/sandboxels-package/sandboxels-1.13.2/icons/promo3.png +0 -0
- package/sandboxels-package/sandboxels-1.13.2/icons/promo4.png +0 -0
- package/sandboxels-package/sandboxels-1.13.2/icons/safari-pinned-tab.svg +107 -0
- package/sandboxels-package/sandboxels-1.13.2/icons/site.webmanifest +20 -0
- package/sandboxels-package/sandboxels-1.13.2/icons/tall.webp +0 -0
- package/sandboxels-package/sandboxels-1.13.2/icons/wallpaper-old.png +0 -0
- package/sandboxels-package/sandboxels-1.13.2/icons/wallpaper.png +0 -0
- package/sandboxels-package/sandboxels-1.13.2/icons/wallpaper.webp +0 -0
- package/sandboxels-package/sandboxels-1.13.2/icons/wordmark-black.png +0 -0
- package/sandboxels-package/sandboxels-1.13.2/icons/wordmark-white.png +0 -0
- package/sandboxels-package/sandboxels-1.13.2/index.html +21523 -0
- package/sandboxels-package/sandboxels-1.13.2/lang/README.txt +5 -0
- package/sandboxels-package/sandboxels-1.13.2/lang/af.json +1 -0
- package/sandboxels-package/sandboxels-1.13.2/lang/ar.json +1 -0
- package/sandboxels-package/sandboxels-1.13.2/lang/ar_sy.json +1 -0
- package/sandboxels-package/sandboxels-1.13.2/lang/bn.json +1 -0
- package/sandboxels-package/sandboxels-1.13.2/lang/ca.json +1 -0
- package/sandboxels-package/sandboxels-1.13.2/lang/cs.json +1 -0
- package/sandboxels-package/sandboxels-1.13.2/lang/da.json +1 -0
- package/sandboxels-package/sandboxels-1.13.2/lang/de.json +1 -0
- package/sandboxels-package/sandboxels-1.13.2/lang/el.json +1 -0
- package/sandboxels-package/sandboxels-1.13.2/lang/en.json +1 -0
- package/sandboxels-package/sandboxels-1.13.2/lang/en_au.json +1 -0
- package/sandboxels-package/sandboxels-1.13.2/lang/en_ca.json +1 -0
- package/sandboxels-package/sandboxels-1.13.2/lang/en_gb.json +1 -0
- package/sandboxels-package/sandboxels-1.13.2/lang/es.json +1 -0
- package/sandboxels-package/sandboxels-1.13.2/lang/et.json +1 -0
- package/sandboxels-package/sandboxels-1.13.2/lang/fi.json +1 -0
- package/sandboxels-package/sandboxels-1.13.2/lang/fil.json +1 -0
- package/sandboxels-package/sandboxels-1.13.2/lang/fr.json +1 -0
- package/sandboxels-package/sandboxels-1.13.2/lang/gen.js +21 -0
- package/sandboxels-package/sandboxels-1.13.2/lang/he.json +1 -0
- package/sandboxels-package/sandboxels-1.13.2/lang/hu.json +1 -0
- package/sandboxels-package/sandboxels-1.13.2/lang/id.json +1 -0
- package/sandboxels-package/sandboxels-1.13.2/lang/it.json +1 -0
- package/sandboxels-package/sandboxels-1.13.2/lang/ja.json +1 -0
- package/sandboxels-package/sandboxels-1.13.2/lang/ko.json +1 -0
- package/sandboxels-package/sandboxels-1.13.2/lang/la.json +1 -0
- package/sandboxels-package/sandboxels-1.13.2/lang/ne.json +1 -0
- package/sandboxels-package/sandboxels-1.13.2/lang/nl.json +1 -0
- package/sandboxels-package/sandboxels-1.13.2/lang/no.json +1 -0
- package/sandboxels-package/sandboxels-1.13.2/lang/pl.json +1 -0
- package/sandboxels-package/sandboxels-1.13.2/lang/pt.json +1 -0
- package/sandboxels-package/sandboxels-1.13.2/lang/pt_br.json +1 -0
- package/sandboxels-package/sandboxels-1.13.2/lang/qha.json +1 -0
- package/sandboxels-package/sandboxels-1.13.2/lang/qvp.json +1 -0
- package/sandboxels-package/sandboxels-1.13.2/lang/ro.json +1 -0
- package/sandboxels-package/sandboxels-1.13.2/lang/ru.json +1 -0
- package/sandboxels-package/sandboxels-1.13.2/lang/sr.json +1 -0
- package/sandboxels-package/sandboxels-1.13.2/lang/sv.json +1 -0
- package/sandboxels-package/sandboxels-1.13.2/lang/template.json +677 -0
- package/sandboxels-package/sandboxels-1.13.2/lang/th.json +1 -0
- package/sandboxels-package/sandboxels-1.13.2/lang/tok.json +1 -0
- package/sandboxels-package/sandboxels-1.13.2/lang/tok_old.json +543 -0
- package/sandboxels-package/sandboxels-1.13.2/lang/tr.json +1 -0
- package/sandboxels-package/sandboxels-1.13.2/lang/uk.json +1 -0
- package/sandboxels-package/sandboxels-1.13.2/lang/vi.json +1 -0
- package/sandboxels-package/sandboxels-1.13.2/lang/xem.json +1 -0
- package/sandboxels-package/sandboxels-1.13.2/lang/zh_cn.json +1 -0
- package/sandboxels-package/sandboxels-1.13.2/lang/zh_hant.json +1 -0
- package/sandboxels-package/sandboxels-1.13.2/license.txt +48 -0
- package/sandboxels-package/sandboxels-1.13.2/lite.html +1599 -0
- package/sandboxels-package/sandboxels-1.13.2/manifest.json +33 -0
- package/sandboxels-package/sandboxels-1.13.2/media.html +134 -0
- package/sandboxels-package/sandboxels-1.13.2/mobile-use.html +110 -0
- package/sandboxels-package/sandboxels-1.13.2/mod-list.html +535 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/1.10example.js +118 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/10kelements.js +172 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/3pms_mod.js +144 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/AnonymousWorldgenLibrary.js +55 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/Batteries.js +288 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/BlueStuff.js +681 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/CandyCanes.js +15 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/CandyCorn.js +8 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/CherrySoda.js +77 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/EasterEggs.js +1 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/ExtraMachines.js +2338 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/FoodFoodFood.js +114 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/Gemstones.js +80 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/GrapeSoda.js +141 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/Humanitize.js +959 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/Inators.js +108 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/IreThings.js +169 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/Lab.js +397 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/LimesAdditions.js +401 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/MarkusFoodMod.js +334 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/Mucho_frio_y_Calor.js +16 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/Natural_disasters.js +207 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/Neutronium Mod.js +1228 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/PRNGworldgenlib.js +526 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/Quicksand_one.js +1355 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/RF_transmitter_receiver.js +62 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/Random_quicksands.js +932 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/Science_mod.js +1791 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/Shroomboxels.js +71 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/SuperASAX_Funny_Mod.js +297 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/Temperature+.js +47 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/Thread.js +180 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/UAMM.js +502 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/Ultra_Steel.js +61 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/UwUify.js +87 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/VCR_OSD_MONO.ttf +0 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/Vegan.js +255 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/WhisperingTheory.js +213 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/aChefsDream.js +8159 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/aChefsDream2.js +815 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/aChefsDream_beta.js +12 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/aScientistsWish.js +1195 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/a_bundle_of_tests.js +417 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/a_mod_by_alice.js +46043 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/acid_and_shapes.js +1 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/adaceythings.js +343 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/adjustablepixelsize.js +28 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/advanced_colonies.js +146 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/advancedbugs.js +37 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/aircrafts.js +260 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/alchem.js +372 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/alchemy.js +69 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/alcohol.js +113 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/alkahest.js +33 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/alkali_metal.js +308 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/all_around_fillers.js +73 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/all_stain.js +7 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/allliquids.js +24 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/amogus.js +69 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/anmm.js +566 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/ants.js +137 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/apioforms_pre.js +238 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/applestuff.js +80 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/asciiboxels.js +231 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/aussieAdditions.js +123 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/baby.js +65 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/background_changer.js +59 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/bacteria_mod.js +121 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/bananas.js +543 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/barf_mod.js +42 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/barista.js +209 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/bere.js +85 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/betterMenuScreens.js +279 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/betterModManager.js +174 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/betterSettings.js +304 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/betterStats.js +55 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/better_smooth_water.js +6 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/betterelec.js +51 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/bettergraygoo.js +1 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/bettermetalscrap.js +37 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/bf.js +394 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/bfdi.js +145 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/bigger_star_spawners.js +198 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/biology.js +8694 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/bioooze_and_pyrogens.js +264 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/black_hole.js +43 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/blocks.js +164 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/boiling_things.js +540 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/bojithekings_mod.js +377 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/boompaste.js +76 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/borders.js +76 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/bouncing_balls.js +703 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/broken_mod_test.js +1 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/building.js +154 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/buildingreplicator.js +210 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/c_fighter_jet.js +449 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/cannibal_cooking.js +620 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/cash_n_more.js +58 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/cat.js +100 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/cells.js +376 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/chalcopyrite.js +124 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/chalk.js +499 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/change.js +58 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/changePixelDebug.js +9 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/changeTempReactionParameter.js +73 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/chaos.js +32 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/charsonsmodbeta.js +494 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/charsonsmoduno.js +2116 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/chem.js +7877 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/chemFormula.js +44 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/chemFormulas.json +549 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/cherries.js +543 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/chess.js +1463 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/children.js +14 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/circuitcore.js +1914 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/circuitcore_displays.js +157 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/citybuilding.js +193 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/classic_explosives.js +62 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/classic_textures.js +196 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/clf3.js +86 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/clone_liquid.js +22 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/clouds.js +103 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/cmur.js +5195 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/code_library.js +1827 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/coffee.js +228 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/cold_liquid_explosion.js +20 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/cold_opposites.js +66 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/coldblooded.js +729 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/collab_mod.js +253 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/colonies.js +574 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/colorLED.js +38 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/color_everything.js +3 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/color_tools.js +297 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/colored_lightbulbs.js +44 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/combustion.js +416 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/community_desserts.js +829 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/content.js +131 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/controllable_pixel.js +75 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/controllable_pixel_test.js +161 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/conveyance.js +95 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/cooked_apple.js +26 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/cookie_clicker.js +943 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/cookingnstuff.js +1 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/cool_tools.js +35 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/copy_canvas.js +9 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/copypaste.js +100 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/coresbyp.js +90 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/cpt_alt.js +241 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/crimson.js +424 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/cs_expanded.js +31 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/cubesstuff.js +3329 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/currency.js +246 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/cursed_shader_by_jayd.js +90 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/cursor.js +3 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/cursor_shapes.js +149 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/customBackground.js +45 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/customexplosion.js +110 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/customtemptools.js +50 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/dalgonacandy.js +41 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/datawire.js +238 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/date_test.js +268 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/death_count.js +35 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/debris.js +75 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/debrisable.js +1136 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/debugRework.js +169 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/delete_all_of_element.js +17 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/deneme.js +70 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/dependency_test.js +13 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/descriptions.js +17 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/devsnacks.js +193 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/devtests.js +278 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/discord_port.js +36 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/doElectricity changes.js +55 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/dogs.js +85 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/doom.js +935 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/doomsday.js +56 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/drawPixels_change_test.js +39 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/dried_food.js +38 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/drill.js +261 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/drills.js +760 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/easysurvival.js +917 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/edible_everything.js +7 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/editTools.js +608 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/eklegems.js +1313 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/electricityTest.js +42 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/elem3.js +352316 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/elementEraser.js +40 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/element_UI.js +140 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/elementreplacer.js +12 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/elementsManager.js +1212 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/empty.js +7 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/evenmoretemptools.js +42 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/example_mod.js +89 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/example_mod_old.js +84 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/exoplanet.js +220 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/explodeAtPlus.js +138 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/explosionsound.js +19 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/extra_element_info.js +79 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/extrasaveslots.js +42 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/fans.js +204 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/fantastic_creatures.js +198 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/fantasy_elements.js +800 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/fast_lightmap.js +339 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/fey_and_more.js +1678 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/fill_script.js +42 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/find.js +115 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/fine_tuned_cloner.js +121 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/fire_extinguisher.js +128 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/fire_mod.js +565 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/fire_slime.js +68 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/fishin.js +519 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/fission.js +68 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/fission_physics.js +86 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/fiveys_stuff.js +119 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/flesh_infection.js +645 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/flipflop.js +36 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/flowers_and_forests.js +468 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/flying_fish.js +49 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/food_mods.js +15 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/foodgalore +100 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/fools+.js +299 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/fools.js +99 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/fools24.js +842 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/fools25.js +350 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/fossils.js +676 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/fractals.js +156 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/franklin.js +44 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/freeTPS.js +19 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/fueled_generators.js +131 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/funny elements 2022-11-15.js +84 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/funny_liquid.js +618 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/funny_liquid_2.js +322 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/funny_liquid_3.js +254 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/funny_solid.js +163 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/funnynames.js +320 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/fwibblen.js +69 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/gambling.js +94 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/gameOfLife.js +83 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/garn47.js +325 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/gasdecay.js +31 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/generative_mods.js +2479 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/generator_prompt.js +166 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/genetics.js +4038 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/glenn_gases.js +411 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/glow.js +130 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/gradient_background_support.js +21 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/graphite.js +460 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/grav_mudstones.js +382 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/gravity.js +40 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/gravity_test.js +51 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/greenitemsandmore.js +183 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/guided_rocket.js +106 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/halogen.js +384 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/haseulite.js +1673 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/heatglow.js +74 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/heatshield.js +30 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/hexagon.js +45 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/hidden_ground.js +42 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/hideandshowtools.js +18 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/human_edit.js +725 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/human_friendly_design.js +899 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/humans.js +203 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/hydroid.js +224 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/icb.js +32 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/iean.js +135 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/immune.js +199 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/incinerators.js +29 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/industry.js +308 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/infLiqLight.js +8 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/injector.js +450 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/insane_random_events.js +123 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/invertscroll.js +8 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/invisible_things.js +83 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/iocalfaeus_clones.js +100 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/jaydsfunctions.js +187 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/jaydsmods.js +89 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/jaydstuff.js +783 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/junction.js +50 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/ketchup_mod.js +526 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/kopalsBar.js +175 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/kopalstuff.js +541 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/lactose_intolerance_and_celiac.js +18 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/laetium.js +328 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/lattice_filler.js +29 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/lemonade.js +71 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/libhooktick.js +49 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/libpacman-v1.js +61 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/libpixeltracking.js +29 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/library_test.js +5 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/life_eater.js +169 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/light.js +218 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/lighting_test.js +79 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/lightmap.js +382 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/limewater.js +75 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/liquid_energy.js +294 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/liquid_mixing.js +184 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/liquid_void.js +29 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/littlejohnny.js +72 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/lizard_mod.js +91 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/logicgates.js +482 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/lone_urea.js +69 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/lost_souls.js +177 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/lye.js +34 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/machines.js +293 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/manyMoreThemes.js +67 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/mars.js +473 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/maxColorOffset.js +54 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/maze.js +71 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/meat_rockets.js +70 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/memelists.js +17 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/metals.js +791 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/minecraft.js +818 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/minesweeper.js +100 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/miscellaneous_elements.js +278 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/miscible_psoup_and_birthpool.js +7 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/mix.js +65 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/mixture.js +714 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/mixtureII.js +440 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/mjsstuff.js +233 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/mobile_keybinds.js +33 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/mobile_shift.js +336 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/mobs.js +5147 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/mod_for_mnem.js +1 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/modlangs.js +53 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/moreViews.js +473 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/more_art_states.js +89 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/more_breaking.js +189 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/more_disasters.js +497 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/more_gold.js +115 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/morebombs.js +1143 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/morechemistry.js +1764 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/morefoodsmod.js +154 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/moreliquids.js +138 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/morepowders.js +335 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/moretools.js +68 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/moretrees.js +490 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/mossstuff.js +2301 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/mouthwash.js +23 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/move_tools.js +71 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/moveable_cubes.js +258 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/moving_pixels.js +179 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/mush_infection.js +321 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/musicalfruit.js +4 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/mustard.js +48 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/mystic.js +274 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/nastystuff.js +57 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/nature_Mod.js +1384 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/nekonicos_stuff.js +1651 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/nested_for_reaction_example.js +19 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/nettysaddon.js +48 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/neutronium_compressor.js +416 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/nicer_flame.js +48 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/nirmod.js +296 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/nitroglycerin.js +54 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/no_blood.js +23 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/no_radiation_events.js +3 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/no_random_grbs.js +9 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/no_scroll.js +5 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/noblegas.js +215 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/nocancer.js +9 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/nocancer2.js +1 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/noconfirm.js +1 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/nograssgrow.js +6 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/noita.js +4895 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/noita_demake.js +430 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/nopixellimit.js +2 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/note_block.js +97 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/note_block_advanced.js +628 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/nousersthings.js +4081 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/nuclear.js +300 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/nv7.js +35013 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/obsidian.js +51 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/occlusion.js +149 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/ocean.js +130 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/ochem_prerelease.js +774 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/oldTooltip.js +23 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/oldleds.js +20 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/onTryMoveInto.js +85 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/onecolor.js +146 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/orchidslibrary.js +70 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/ores.js +232 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/organism.js +915 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/oxide.theme.js +46 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/page_color.js +35 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/paint_event.js +17 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/periodic_and_more.js +64 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/peta.js +214 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/petal_dye.js +40 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/pixelResizeTool.js +18 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/pizzasstuff.js +2338 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/place_all_elements.js +30 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/placuchtestthing.js +17 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/planet.js +270 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/planet_cracker.js +81 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/plants.js +1616 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/plastic.js +93 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/portal.js +120 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/potato_chips.js +44 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/prairie.js +200 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/precisionDrawing.js +58 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/pressure.js +223 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/pressure_sensitive.js +20 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/prideflags.js +307 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/primordial_birthpool.js +38 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/prompt.js +1215 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/prop and prompt variables.js +16 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/prop.js +466 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/pullers.js +479 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/purple_guys_mod.js +3635 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/pushers.js +287 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/radioactive.js +135 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/rainbow_cursor.js +12 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/rainbow_tests.js +348 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/rainsmod.js +412 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/random_elems.js +463 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/random_everything.js +7 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/random_fixes.js +42 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/random_liquids.js +220 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/random_rocks.js +164 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/random_things.js +69 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/randomelements.js +200 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/randomness.js +730 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/randomness_but_tick.js +1257 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/randomness_but_tool.js +26 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/ray_cloner.js +150 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/rays++.js +60 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/rays.js +464 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/reactor_supplies_and_others.js +88 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/real_light.js +754 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/replace.js +79 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/replace_all.js +45 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/reverse_time.js +421 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/rich_grain.js +54 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/rising_powders.js +3 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/rock_paper_scissors.js +32 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/roseyiede.js +363 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/rpg.js +1342 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/ru_expanded.js +25 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/runAfterAutogen and onload restructure.js +1 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/runAfterAutogen2.js +56 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/sandboxels.js +2501 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/saturnsstuff.js +729 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/save_loading.js +520 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/sbmixup.js +1439 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/sbstuff.js +1865 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/scenexe.js +770 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/schematics.js +214 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/scp.js +7831 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/selective_paint.js +60 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/sensitive.js +20 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/shade.js +46 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/shader_by_jayd.js +168 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/shipstuff.js +198 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/singleColor.js +1 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/single_humans.js +147 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/sky.js +141 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/slag_fix.js +25 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/smooth_water.js +6 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/solid_rock.js +74 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/solidcolor.js +146 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/solubility.js +287 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/some_tf_liquids.js +358 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/souls.js +163 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/soups.js +104 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/spaceship.js +138 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/special_property_library.js +155 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/sponge_edit.js +76 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/sports_beta.js +69 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/spouts.js +715 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/spring.js +283 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/stainless_steel.js +126 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/star_wars.js +70 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/state_voids.js +347 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/static.js +182 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/stickyslime.js +3 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/stickystuff.js +59 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/stormlib.js +99 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/stripe_paint.js +110 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/structure_test.js +755 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/sturdierpowders.js +595 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/subspace.js +46 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/survival.js +499 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/survivalhack.js +500 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/sus.js +92 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/switches.js +53 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/talismanadditions.js +124 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/tech.js +282 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/test.js +8 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/test_2.js +399 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/testmod.js +7 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/text.js +681 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/texture_pack_by_jayd.js +116 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/texturepack.js +94 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/the_ground.js +3 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/the_ground_og.js +2570 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/the_snail.js +63 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/themostrandomstuff.js +523 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/thermal_conduit.js +157 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/thiquovite.js +1745 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/ticking_temp_stuff.js +494 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/time.js +7 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/toms_stuff.js +308 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/tool_pixel_behavior.js +792 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/tooltip.js +32 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/toothpaste.js +154 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/tpt.js +89 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/triggerable_random_powders.js +68 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/troll.js +170 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/true_flashbang.js +520 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/ultimadrink.js +3191 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/uncook.js +51 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/unhide.js +10 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/variety_mod.js +727 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/velocity.js +139 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/velocity2.js +209 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/video.js +125 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/vinegar.js +17 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/volcanic_expansion.js +94 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/war.js +51 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/war_crimes.js +131 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/waterspout.js +26 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/weAllScreamFor.js +218 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/weapons.js +1286 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/wheel_fix.js +19 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/wifi.js +162 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/wifi_draw.js +87 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/wine.js +8 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/wirelike_test.js +681 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/worldEdit.js +441 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/worldEdit.ts +569 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/world_gen_test.js +315 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/worldgen_test.js +173 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/worldgenlibrary.js +164 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/x_dependent_change_test.js +34 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/yumcherries.js +543 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/zonneschijn7.js +6 -0
- package/sandboxels-package/sandboxels-1.13.2/mods/zoom.js +322 -0
- package/sandboxels-package/sandboxels-1.13.2/offline-use.html +103 -0
- package/sandboxels-package/sandboxels-1.13.2/offline.html +1 -0
- package/sandboxels-package/sandboxels-1.13.2/presskit.html +165 -0
- package/sandboxels-package/sandboxels-1.13.2/promo.html +13 -0
- package/sandboxels-package/sandboxels-1.13.2/scripts/im2elements/code.go +116 -0
- package/sandboxels-package/sandboxels-1.13.2/scripts/im2elements/go.mod +5 -0
- package/sandboxels-package/sandboxels-1.13.2/scripts/im2elements/go.sum +2 -0
- package/sandboxels-package/sandboxels-1.13.2/scripts/im2elements/main.go +58 -0
- package/sandboxels-package/sandboxels-1.13.2/scripts/perlin.js +165 -0
- package/sandboxels-package/sandboxels-1.13.2/service-worker.js +16 -0
- package/sandboxels-package/sandboxels-1.13.2/sitemap.txt +13 -0
- package/sandboxels-package/sandboxels-1.13.2/style.css +1105 -0
- package/sandboxels-package/sandboxels-1.13.2/template.html +86 -0
- package/sandboxels-package/sandboxels-1.13.2/tips.html +147 -0
- package/sandboxels-package/sandboxels-1.13.2/translate.html +105 -0
- package/README.md +0 -3
|
@@ -0,0 +1,1616 @@
|
|
|
1
|
+
/*
|
|
2
|
+
*Version 2.2.1
|
|
3
|
+
*/
|
|
4
|
+
let plants;
|
|
5
|
+
dependOn("orchidslibrary.js", ()=>{
|
|
6
|
+
class growInterval {
|
|
7
|
+
constructor(seedPixel, pattern, basePos, c = 0.025, dieAfter = undefined, fruit = undefined, elems = undefined){
|
|
8
|
+
let currentLength = 0;
|
|
9
|
+
let chance = c;
|
|
10
|
+
let pos = basePos;
|
|
11
|
+
let interval = setInterval(()=>{
|
|
12
|
+
if(currentLength == pattern.length || seedPixel == undefined){
|
|
13
|
+
clearInterval(interval);
|
|
14
|
+
} else {
|
|
15
|
+
let x = pos[0]+pattern[currentLength][0], y = pos[1]+pattern[currentLength][1];
|
|
16
|
+
if(Math.random()<chance && isEmpty(x,y) && !outOfBounds(x,y) && !paused){
|
|
17
|
+
let elem = (elems != undefined && elems[currentLength] != undefined) ? elems[currentLength] : (elems != undefined) ? elems[0] : "fruit_leaves";
|
|
18
|
+
createPixel((elem == "flower") ? "fruit_leaves" : elem, x, y);
|
|
19
|
+
pixelMap[x][y].noBloom = (elem == "flower") ? false : true;
|
|
20
|
+
pixelMap[x][y].blooming = (elem == "flower");
|
|
21
|
+
pixelMap[x][y].fruit = fruit;
|
|
22
|
+
if(elem == "fruit_leaves"){
|
|
23
|
+
pixelMap[x][y].dieAfter = dieAfter;
|
|
24
|
+
}
|
|
25
|
+
currentLength++;
|
|
26
|
+
} else if (!isEmpty(x,y) && !outOfBounds(x,y)){
|
|
27
|
+
if(eLists.SOIL.includes(pixelMap[x][y].element)){
|
|
28
|
+
deletePixel(x,y);
|
|
29
|
+
let elem = (elems != undefined && elems[currentLength] != undefined) ? elems[currentLength] : (elems != undefined) ? elems[0] : "fruit_leaves";
|
|
30
|
+
createPixel((elem == "flower") ? "fruit_leaves" : elem, x, y);
|
|
31
|
+
pixelMap[x][y].noBloom = (elem == "flower") ? false : true;
|
|
32
|
+
pixelMap[x][y].blooming = (elem == "flower");
|
|
33
|
+
pixelMap[x][y].fruit = fruit;
|
|
34
|
+
if(elem == "fruit_leaves"){
|
|
35
|
+
pixelMap[x][y].dieAfter = dieAfter;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
currentLength++;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}, 1000/tps);
|
|
42
|
+
this.interval = interval;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
let flowerExclude = ["pineapple"];
|
|
46
|
+
let vineGrow = ["wood", "rock_wall", "straw", "wall", "ewall", "bush_cane", "bush_base", "fruit_branch"];
|
|
47
|
+
plants = {
|
|
48
|
+
tree: [],
|
|
49
|
+
vine: ["grape", "tomato"],
|
|
50
|
+
bush: [],
|
|
51
|
+
other: ["pineapple", "watermelon", "banana", "onion"],
|
|
52
|
+
includes: function(target){
|
|
53
|
+
for(item in this){
|
|
54
|
+
if(this[item] && Array.isArray(this[item]) && this[item].includes(target)){return true;}
|
|
55
|
+
}
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
let growthPatterns = {
|
|
60
|
+
pineapple1: [[-1,-1],[-2,-2],[1,-1],[2,-2],[0,-1],[0,-2],[0,-3],[0,-4],[0,-5],[0,-6],[-1,-6],[1,-6],[-1,-5],[1,-5],[-1,-4],[1,-4],[-1,-3],[1,-3],[0,-7],[-1,-8],[1,-8]],
|
|
61
|
+
pineapple2: [[[-1,-1],[1,-1]],[[-2,-2],[2,-2]], [0,-1],[0,-2],[0,-3],[0,-4],[0,-5],[0,-6],[[-1,-6],[1,-6]],[[-1,-5],[1,-5]],[[-1,-4],[1,-4]],[[-1,-3],[1,-3]],[[-1,-2],[1,-2]],[0,-7],[-1,-8],[1,-8]],
|
|
62
|
+
pineapple3: [[-1,0],[-2,-1],[-3,-2],[1,0],[2,-1],[-4,-3],[3,-2],[4,-3],[-5,-4],[5,-4],[0,-1],[0,-2],[0,-3],[0,-4],[0,-5],[0,-6],[0,-7],[0,-8],[0,-9],[0,-10],[-1,-10],[1,-10],[-1,-9],[1,-9],[-1,-8],[1,-8],[-1,-7],[1,-7],[-1,-6],[1,-6],[-1,-5],[1,-5],[-1,-4],[1,-4],[-2,-9],[2,-9],[-2,-8],[2,-8],[2,-7],[-2,-7],[-2,-6],[2,-6],[2,-5],[-2,-5],[0,-11],[-1,-12],[1,-12],[2,-13],[-2,-13]],
|
|
63
|
+
melon_2x2: [[0,-1],[1,-2],[1,-1],[[1,0],[2,-1]],[2,0]],
|
|
64
|
+
melon_3x3: [[0,-1],[0,-2],[1,-3],[2,-3],[2,-2],[[1,-2],[1,-1]],[2,-1],[2,0],[1,0],[3,0],[3,-1],[3,-2]],
|
|
65
|
+
melon_4x4: [[0,-1],[0,-2],[0,-3],[1,-4],[2,-4],[3,-4],[3,-3],[2,-3],[2,-2],[3,-2],[1,-2],[1,-3],[1,-1],[2,-1],[3,-1],[1,0],[2,0],[3,0],[4,0],[4,-1],[4,-2],[4,-3]],
|
|
66
|
+
melon_5x5: [[0,-1],[0,-2],[0,-3],[0,-4],[1,-5],[2,-5],[3,-5],[3,-4],[2,-4],[3,-3],[4,-4],[4,-3],[2,-3],[1,-4],[5,-4],[3,-2],[2,-2],[4,-2],[5,-2],[1,-2],[1,-3],[5,-3],[1,-1],[2,-1],[3,-1],[4,-1],[5,-1],[5,0],[4,0],[3,0],[2,0],[1,0]],
|
|
67
|
+
palm_1: [[1,-1],[2,-2],[3,-2],[4,-2],[5,-1]],
|
|
68
|
+
palm_2: [[1,-1],[2,-2],[3,-2],[4,-3],[5,-3],[6,-3],[7,-2]],
|
|
69
|
+
palm_3: [[1,-1],[2,-2],[3,-3],[4,-3],[5,-4],[6,-4],[7,-4],[8,-3],[9,-2]] ,
|
|
70
|
+
palm_4: [[1,-1],[2,-1],[3,-2],[4,-2],[5,-3],[6,-3],[7,-3],[8,-3],[9,-2]],
|
|
71
|
+
"palm_5-1":[[0,-1],[0,-2],[1,-2],[0,-3],[-1,-3],[-2,-3],[2,-2],[3,-2],[4,-2],[5,-2],[-3,-3],[-4,-3],[-5,-3],[6,-2],[-6,-2],[-7,-2],[7,-1],[8,-1],[-8,-2],[-9,-1],[9,0],[0,-4],[1,-4],[1,-3],[2,-3],[-2,-4],[-3,-5],[-4,-5],[3,-4],[4,-4],[5,-5],[6,-5],[7,-5],[-5,-6],[-6,-6],[-7,-6],[-8,-5],[8,-4],[1,-5],[1,-6],[-1,-5],[-1,-6],[-2,-7],[-2,-8],[1,-7],[2,-8],[2,-9],[-3,-9],[-4,-10],[3,-10],[-1,-1],[-2,-1],[-2,0],[-1,0],[-1,1],[-2,1],[1,1],[1,0],[1,-1],[2,-1],[2,0],[2,1]],
|
|
72
|
+
"palm_5-2": [[-1,-1],[1,-1],[-2,-1],[2,-1],[-3,-2],[3,-2],[-4,-2],[4,-2],[5,-3],[-5,-3],[-6,-3],[6,-3],[7,-3],[-7,-3],[8,-4],[9,-4],[10,-4],[-8,-2],[11,-3],[0,-1],[1,-2],[-1,-2],[-2,-3],[2,-3],[3,-4],[4,-4],[-3,-4],[-4,-5],[-5,-5],[5,-5],[6,-5],[-6,-6],[-7,-6],[-8,-6],[7,-6],[8,-6],[9,-6],[10,-6],[-9,-5],[0,-3],[0,-2],[1,-4],[1,-5],[-1,-4],[-1,-5],[-2,-6],[-2,-7],[2,-6],[3,-7],[4,-8],[-3,-8],[-4,-9],[5,-9],[6,-9],[-5,-10],[-6,-10],[-7,-9],[7,-8],[1,0],[2,0],[3,0],[0,0],[-1,0],[-2,0],[-2,1],[-3,1],[-3,0],[-1,1],[1,1],[2,1],[3,1],[3,2],[2,2],[1,2],[-1,2],[-2,2],[-3,2],[-3,3],[-2,3],[-1,3],[1,3],[2,3],[3,3]],
|
|
73
|
+
"coconut_5-1":[[0,-1],[-1,-1],[-2,-1],[-3,-1],[1,-1],[2,-1],[3,-2],[4,-2],[-4,-2],[-5,-2],[-6,-2],[-7,-2],[5,-2],[6,-2],[7,-1],[-8,-1],[0,-2],[0,-3],[-1,-3],[-2,-4],[1,-2],[2,-3],[3,-4],[4,-4],[5,-4],[6,-4],[7,-4],[-3,-5],[-4,-5],[-5,-5],[-6,-5],[-7,-4],[8,-3],[0,-4],[0,-5],[1,-6],[1,-7],[2,-8],[3,-9],[4,-10],[5,-10],[-1,0],[-2,0],[-1,1],[-2,1],[-1,2],[-3,0],[-4,-1],[1,0],[1,1],[1,2],[2,0],[2,1],[3,-1],[3,0],[0,0]],
|
|
74
|
+
"coconut_5-2":[[0,-1],[-1,-1],[-2,-1],[-3,-2],[-4,-2],[-5,-2],[-6,-2],[-7,-1],[1,-1],[2,-2],[3,-2],[4,-3],[5,-3],[6,-3],[7,-2],[8,-2],[9,-1],[0,-2],[0,-3],[1,-3],[2,-4],[3,-5],[4,-5],[5,-6],[6,-6],[7,-6],[8,-5],[-1,-3],[-2,-4],[-3,-5],[-4,-5],[-5,-6],[-6,-6],[-7,-6],[-8,-5],[-9,-4],[0,-4],[0,-5],[1,-6],[1,-7],[2,-8],[2,-9],[3,-10],[4,-11],[-1,0],[1,0],[2,0],[2,-1],[-2,0],[-1,1],[-2,1],[-3,1],[1,1],[2,1],[3,0],[4,0],[-3,-1],[-3,0],[-4,0],[-4,1],[3,1],[4,1],[3,-1],[-1,2],[-2,2],[-3,2],[1,2],[2,2],[3,2]],
|
|
75
|
+
blade: function(length, min, max, exclude = null){
|
|
76
|
+
let angle = min+(Math.random()*(max-min));
|
|
77
|
+
if(exclude != null){
|
|
78
|
+
while(angle > exclude[0] && angle < exclude[1]){
|
|
79
|
+
angle = min+(Math.random()*(max-min));
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
let res = [];
|
|
83
|
+
let num = (angle < 270) ? -0.5 : 0.5;
|
|
84
|
+
for(let i = 0; i < length; i++){
|
|
85
|
+
let tempAngle = (angle+(num*i))*(Math.PI/180);
|
|
86
|
+
let dX = Math.cos(tempAngle)*i, dY = Math.sin(tempAngle)*i;
|
|
87
|
+
res.push([Math.floor(dX), Math.floor(dY)]);
|
|
88
|
+
}
|
|
89
|
+
return res;
|
|
90
|
+
},
|
|
91
|
+
palm: function(length, min, max, exclude = null){
|
|
92
|
+
let angle = min+(Math.random()*(max-min));
|
|
93
|
+
if(exclude != null){
|
|
94
|
+
while(angle > exclude[0] && angle < exclude[1]){
|
|
95
|
+
angle = min+(Math.random()*(max-min));
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
let res = [];
|
|
99
|
+
let num = (angle < 270) ? -3 : 3;
|
|
100
|
+
for(let i = 0; i < length; i++){
|
|
101
|
+
let tempAngle = (angle+(num*i))*(Math.PI/180);
|
|
102
|
+
let dX = Math.cos(tempAngle)*i, dY = Math.sin(tempAngle)*i;
|
|
103
|
+
res.push([Math.floor(dX), Math.floor(dY)]);
|
|
104
|
+
}
|
|
105
|
+
return res;
|
|
106
|
+
},
|
|
107
|
+
palm_bloom: function(){
|
|
108
|
+
let res = [];
|
|
109
|
+
|
|
110
|
+
let width = 3+Math.round(Math.random()*2);
|
|
111
|
+
let length = 5+(width-3);
|
|
112
|
+
for(let i = 1; i < length; i++){
|
|
113
|
+
for(let ii = 1; ii < width; ii++){
|
|
114
|
+
res.push([-ii,i]);
|
|
115
|
+
res.push([ii,i]);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
return res;
|
|
119
|
+
},
|
|
120
|
+
stalk: function(height){
|
|
121
|
+
let res = [];
|
|
122
|
+
for(let i = 1; i <= height; i++){
|
|
123
|
+
res.push([0, -i]);
|
|
124
|
+
}
|
|
125
|
+
return res;
|
|
126
|
+
},
|
|
127
|
+
};
|
|
128
|
+
let growthElems = {
|
|
129
|
+
pineapple1: ["fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","fruit_leaves","fruit_leaves","fruit_leaves"],
|
|
130
|
+
pineapple2: ["fruit_leaves","fruit_leaves","fruit_leaves","flower","flower","flower","flower","flower","flower","flower","flower","flower","fruit_leaves","fruit_leaves","fruit_leaves"],
|
|
131
|
+
pineapple3: ["fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves"],
|
|
132
|
+
melon_2x2: ["fruit_leaves","fruit_leaves","flower","flower","flower","flower"],
|
|
133
|
+
melon_3x3: ["fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","flower","flower","flower","flower","flower","flower","flower","flower","flower"],
|
|
134
|
+
melon_4x4: ["fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower"],
|
|
135
|
+
melon_5x5: ["fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower"],
|
|
136
|
+
palm_1: ["fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves"],
|
|
137
|
+
palm_2: ["fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves"],
|
|
138
|
+
palm_3: ["fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves"],
|
|
139
|
+
palm_4: ["fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves"],
|
|
140
|
+
"palm_5-1": ["fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower"],
|
|
141
|
+
"palm_5-2":["fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","flower","flower","flower","fruit_leaves","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower"],
|
|
142
|
+
"coconut_5-1": ["fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","fruit_leaves"],
|
|
143
|
+
"coconut_5-2": ["fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","fruit_leaves","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower","flower"],
|
|
144
|
+
}
|
|
145
|
+
let ethyleneChance = {
|
|
146
|
+
tomato: 0.000055,
|
|
147
|
+
orange: 0.000005,
|
|
148
|
+
strawberry: 0.000005,
|
|
149
|
+
grape: 0.000005,
|
|
150
|
+
blueberry: 0.000005,
|
|
151
|
+
apple: 0.00005,
|
|
152
|
+
avocado: 0.00005,
|
|
153
|
+
plum: 0.00005,
|
|
154
|
+
peach: 0.00005,
|
|
155
|
+
apricot: 0.00005,
|
|
156
|
+
pear: 0.00005,
|
|
157
|
+
mango: 0.000005,
|
|
158
|
+
kiwi: 0.000005,
|
|
159
|
+
lemon: 0.000005,
|
|
160
|
+
raspberry: 0.000005,
|
|
161
|
+
blackberry: 0.000005,
|
|
162
|
+
get: function(name){
|
|
163
|
+
return this[name] || 0.00000035;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
elements.tomato.properties = {
|
|
167
|
+
type: "fruit",
|
|
168
|
+
fruit: "tomato",
|
|
169
|
+
};
|
|
170
|
+
elements.grape.properties = {
|
|
171
|
+
type: "fruit",
|
|
172
|
+
fruit: "grape",
|
|
173
|
+
};
|
|
174
|
+
class vineSeed {
|
|
175
|
+
category = "life";
|
|
176
|
+
behavior = behaviors.POWDER;
|
|
177
|
+
tick = function(pixel){
|
|
178
|
+
if(pixel.age > 40){
|
|
179
|
+
changePixel(pixel, (elements[pixel.element].low) ? "low_fruit_vine" : "fruit_vine");
|
|
180
|
+
}
|
|
181
|
+
pixel.age += 1;
|
|
182
|
+
};
|
|
183
|
+
properties = {
|
|
184
|
+
age: 0,
|
|
185
|
+
};
|
|
186
|
+
constructor(fruit, color, low = false){
|
|
187
|
+
this.properties.fruit = fruit;
|
|
188
|
+
this.color = color;
|
|
189
|
+
this.low = low;
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
class treeSeed {
|
|
194
|
+
properties = {
|
|
195
|
+
age: 0,
|
|
196
|
+
fruit: "",
|
|
197
|
+
};
|
|
198
|
+
tick = function(pixel) {
|
|
199
|
+
if (isEmpty(pixel.x,pixel.y+1)) {
|
|
200
|
+
movePixel(pixel,pixel.x,pixel.y+1);
|
|
201
|
+
}
|
|
202
|
+
else {
|
|
203
|
+
if (Math.random() < 0.02 && pixel.age > 50 && pixel.temp < 100) {
|
|
204
|
+
if (!outOfBounds(pixel.x,pixel.y+1)) {
|
|
205
|
+
var dirtPixel = pixelMap[pixel.x][pixel.y+1];
|
|
206
|
+
if (["dirt", "mud", "sand", "wet_sand", "clay_soil", "mycelium"].includes(dirtPixel.element)) {
|
|
207
|
+
changePixel(dirtPixel,"root");
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
if (isEmpty(pixel.x,pixel.y-1)) {
|
|
211
|
+
movePixel(pixel,pixel.x,pixel.y-1);
|
|
212
|
+
createPixel(Math.random() > 0.5 ? "wood" : "fruit_branch",pixel.x,pixel.y+1);
|
|
213
|
+
if (pixelMap[pixel.x][pixel.y+1].element == "fruit_branch" || pixelMap[pixel.x][pixel.y+1].element == "fruit_leaves" || pixelMap[pixel.x][pixel.y+1].element == "wood"){
|
|
214
|
+
pixelMap[pixel.x][pixel.y+1].fruit = pixel.fruit;
|
|
215
|
+
pixelMap[pixel.x][pixel.y+1].age = pixel.age;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
else if (pixel.age > 1000) {
|
|
220
|
+
changePixel(pixel,"wood");
|
|
221
|
+
}
|
|
222
|
+
pixel.age++;
|
|
223
|
+
}
|
|
224
|
+
doDefaults(pixel);
|
|
225
|
+
};
|
|
226
|
+
breakInto = ["sawdust", "sap"];
|
|
227
|
+
burnInto = ["charcoal", "sap", "ember"];
|
|
228
|
+
tempHigh = 100;
|
|
229
|
+
stateHigh = "dead_plant";
|
|
230
|
+
tempLow = -40;
|
|
231
|
+
stateLow = "frozen_plant";
|
|
232
|
+
burn = 40;
|
|
233
|
+
burnTime = 50;
|
|
234
|
+
category = "life";
|
|
235
|
+
seed = true;
|
|
236
|
+
constructor(fruit, colours){
|
|
237
|
+
this.properties.fruit = fruit;
|
|
238
|
+
this.color = colours;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
class fruit {
|
|
243
|
+
category = "food";
|
|
244
|
+
behavior = [["XX", "ST:fruit_leaves AND ST:fruit_branch AND ST:wood", "XX"],["ST:fruit_leaves AND ST:fruit_branch AND ST:wood", "XX", "ST:fruit_leaves AND ST:fruit_branch AND ST:wood"],["M2", "ST:fruit_leaves AND ST:fruit_branch AND ST:wood AND M1", "M2"]];
|
|
245
|
+
breakInto = "juice";
|
|
246
|
+
properties = {
|
|
247
|
+
type: "fruit",
|
|
248
|
+
};
|
|
249
|
+
isFood = true;
|
|
250
|
+
constructor(name, colour, jColour, type = "tree", sColour = false, extract = false, low = false){
|
|
251
|
+
this.properties.fruit = name;
|
|
252
|
+
this.color = colour;
|
|
253
|
+
this.breakIntoColor = jColour;
|
|
254
|
+
this.extract = (extract == false) ? undefined : extract;
|
|
255
|
+
if(type == "bush"){
|
|
256
|
+
this.behavior = [["XX", "ST:bush_cane", "XX"],["ST:bush_cane", "XX", "ST:bush_cane"],["M2", "ST:bush_cane AND M1", "M2"]];
|
|
257
|
+
} else if (type == "vine"){
|
|
258
|
+
this.behavior = behaviors.VINEFRUIT;
|
|
259
|
+
}
|
|
260
|
+
plants[type].push(name);
|
|
261
|
+
if(sColour != false){
|
|
262
|
+
if(type == "bush"){
|
|
263
|
+
elements[`${name}_seed`] = new bushSeed(name, sColour);
|
|
264
|
+
} else if (type == "vine"){
|
|
265
|
+
elements[`${name}_seed`] = new vineSeed(name, sColour, low);
|
|
266
|
+
} else {
|
|
267
|
+
elements[`${name}_seed`] = new treeSeed(name, sColour);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
};
|
|
271
|
+
tick = function(pixel){
|
|
272
|
+
let chance = ethyleneChance.get(pixel.fruit);
|
|
273
|
+
for(let i = 0; i < squareCoords.length; i++){
|
|
274
|
+
let x = pixel.x+squareCoords[i][0], y = pixel.y+squareCoords[i][1];
|
|
275
|
+
if(isEmpty(x,y) && !outOfBounds(x,y) && Math.random() < chance){
|
|
276
|
+
createPixel("ethylene", x, y);
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
elements.tomato.tick = function(pixel){
|
|
282
|
+
let chance = ethyleneChance.get(pixel.fruit);
|
|
283
|
+
for(let i = 0; i < squareCoords.length; i++){
|
|
284
|
+
let x = pixel.x+squareCoords[i][0], y = pixel.y+squareCoords[i][1];
|
|
285
|
+
if(isEmpty(x,y) && !outOfBounds(x,y) && Math.random() < chance){
|
|
286
|
+
createPixel("ethylene", x, y);
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
elements.grape.tick = function(pixel){
|
|
291
|
+
let chance = ethyleneChance.get(pixel.fruit);
|
|
292
|
+
for(let i = 0; i < squareCoords.length; i++){
|
|
293
|
+
let x = pixel.x+squareCoords[i][0], y = pixel.y+squareCoords[i][1];
|
|
294
|
+
if(isEmpty(x,y) && !outOfBounds(x,y) && Math.random() < chance){
|
|
295
|
+
createPixel("ethylene", x, y);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
elements.wood.properties = {age: 0, fruit: ""};
|
|
300
|
+
|
|
301
|
+
elements.nutrient_agar = {
|
|
302
|
+
category: "life",
|
|
303
|
+
behavior: behaviors.STURDYPOWDER,
|
|
304
|
+
properties: {
|
|
305
|
+
value: null,
|
|
306
|
+
},
|
|
307
|
+
state: "solid",
|
|
308
|
+
color: ["#edeae4", "#f2f0eb", "#e8e7e3", "#f5f1e9"],
|
|
309
|
+
tick: function(pixel) {
|
|
310
|
+
for(let coords of adjacentCoords){
|
|
311
|
+
let x = pixel.x+coords[0], y = pixel.y+coords[1];
|
|
312
|
+
let p2 = getPixel(x,y);
|
|
313
|
+
if(p2 != null){
|
|
314
|
+
if(["wine", "yeast", "grape", "apple", "plum"].includes(p2.element) && pixel.value == null){
|
|
315
|
+
pixel.value = "yeast";
|
|
316
|
+
} else if(p2.element == "mold" && pixel.value == null){
|
|
317
|
+
pixel.value = "mold";
|
|
318
|
+
}else if(p2.element == "mushroom_spore" && pixel.value == null){
|
|
319
|
+
pixel.value = "mushroom_spore";
|
|
320
|
+
}else if (p2.element == pixel.element && p2.value != null && pixel.value == null && Math.random()<0.0035){
|
|
321
|
+
pixel.value = p2.value;
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
if(Math.random() < 0.00075){
|
|
326
|
+
if(pixel.value == null && Math.random() < 0.025){
|
|
327
|
+
let elems = ["mold", "mold", "mushroom_spore"];
|
|
328
|
+
let elem = elems[Math.round(Math.random()*elems.length)];
|
|
329
|
+
while(elem == undefined){
|
|
330
|
+
elem = elems[Math.round(Math.random()*elems.length)];
|
|
331
|
+
}
|
|
332
|
+
changePixel(pixel, elem);
|
|
333
|
+
} else {
|
|
334
|
+
changePixel(pixel, pixel.value);
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
};
|
|
339
|
+
|
|
340
|
+
elements.mold = {
|
|
341
|
+
category: "life",
|
|
342
|
+
behavior: behaviors.POWDER,
|
|
343
|
+
color: ["#33402a", "#303d25", "#2b4f39", "#254231"],
|
|
344
|
+
reactions: {
|
|
345
|
+
cheese: {elem2: ["rotten_cheese", "rotten_cheese", "mold"], chance: 0.075},
|
|
346
|
+
meat: {elem2: ["rotten_meat", "rotten_meat", "mold"], chance: 0.075},
|
|
347
|
+
},
|
|
348
|
+
state: "solid",
|
|
349
|
+
tick: function(pixel){
|
|
350
|
+
for(let coords of adjacentCoords){
|
|
351
|
+
let x = pixel.x+coords[0], y = pixel.y+coords[1], p2 = getPixel(x,y);
|
|
352
|
+
if(p2 != null){
|
|
353
|
+
if(plants.includes(p2.element) && Math.random() < 0.025){
|
|
354
|
+
let elems = ["mold", "rotten_fruit", "rotten_fruit"];
|
|
355
|
+
let elem = elems[Math.round(Math.random()*elems.length)];
|
|
356
|
+
while(elem == undefined){
|
|
357
|
+
elem = elems[Math.round(Math.random()*elems.length)];
|
|
358
|
+
}
|
|
359
|
+
changePixel(p2, elem);
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
};
|
|
365
|
+
|
|
366
|
+
elements.rotten_fruit = {
|
|
367
|
+
color: ["#5e3d00", "#5c3c01", "#4a3205", "#634102"],
|
|
368
|
+
category: "life",
|
|
369
|
+
behavior: behaviors.POWDER,
|
|
370
|
+
reactions: {
|
|
371
|
+
cheese: {elem2: ["rotten_cheese", "rotten_cheese", "mold"], chance: 0.075},
|
|
372
|
+
meat: {elem2: ["rotten_meat", "rotten_meat", "mold"], chance: 0.075},
|
|
373
|
+
},
|
|
374
|
+
state: "solid",
|
|
375
|
+
};
|
|
376
|
+
|
|
377
|
+
elements.yeast = {
|
|
378
|
+
color: ["#e3d3a6", "#f2dea7", "#e3cf98", "#f2dfaa"],
|
|
379
|
+
category: "life",
|
|
380
|
+
density: 1033,
|
|
381
|
+
behavior: behaviors.POWDER,
|
|
382
|
+
reactions: {
|
|
383
|
+
sugar_water: {elem2: "wine", color2: ["#6e85b5", "#6d81ab"], chance: 0.00025},
|
|
384
|
+
water: {elem2: "seltzer", chance: 0.00005},
|
|
385
|
+
},
|
|
386
|
+
tick: function(pixel){
|
|
387
|
+
for(let coords of adjacentCoords){
|
|
388
|
+
let x = pixel.x+coords[0], y = pixel.y+coords[1], p2 = getPixel(x,y);
|
|
389
|
+
if(p2 != null){
|
|
390
|
+
if(p2.element == "juice" && Math.random() < 0.00025){
|
|
391
|
+
let rgb = getRGB(p2.color);
|
|
392
|
+
for(key in rgb){
|
|
393
|
+
rgb[key] = Math.max(rgb[key] - 10, 0);
|
|
394
|
+
}
|
|
395
|
+
changePixel(p2, "wine");
|
|
396
|
+
p2.color = normalize(rgb);
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
elements.fruit_branch = {
|
|
404
|
+
color: elements.tree_branch.color,
|
|
405
|
+
behavior: [
|
|
406
|
+
"XX|XX|XX",
|
|
407
|
+
"XX|XX|XX",
|
|
408
|
+
"XX|XX|XX",
|
|
409
|
+
],
|
|
410
|
+
tempHigh: 100,
|
|
411
|
+
stateHigh: "wood",
|
|
412
|
+
tempLow: -30,
|
|
413
|
+
stateLow: "wood",
|
|
414
|
+
category: "life",
|
|
415
|
+
burn: 40,
|
|
416
|
+
burnTime: 50,
|
|
417
|
+
burnInto: ["sap","ember","charcoal"],
|
|
418
|
+
hidden: true,
|
|
419
|
+
state: "solid",
|
|
420
|
+
density: 1500,
|
|
421
|
+
hardness: 0.15,
|
|
422
|
+
breakInto: ["sap","sawdust"],
|
|
423
|
+
seed: "apple_seed",
|
|
424
|
+
properties: {
|
|
425
|
+
age: 0,
|
|
426
|
+
fruit: "",
|
|
427
|
+
},
|
|
428
|
+
tick: function(pixel){
|
|
429
|
+
let pos = [[-1, -1], [0, -1], [1, -1]];
|
|
430
|
+
for(let i = 0; i < pos.length; i++){
|
|
431
|
+
let x = pixel.x+pos[i][0], y = pixel.y+pos[i][1];
|
|
432
|
+
if(isEmpty(x,y) && !outOfBounds(x,y)){
|
|
433
|
+
if(Math.random() < 0.035){
|
|
434
|
+
let elemArr = (pos[i][0] == 0) ? ["fruit_leaves","fruit_leaves","fruit_leaves","fruit_branch","fruit_branch"] : ["fruit_branch", "fruit_branch", "fruit_leaves", "fruit_leaves", "wood"];
|
|
435
|
+
createPixel(elemArr[Math.round(Math.random()*elemArr.length)], x, y);
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
for(var i = 0; i < adjacentCoords.length; i++){
|
|
440
|
+
let x = pixel.x+adjacentCoords[i][0];
|
|
441
|
+
let y = pixel.y+adjacentCoords[i][1];
|
|
442
|
+
if(isEmpty(x, y) || outOfBounds(x, y)) { continue; }
|
|
443
|
+
let pixel2 = pixelMap[x][y];
|
|
444
|
+
if(pixel2.element == "fruit_branch" || pixel2.element == "fruit_leaves" || pixel2.element == "wood"){
|
|
445
|
+
if(pixel.fruit != "" && pixel2.fruit == ""){
|
|
446
|
+
pixel2.fruit = pixel.fruit;
|
|
447
|
+
} else if (pixel.fruit == "" && pixel2.fruit != ""){
|
|
448
|
+
pixel.fruit = pixel2.fruit;
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
elements.fruit_leaves = {
|
|
455
|
+
color: elements.plant.color,
|
|
456
|
+
behavior: [
|
|
457
|
+
"XX|XX|XX",
|
|
458
|
+
"XX|XX|XX",
|
|
459
|
+
"XX|XX|XX",
|
|
460
|
+
],
|
|
461
|
+
reactions: {
|
|
462
|
+
"vinegar": { elem1:"dead_plant", elem2:null, chance:0.035 },
|
|
463
|
+
"baking_soda": { elem1:"dead_plant", elem2:null, chance:0.01 },
|
|
464
|
+
"bleach": { elem1:"dead_plant", elem2:null, chance:0.05 },
|
|
465
|
+
"alcohol": { elem1:"dead_plant", elem2:null, chance:0.035 }
|
|
466
|
+
},
|
|
467
|
+
category:"life",
|
|
468
|
+
tempHigh: 100,
|
|
469
|
+
stateHigh: "dead_plant",
|
|
470
|
+
tempLow: -1.66,
|
|
471
|
+
stateLow: "frozen_plant",
|
|
472
|
+
burn:65,
|
|
473
|
+
burnTime:60,
|
|
474
|
+
burnInto: "dead_plant",
|
|
475
|
+
breakInto: "dead_plant",
|
|
476
|
+
state: "solid",
|
|
477
|
+
density: 1050,
|
|
478
|
+
hidden: true,
|
|
479
|
+
properties: {
|
|
480
|
+
age: 0,
|
|
481
|
+
fruit: "",
|
|
482
|
+
growthStage: 0,
|
|
483
|
+
dir: [1,1],
|
|
484
|
+
bloomColor: "#FFE2E2",
|
|
485
|
+
},
|
|
486
|
+
tick: function(pixel){
|
|
487
|
+
if(pixel.dieAfter != undefined){
|
|
488
|
+
let chance = (pixel.age-pixel.dieAfter)/150;
|
|
489
|
+
chance = Math.max(0, Math.min(1, chance));
|
|
490
|
+
if(Math.random() < chance){
|
|
491
|
+
changePixel(pixel, "dead_plant");
|
|
492
|
+
let neighbors = [], boolArr = [];
|
|
493
|
+
|
|
494
|
+
for(let coords of squareCoords){
|
|
495
|
+
let x = pixel.x+coords[0], y = pixel.y+coords[1];
|
|
496
|
+
let p2 = getPixel(x,y);
|
|
497
|
+
if(p2 != null){
|
|
498
|
+
neighbors[neighbors.length] = p2;
|
|
499
|
+
boolArr[boolArr.length] = (p2.dieAfter != undefined);
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
if(boolArr.includes(true)){
|
|
503
|
+
for(let coords of squareCoords){
|
|
504
|
+
let x = pixel.x+coords[0], y = pixel.y+coords[1];
|
|
505
|
+
let p2 = getPixel(x,y);
|
|
506
|
+
if(p2 != null){
|
|
507
|
+
if(p2.dieAfter != undefined){
|
|
508
|
+
p2.age = p2.dieAfter+150;
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
}
|
|
516
|
+
if(pixelTicks == pixel.start + 1 && pixel.blooming == undefined && !pixel.growthPattern && !pixel.noBloom){
|
|
517
|
+
if(Math.floor(Math.random() * 3) == 2){
|
|
518
|
+
pixel.blooming = true;
|
|
519
|
+
pixel.color ="#FFE2E2";
|
|
520
|
+
} else {
|
|
521
|
+
pixel.blooming = false;
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
if(pixel.blooming && elements[pixel.fruit] != undefined && elements[pixel.fruit].bloomColor != undefined && !elements[pixel.fruit].bloomColor.includes(pixel.bloomColor)){
|
|
525
|
+
pixel.bloomColor = elements[pixel.fruit].bloomColor;
|
|
526
|
+
}
|
|
527
|
+
if(pixel.blooming && !pixel.bloomColor.includes(pixel.c)){
|
|
528
|
+
let color = "";
|
|
529
|
+
if(Array.isArray(pixel.bloomColor)){
|
|
530
|
+
color = pixel.bloomColor[Math.round(Math.random()*pixel.bloomColor.length)];
|
|
531
|
+
while(color == undefined){
|
|
532
|
+
color = pixel.bloomColor[Math.round(Math.random()*pixel.bloomColor.length)];
|
|
533
|
+
}
|
|
534
|
+
} else {
|
|
535
|
+
color = pixel.bloomColor;
|
|
536
|
+
}
|
|
537
|
+
pixel.c = color;
|
|
538
|
+
let range = (elements[pixel.fruit] && elements[pixel.fruit].bloomRange) ? elements[pixel.fruit].bloomRange : 5;
|
|
539
|
+
let rgb = (color.startsWith("#")) ? hexToRGB(color) : getRGB(color);
|
|
540
|
+
let num = (Math.round(Math.random()*(range*2)))-range;
|
|
541
|
+
color = RGBToHex({r: Math.max(0, Math.min(255, rgb.r+num)), g: Math.max(0, Math.min(255, rgb.g+num)), b: Math.max(0, Math.min(255, rgb.b+num))});
|
|
542
|
+
|
|
543
|
+
pixel.color = color;
|
|
544
|
+
}
|
|
545
|
+
for(var i = 0; i < adjacentCoords.length; i++){
|
|
546
|
+
let x = pixel.x+adjacentCoords[i][0];
|
|
547
|
+
let y = pixel.y+adjacentCoords[i][1];
|
|
548
|
+
if(isEmpty(x, y) || outOfBounds(x, y)) { continue; }
|
|
549
|
+
let pixel2 = pixelMap[x][y];
|
|
550
|
+
if((["fruit_vine", "fruit_branch", "fruit_leaves", "low_fruit_vine", "wood"].includes(pixel2.element) || (pixel2.type && pixel2.type == "fruit")) && pixel2.fruit != "pineapple"){
|
|
551
|
+
if(pixel.fruit && !pixel2.fruit){
|
|
552
|
+
pixel2.fruit = pixel.fruit;
|
|
553
|
+
} else if (!pixel.fruit && pixel2.fruit){
|
|
554
|
+
pixel.fruit = pixel2.fruit;
|
|
555
|
+
}
|
|
556
|
+
if(pixel.age && !pixel2.age){
|
|
557
|
+
pixel2.age = pixel.age;
|
|
558
|
+
} else if (!pixel.age && pixel2.age){
|
|
559
|
+
pixel.age = pixel2.age;
|
|
560
|
+
}
|
|
561
|
+
} else if(pixel2.element == "bee" && pixel.blooming){
|
|
562
|
+
for(let value of pixel2.fruitPollen){
|
|
563
|
+
if(value.fruit == pixel.fruit){
|
|
564
|
+
let rgb1 = (value.color.startsWith("#")) ? hexToRGB(value.color) : getRGB(value.color);
|
|
565
|
+
let rgb2 = (pixel.color.startsWith("#")) ? hexToRGB(pixel.color) : getRGB(pixel.color);
|
|
566
|
+
let combinedRGB = {r: (rgb1.r+rgb2.r)/2, g: (rgb1.g+rgb2.g)/2, b: (rgb1.b+rgb2.b)/2};
|
|
567
|
+
pixel.offspringColor = combinedRGB;
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
if(pixel.blooming && pixel.fruit == "pineapple" && Math.random() < 0.0035){
|
|
573
|
+
let x = pixel.x, y = pixel.y;
|
|
574
|
+
changePixel(pixel, "unripe_fruit");
|
|
575
|
+
pixelMap[x][y].fruit = "pineapple";
|
|
576
|
+
}
|
|
577
|
+
if(pixel.blooming && !flowerExclude.includes(pixel.fruit)){
|
|
578
|
+
let chance = 0.0025;
|
|
579
|
+
for(let i = 0; i < squareCoords.length; i++){
|
|
580
|
+
let x = pixel.x+squareCoords[i][0], y = pixel.y+squareCoords[i][1];
|
|
581
|
+
if(!isEmpty(x,y) && !outOfBounds(x,y)){
|
|
582
|
+
let p2 = pixelMap[x][y];
|
|
583
|
+
if(["ethylene","propylene"].includes(p2.element)){
|
|
584
|
+
chance = [0.01, 0.0035][["ethylene","propylene"].indexOf(p2.element)] || chance;
|
|
585
|
+
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
if(pixelTicks > pixel.start + 150){
|
|
590
|
+
if(Math.random() < chance){
|
|
591
|
+
if(pixel.fruit){
|
|
592
|
+
if(pixel.fruit == "random"){
|
|
593
|
+
changePixel(pixel, fruits[Math.floor(Math.random() * fruits.length)]);
|
|
594
|
+
} else {
|
|
595
|
+
let c = (pixel.offspringColor) ? pixel.offspringColor : undefined;
|
|
596
|
+
changePixel(pixel, pixel.fruit);
|
|
597
|
+
if(c != undefined){
|
|
598
|
+
pixel.bloomColor = c;
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
if(pixel.growthPattern == true){
|
|
606
|
+
let chance = (pixel.age-150)/2500;
|
|
607
|
+
chance = Math.max(Math.min(chance, 1), 0);
|
|
608
|
+
if(Math.random() < chance){
|
|
609
|
+
let value = growthPatterns[pixel.pattern][pixel.growthStage];
|
|
610
|
+
if(pixel.growthStage < growthPatterns[pixel.pattern].length && is2d(value)){
|
|
611
|
+
for(let coords of value){
|
|
612
|
+
let x = pixel.x+(coords[0]*pixel.dir[0]), y = pixel.y+(coords[1]*pixel.dir[1]);
|
|
613
|
+
if(isEmpty(x,y) && !outOfBounds(x,y)){
|
|
614
|
+
if(growthElems[pixel.pattern][pixel.growthStage] == "flower"){
|
|
615
|
+
createPixel("fruit_leaves", x, y);
|
|
616
|
+
pixelMap[x][y].blooming = true;
|
|
617
|
+
pixelMap[x][y].fruit = pixel.fruit;
|
|
618
|
+
} else {
|
|
619
|
+
createPixel((growthElems[pixel.pattern][pixel.growthStage] == undefined) ? growthElems[pixel.pattern][0] : growthElems[pixel.pattern][pixel.growthStage], x, y);
|
|
620
|
+
pixelMap[x][y].noBloom = true;
|
|
621
|
+
pixelMap[x][y].dieAfter = pixel.dieAfter;
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
} else if(pixel.growthStage < growthPatterns[pixel.pattern].length) {
|
|
626
|
+
let x = pixel.x+(value[0]*pixel.dir[0]), y = pixel.y+(value[1]*pixel.dir[1]);
|
|
627
|
+
if(isEmpty(x,y) && !outOfBounds(x,y)){
|
|
628
|
+
if(growthElems[pixel.pattern][pixel.growthStage] == "flower"){
|
|
629
|
+
createPixel("fruit_leaves", x, y);
|
|
630
|
+
pixelMap[x][y].blooming = true;
|
|
631
|
+
pixelMap[x][y].fruit = pixel.fruit.split("_")[0];
|
|
632
|
+
} else {
|
|
633
|
+
createPixel((growthElems[pixel.pattern][pixel.growthStage] == undefined) ? growthElems[pixel.pattern][0] : growthElems[pixel.pattern][pixel.growthStage], x, y);
|
|
634
|
+
pixelMap[x][y].noBloom = true;
|
|
635
|
+
pixelMap[x][y].dieAfter = pixel.dieAfter;
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
pixel.growthStage += 1;
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
pixel.age++;
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
|
|
647
|
+
|
|
648
|
+
class bushSeed{
|
|
649
|
+
behavior = behaviors.STURDYPOWDER;
|
|
650
|
+
category = "life";
|
|
651
|
+
properties = {
|
|
652
|
+
age: 0,
|
|
653
|
+
};
|
|
654
|
+
tick = function(pixel){
|
|
655
|
+
if(pixel.age > 40){
|
|
656
|
+
let x1 = pixel.x - 1;
|
|
657
|
+
let y = pixel.y;
|
|
658
|
+
let x2 = pixel.x + 1;
|
|
659
|
+
if(isEmpty(x1,y) && !outOfBounds(x1,y)){
|
|
660
|
+
createPixel("bush_base", x1, y);
|
|
661
|
+
pixelMap[x1][y].fruit = pixel.fruit;
|
|
662
|
+
}
|
|
663
|
+
if(isEmpty(x2,y) && !outOfBounds(x2,y)){
|
|
664
|
+
createPixel("bush_base", x2, y);
|
|
665
|
+
pixelMap[x2][y].fruit = pixel.fruit;
|
|
666
|
+
}
|
|
667
|
+
if(!isEmpty(x1, y) && !isEmpty(x2, y)){
|
|
668
|
+
deletePixel(pixel.x, pixel.y);
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
pixel.age += 1;
|
|
672
|
+
};
|
|
673
|
+
constructor(fruit, colour){
|
|
674
|
+
this.properties.fruit = fruit;
|
|
675
|
+
this.color = colour;
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
elements.bush_base = {
|
|
679
|
+
color: elements.wood.color,
|
|
680
|
+
behavior: [
|
|
681
|
+
["CR:bush_cane%25", "XX", "CR:bush_cane%25"],
|
|
682
|
+
["XX", "XX", "XX"],
|
|
683
|
+
["XX", "XX", "XX"]
|
|
684
|
+
],
|
|
685
|
+
tempHigh: 100,
|
|
686
|
+
stateHigh: "dead_plant",
|
|
687
|
+
tempLow: -40,
|
|
688
|
+
stateLow: "frozen_plant",
|
|
689
|
+
burn: 65,
|
|
690
|
+
burnTime: 15,
|
|
691
|
+
category: "life",
|
|
692
|
+
state: "solid",
|
|
693
|
+
tick: function(pixel){
|
|
694
|
+
let caneCoords = [[-1,-1],[1,-1]];
|
|
695
|
+
for(var i = 0; i < caneCoords.length; i++){
|
|
696
|
+
let x = pixel.x + caneCoords[i][0];
|
|
697
|
+
let y = pixel.y + caneCoords[i][1];
|
|
698
|
+
if(!isEmpty(x,y) && !outOfBounds(x,y)){
|
|
699
|
+
let pixel2 = pixelMap[x][y];
|
|
700
|
+
if(pixel2.element == "bush_cane" && !pixel2.fruit){
|
|
701
|
+
pixel2.fruit = pixel.fruit;
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
};
|
|
707
|
+
elements.bush_cane = {
|
|
708
|
+
color: elements.wood.color,
|
|
709
|
+
tick: function(pixel){
|
|
710
|
+
if(pixel.age < 200 && Math.floor(Math.random() * 40) == 1){
|
|
711
|
+
if(!outOfBounds(pixel.x,pixel.y-1)){
|
|
712
|
+
if(isEmpty(pixel.x,pixel.y-1)){
|
|
713
|
+
createPixel("bush_cane",pixel.x,pixel.y-1);
|
|
714
|
+
if(pixel.fruit){
|
|
715
|
+
let pixel2 = pixelMap[pixel.x][pixel.y-1];
|
|
716
|
+
pixel2.fruit = pixel.fruit;
|
|
717
|
+
pixel2.age = pixel.age;
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
if(pixel.fruit && Math.floor(Math.random() * 400) == 1 && pixel.age > 200){
|
|
723
|
+
for(var i = 0; i < adjacentCoords.length; i++){
|
|
724
|
+
let x = pixel.x + adjacentCoords[i][0];
|
|
725
|
+
let y = pixel.y + adjacentCoords[i][1];
|
|
726
|
+
if(isEmpty(x,y) && !outOfBounds(x,y)){
|
|
727
|
+
createPixel("fruit_leaves", x, y);
|
|
728
|
+
pixelMap[x][y].fruit = pixel.fruit;
|
|
729
|
+
pixel.blooming = [true, false][Math.floor(Math.random() * 2)];
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
pixel.age += 1;
|
|
734
|
+
},
|
|
735
|
+
properties: {
|
|
736
|
+
age: 0,
|
|
737
|
+
},
|
|
738
|
+
category: "life",
|
|
739
|
+
tempLow: -2,
|
|
740
|
+
stateLow: "frozen_plant",
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
|
|
744
|
+
elements.low_fruit_vine = {
|
|
745
|
+
color: elements.plant.color,
|
|
746
|
+
behavior: behaviors.WALL,
|
|
747
|
+
category: "life",
|
|
748
|
+
properties: {
|
|
749
|
+
age: 0,
|
|
750
|
+
},
|
|
751
|
+
tick: function(pixel){
|
|
752
|
+
if(isEmpty(pixel.x, pixel.y - 1) && !outOfBounds(pixel.x, pixel.y - 1) && Math.random() < ((pixel.age/50000 > 0.005) ? 0.005 : (pixel.age/50000)) && pixel.fruit && ![undefined, "watermelon", "pumpkin"].includes(pixel.fruit)){
|
|
753
|
+
createPixel("fruit_leaves", pixel.x, pixel.y - 1);
|
|
754
|
+
pixelMap[pixel.x][pixel.y - 1].blooming = true;
|
|
755
|
+
pixelMap[pixel.x][pixel.y - 1].color = "#FFE2E2";
|
|
756
|
+
pixelMap[pixel.x][pixel.y - 1].fruit = pixel.fruit;
|
|
757
|
+
}
|
|
758
|
+
if(Math.floor(Math.random() * 100) == 1 && !["watermelon", "pumpkin", undefined].includes(pixel.fruit)){
|
|
759
|
+
let num = (Math.random() > 0.5) ? -1 : 1;
|
|
760
|
+
if(isEmpty(pixel.x + num, pixel.y)){
|
|
761
|
+
createPixel("low_fruit_vine", pixel.x + num, pixel.y);
|
|
762
|
+
pixelMap[pixel.x + num][pixel.y].fruit = pixel.fruit;
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
pixel.age++;
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
let str = "";
|
|
769
|
+
for(let i = 0; i < vineGrow.length; i++){
|
|
770
|
+
str += (i == vineGrow.length-1) ? `ST:${vineGrow[i]}` : `ST:${vineGrow[i]} AND `;
|
|
771
|
+
}
|
|
772
|
+
elements.fruit_vine = {
|
|
773
|
+
category: "life",
|
|
774
|
+
color: elements.plant.color,
|
|
775
|
+
behavior: [["XX", str, "XX"], [str, "XX", str], ["XX", str + " AND M1", "XX"]],
|
|
776
|
+
properties: {
|
|
777
|
+
age: 0,
|
|
778
|
+
},
|
|
779
|
+
tick: function(pixel){
|
|
780
|
+
if(Math.floor(Math.random() * 100) == 1 && pixel.age > 25 && pixel.age < 500){
|
|
781
|
+
for(var i = 0; i < squareCoords.length; i++){
|
|
782
|
+
let x1 = pixel.x + squareCoords[i][0];
|
|
783
|
+
let y1 = pixel.y + squareCoords[i][1];
|
|
784
|
+
if(!isEmpty(x1,y1) && !outOfBounds(x1,y1) && vineGrow.includes(pixelMap[x1][y1].element)){
|
|
785
|
+
//pixel.drag = true;
|
|
786
|
+
let randomNum = Math.floor(Math.random() * 4);
|
|
787
|
+
let x2 = x1 + squareCoords[randomNum][0];
|
|
788
|
+
let y2 = y1 + squareCoords[randomNum][1];
|
|
789
|
+
if(isEmpty(x2,y2) && !outOfBounds(x2,y2)){
|
|
790
|
+
createPixel("fruit_vine", x2, y2);
|
|
791
|
+
pixelMap[x2][y2].fruit = pixel.fruit;
|
|
792
|
+
pixelMap[x2][y2].bloomColor = pixel.bloomColor;
|
|
793
|
+
}
|
|
794
|
+
} //else {pixel.drag = false;}
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
pixel.age += 1;
|
|
798
|
+
if(pixel.fruit){
|
|
799
|
+
for(var i = 0; i < adjacentCoords.length; i++){
|
|
800
|
+
let x = pixel.x + adjacentCoords[i][0];
|
|
801
|
+
let y = pixel.y + adjacentCoords[i][1];
|
|
802
|
+
if(isEmpty(x,y) && !outOfBounds(x,y) && Math.floor(Math.random() * 5000) == 5 && pixel.age > 650){
|
|
803
|
+
createPixel("fruit_leaves", x, y);
|
|
804
|
+
pixelMap[x][y].blooming = true;
|
|
805
|
+
pixelMap[x][y].bloomColor = pixel.bloomColor;
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
if(!pixel.fruit){
|
|
810
|
+
for(var i = 0; i < squareCoords.length; i++){
|
|
811
|
+
let x = pixel.x + squareCoords[i][0];
|
|
812
|
+
let y = pixel.y + squareCoords[i][1];
|
|
813
|
+
if(isEmpty(x,y) || outOfBounds(x,y)){ continue; }
|
|
814
|
+
let pixel2 = pixelMap[x][y];
|
|
815
|
+
if(pixel2.fruit){
|
|
816
|
+
pixel.fruit = pixel2.fruit;
|
|
817
|
+
} else { continue; }
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
behaviors.VINEFRUIT = ["XX|ST:fruit_vine AND ST:low_fruit_vine|XX",
|
|
824
|
+
"ST:fruit_vine AND ST:low_fruit_vine|XX|ST:fruit_vine AND ST:low_fruit_vine",
|
|
825
|
+
"M2|M1|M2"];
|
|
826
|
+
elements.grape.behavior = behaviors.VINEFRUIT;
|
|
827
|
+
elements.tomato.behavior = behaviors.VINEFRUIT;
|
|
828
|
+
elements.grape_seed = new vineSeed("grape",["#281B01", "#2D1F06", "#2D1F06"]);
|
|
829
|
+
elements.tomato_seed = new vineSeed("tomato", ["#F8F5D1","#E7E5CF","#E3E1C5"]);
|
|
830
|
+
elements.apple = new fruit("apple", ["#FF0507", "#EC0A0D", "#F22426", "#DC2C2E"], ["#F9C497", "#EED3BB", "#EEDEBB"]);
|
|
831
|
+
elements.apple.bloomColor = ["#fff0f7", "#fcebf3", "#fff0f7", "#ffe6f2", "#fff7fb"];
|
|
832
|
+
elements.apple_seed = new treeSeed("apple", ["#3B1C01", "#3E2107", "#3A1C02"]);
|
|
833
|
+
|
|
834
|
+
elements.juice.tick = function(pixel){
|
|
835
|
+
for(let i = 0; i < squareCoords.length; i++){
|
|
836
|
+
let x = pixel.x+squareCoords[i][0], y = pixel.y+squareCoords[i][1];
|
|
837
|
+
if(!isEmpty(x,y) && !outOfBounds(x,y) && pixelMap[x][y].element == pixel.element && Math.random() < 0.005){
|
|
838
|
+
colorMix(pixel, pixelMap[x][y]);
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
elements.juice.onMix = function(pixel){
|
|
843
|
+
for(let i = 0; i < squareCoords.length; i++){
|
|
844
|
+
let x = pixel.x+squareCoords[i][0], y = pixel.y+squareCoords[i][1];
|
|
845
|
+
if(!isEmpty(x,y) && !outOfBounds(x,y) && pixelMap[x][y].element == pixel.element && Math.random() < 0.5){
|
|
846
|
+
colorMix(pixel, pixelMap[x][y]);
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
elements.fruit_milk.tick = function(pixel){
|
|
851
|
+
for(let i = 0; i < squareCoords.length; i++){
|
|
852
|
+
let x = pixel.x+squareCoords[i][0], y = pixel.y+squareCoords[i][1];
|
|
853
|
+
if(!isEmpty(x,y) && !outOfBounds(x,y) && pixelMap[x][y].element == pixel.element && Math.random() < 0.005){
|
|
854
|
+
colorMix(pixel, pixelMap[x][y]);
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
elements.fruit_milk.onMix = function(pixel){
|
|
859
|
+
for(let i = 0; i < squareCoords.length; i++){
|
|
860
|
+
let x = pixel.x+squareCoords[i][0], y = pixel.y+squareCoords[i][1];
|
|
861
|
+
if(!isEmpty(x,y) && !outOfBounds(x,y) && pixelMap[x][y].element == pixel.element && Math.random() < 0.5){
|
|
862
|
+
colorMix(pixel, pixelMap[x][y]);
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
elements.milk.reactions.juice = {func: function(p1, p2){
|
|
868
|
+
let rgb = interpolateRgb(getRGB(p1.color), getRGB(p2.color), 0.25);
|
|
869
|
+
changePixel(p1, "fruit_milk");
|
|
870
|
+
changePixel(p2, "fruit_milk");
|
|
871
|
+
p1.color = rgb;
|
|
872
|
+
p2.color = rgb;
|
|
873
|
+
}
|
|
874
|
+
};
|
|
875
|
+
elements.juice.reactions.carbon_dioxide = { func: function(p1,p2){
|
|
876
|
+
let rgb = interpolateRgb(getRGB(p1.color), getRGB(elements.water.color), 0.2);
|
|
877
|
+
changePixel(p1, "soda");
|
|
878
|
+
changePixel(p2, "foam");
|
|
879
|
+
p1.color = rgb;
|
|
880
|
+
p2.color = rgb;
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
elements.juice.reactions.seltzer = { func: function(p1,p2){
|
|
884
|
+
let rgb = interpolateRgb(getRGB(p1.color), getRGB(p2.color), 0.5);
|
|
885
|
+
changePixel(p1, "soda");
|
|
886
|
+
changePixel(p2, "foam");
|
|
887
|
+
p1.color = rgb;
|
|
888
|
+
p2.color = rgb;
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
elements.milk.reactions.soda = {
|
|
893
|
+
func: function(p1,p2){
|
|
894
|
+
let rgb = interpolateRgb(getRGB(p1.color), getRGB(p2.color), 0.5);
|
|
895
|
+
changePixel(p1, "pilk");
|
|
896
|
+
changePixel(p2, "pilk");
|
|
897
|
+
p1.color = rgb;
|
|
898
|
+
p2.color = rgb;
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
elements.seed_maker = {
|
|
903
|
+
behavior: behaviors.WALL,
|
|
904
|
+
category: "machines",
|
|
905
|
+
tick: function(pixel){
|
|
906
|
+
for(let i = 0; i < squareCoords.length; i++){
|
|
907
|
+
let x = pixel.x+squareCoords[i][0], y = pixel.y+squareCoords[i][1];
|
|
908
|
+
if((!isEmpty(x,y) && !outOfBounds(x,y)) && plants.includes(pixelMap[x][y].element)){
|
|
909
|
+
let c = (pixelMap[x][y].bloomColor) ? pixelMap[x][y].bloomColor : undefined;
|
|
910
|
+
changePixel(pixelMap[x][y], `${pixelMap[x][y].element}_seed`);
|
|
911
|
+
if(c != undefined){
|
|
912
|
+
pixelMap[x][y].bloomColor = c;
|
|
913
|
+
}
|
|
914
|
+
} else if ((!isEmpty(x,y) && !outOfBounds(x,y)) && pixelMap[x][y].alive == false){
|
|
915
|
+
pixelMap[x][y].alive = true;
|
|
916
|
+
}
|
|
917
|
+
}
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
elements.ethylene = {
|
|
922
|
+
behavior: behaviors.GAS,
|
|
923
|
+
category: "gases",
|
|
924
|
+
reactionCatalysts: {
|
|
925
|
+
gold: {e1: "water", product: "alcohol", chance: 0.025},
|
|
926
|
+
copper: {e1: "oxygen", product: "vinegar", chance: 0.025}
|
|
927
|
+
},
|
|
928
|
+
reactions: {
|
|
929
|
+
oxidized_copper: { elem1: "vinegar", elem2: "copper", chance: 0.025},
|
|
930
|
+
},
|
|
931
|
+
color: ["#fffffc", "#f7f7f2", "#eaebe6", "#ededed", "#f7f7f2", "#f2f2f2"],
|
|
932
|
+
buttonColor: ["#fffffc", "#f7f7f2"],
|
|
933
|
+
state: "gas",
|
|
934
|
+
burnInto: ["carbon_dioxide", "steam"],
|
|
935
|
+
burn: 100,
|
|
936
|
+
burnTime: 15,
|
|
937
|
+
stateHigh: "fire",
|
|
938
|
+
tempHigh: 425,
|
|
939
|
+
tick: function(pixel){
|
|
940
|
+
catalyse(pixel);
|
|
941
|
+
if(settings.cleargases){
|
|
942
|
+
let rgb;
|
|
943
|
+
if(settings.bg != undefined){
|
|
944
|
+
rgb = interpolateRgb(hexToRGB("#E5EAEA"), hexToRGB(settings.bg), 0.85);
|
|
945
|
+
} else {
|
|
946
|
+
rgb = interpolateRgb(hexToRGB("#E5EAEA"), {r:0,g:0,b:0}, 0.85);
|
|
947
|
+
}
|
|
948
|
+
pixel.color = rgb;
|
|
949
|
+
}else if (!["#fffffc", "#f7f7f2", "#eaebe6", "#ededed", "#f7f7f2", "#f2f2f2"].includes(pixel.color)){
|
|
950
|
+
pixel.color = ["#fffffc", "#f7f7f2", "#eaebe6", "#ededed", "#f7f7f2", "#f2f2f2"][Math.floor(Math.random()*6)];
|
|
951
|
+
};
|
|
952
|
+
},
|
|
953
|
+
}
|
|
954
|
+
elements.propylene = {
|
|
955
|
+
behavior: behaviors.GAS,
|
|
956
|
+
category: "gases",
|
|
957
|
+
reactionCatalysts: {
|
|
958
|
+
nickel: {e1: "hydrogen", product: "propane", chance: 0.025},
|
|
959
|
+
},
|
|
960
|
+
color: ["#fffffc", "#f7f7f2", "#eaebe6", "#ededed", "#f7f7f2", "#f2f2f2"],
|
|
961
|
+
buttonColor: ["#fffffc", "#f7f7f2"],
|
|
962
|
+
state: "gas",
|
|
963
|
+
burnInto: ["carbon_dioxide", "steam"],
|
|
964
|
+
burn: 100,
|
|
965
|
+
burnTime: 15,
|
|
966
|
+
stateHigh: "fire",
|
|
967
|
+
tempHigh: 425,
|
|
968
|
+
tick: function(pixel){
|
|
969
|
+
catalyse(pixel);
|
|
970
|
+
let rgb;
|
|
971
|
+
if(settings.cleargases){
|
|
972
|
+
if(settings.bg != undefined){
|
|
973
|
+
rgb = interpolateRgb(hexToRGB("#E5EAEA"), hexToRGB(settings.bg), 0.85);
|
|
974
|
+
} else {
|
|
975
|
+
rgb = interpolateRgb(hexToRGB("#E5EAEA"), {r:0,g:0,b:0}, 0.85);
|
|
976
|
+
}
|
|
977
|
+
pixel.color = rgb;
|
|
978
|
+
} else if (!["#fffffc", "#f7f7f2", "#eaebe6", "#ededed", "#f7f7f2", "#f2f2f2"].includes(pixel.color)){
|
|
979
|
+
pixel.color = ["#fffffc", "#f7f7f2", "#eaebe6", "#ededed", "#f7f7f2", "#f2f2f2"][Math.floor(Math.random()*6)];
|
|
980
|
+
};
|
|
981
|
+
},
|
|
982
|
+
}
|
|
983
|
+
elements.propane.reactionCatalysts = {
|
|
984
|
+
aluminum: {e2: "hydrogen", product: "propylene", chance: 0.035},
|
|
985
|
+
gallium: {e2: "hydrogen", product: "propylene", chance: 0.025},
|
|
986
|
+
};
|
|
987
|
+
elements.propane.tick = function(pixel){
|
|
988
|
+
catalyse(pixel);
|
|
989
|
+
}
|
|
990
|
+
runAfterAutogen(()=>{
|
|
991
|
+
let r;
|
|
992
|
+
if(settings.cleargases){
|
|
993
|
+
if(settings.bg != undefined){
|
|
994
|
+
r = interpolateRgb(hexToRGB("#E5EAEA"), hexToRGB(settings.bg), 0.85);
|
|
995
|
+
} else {
|
|
996
|
+
r = interpolateRgb(hexToRGB("#E5EAEA"), {r:0,g:0,b:0}, 0.85);
|
|
997
|
+
}
|
|
998
|
+
};
|
|
999
|
+
elements.ethylene.color = r;
|
|
1000
|
+
elements.propylene.color = r;
|
|
1001
|
+
})
|
|
1002
|
+
function catalyse(pixel){
|
|
1003
|
+
let rC = elements[pixel.element].reactionCatalysts;
|
|
1004
|
+
let neighbors = [];
|
|
1005
|
+
let p = [];
|
|
1006
|
+
for(let i = 0; i < squareCoords.length; i++){
|
|
1007
|
+
let x = pixel.x+squareCoords[i][0], y = pixel.y+squareCoords[i][1];
|
|
1008
|
+
if(!isEmpty(x,y) && !outOfBounds(x,y)){
|
|
1009
|
+
neighbors.push(pixelMap[x][y].element);
|
|
1010
|
+
p.push(pixelMap[x][y]);
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
1013
|
+
for(item in rC){
|
|
1014
|
+
if(neighbors.includes(item) && neighbors.includes(rC[item].e1) && Math.random() < rC[item].chance){
|
|
1015
|
+
changePixel(pixel, rC[item].product);
|
|
1016
|
+
if(rC[item].e2 != undefined){
|
|
1017
|
+
changePixel(p[neighbors.indexOf(rC[item].e1)], rC[item].e2);
|
|
1018
|
+
} else {
|
|
1019
|
+
let P = p[neighbors.indexOf(rC[item].e1)];
|
|
1020
|
+
deletePixel(P.x, P.y);
|
|
1021
|
+
}
|
|
1022
|
+
} else if (rC[item].e1 == undefined){
|
|
1023
|
+
if(neighbors.includes(item) && rC[item].e2 != undefined && Math.random() < rC[item].chance){
|
|
1024
|
+
for(let i = 0; i < squareCoords.length; i++){
|
|
1025
|
+
let x = pixel.x+squareCoords[i][0], y = pixel.y+squareCoords[i][1];
|
|
1026
|
+
if(isEmpty(x,y) && !outOfBounds(x,y)){
|
|
1027
|
+
createPixel(rC[item].e2, x, y);
|
|
1028
|
+
changePixel(pixel, rC[item].product);
|
|
1029
|
+
}
|
|
1030
|
+
}
|
|
1031
|
+
}
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
elements.orange = new fruit("orange", ['#FA9A14', '#E88D0F', '#F0963D', '#F4810E'], ['#FFDA0B', '#FFEA09', '#FFD609', '#FCC921'], "tree");
|
|
1036
|
+
elements.orange_seed = new treeSeed("orange", ['#EEE9C7', '#F4F1D0', '#E8E4C4', '#DBD5AF']);
|
|
1037
|
+
elements.kiwi = new fruit("kiwi", ['#886002', '#7D5B0D', '#876412', '#97620F'], ['#7DB410', '#86BC1B', '#95CE22', '#91CF12'], "vine");
|
|
1038
|
+
elements.kiwi_seed = new vineSeed("kiwi", ['#3E2A01', '#392804', '#473307', '#1E1500']);
|
|
1039
|
+
elements.raspberry = new fruit("raspberry", ['#FF201C', '#EF3D3A', '#FA5350', '#DF3E3B'], ['#FF4450', '#F43643', '#DF2C38', '#E92344'], "bush");
|
|
1040
|
+
elements.raspberry_seed = new bushSeed("raspberry", ['#572600', '#4C2506', '#592E0D', '#5E3211']);
|
|
1041
|
+
elements.blueberry = new fruit("blueberry", ['#322954', '#3F3366', '#2B1B5E', '#4C3C81'], ['#51042C', '#550E33', '#420D28', '#520F32'], "bush", ['#78573A', '#72492D', '#7D5438', '#704F3A']);
|
|
1042
|
+
elements.blackberry = new fruit("blackberry", ['#1A013A', '#1E073A', '#3D0A49', '#33043F'], ['#DC5F5F', '#D76D6D', '#BF6363', '#B05D5D'], "bush", ['#DA7878', '#C87B7B', '#AD6161', '#915656']);
|
|
1043
|
+
elements.blackberry.bloomColor = ["#f5f5f5", "#ede8ec", "#ebdfe8", "#f7f2f6", "#ffffff"];
|
|
1044
|
+
elements.strawberry = new fruit("strawberry", ['#FE3030', '#E93030', '#DE1F1F', '#CE0B0B'], ['#EA5C46', '#E24B34', '#CE5A48', '#E7604B'], "vine", ['#B27F65', '#AA7358', '#A27553', '#AF8B62'], false, true);
|
|
1045
|
+
elements.pear = new fruit("pear", ["#F1F8A7", "#DCE398", "#E3EE7E", "#D6E07F"], ["#F6F9D5", "#F6F9D5", "#E8ECC6", "#E8ECC0"], "tree", ["#3B1C01", "#3E2107", "#3A1C02"]);
|
|
1046
|
+
elements.mango = new fruit("mango", ["#F74E3E", "#E95D51", "#EE853B", "#D77026", "#F8BF46", "#F8B524", "#95C408", "#A5CD2D"], ["#FFC905", "#FFD605", "#FFE205", "#FFF305", "#FCE118"], "tree", ["#E8EABB", "#E3E5BA", "#EAEDC0", "#E8EAB1", "#D8DBA5"]);
|
|
1047
|
+
elements.lemon = new fruit("lemon", ["#FCF924", "#FCF924", "#EEEA1A", "#F6F212", "#FBF70B"], ["#F6F373", "#EEEC77", "#E3E267", "#F3F18B"], "tree", ["#F8F7B2", "#E9E9B1", "#E9E8A7", "#F1EFA4"]);
|
|
1048
|
+
elements.plum = new fruit("plum", ["#67486E", "#705476", "#634A69", "#785281"], ["#D58D77", "#DC9984", "#CA8D7A", "#CF816A"], "tree", ["#A08C5D", "#907D50", "#9B8551", "#AA9563"]);
|
|
1049
|
+
elements.plum.bloomColor = ["#ffb3df", "#ffa6da", "#ffbde3", "#ffd1ec"];
|
|
1050
|
+
elements.peach = new fruit("peach", ["#F76856", "#EA5D4A", "#EA6D4A", "#E5785A", "#FE824A", "#EE7A45", "#FAA543", "#F59D39", "#FF744D"], ["#F86F1F", "#EC742F", "#EC832F", "#EC9A2F", "#ECA62F"], "tree", ["#735940", "#7B5C3D", "#7D5935"]);
|
|
1051
|
+
elements.peach.bloomColor = ["#ffb3df", "#ffa6da", "#ffbde3", "#ffd1ec"];
|
|
1052
|
+
elements.apricot = new fruit("apricot", ["#F5A61F", "#F5A61F", "#EA9B12", "#F8A109"], ["#F2B016", "#F2AD0C", "#FBB81E", "#FFB301"], "tree", ["#735940", "#7B5C3D", "#7D5935"]);
|
|
1053
|
+
elements.apricot.bloomColor = ["#fff0fb", "#ffffff", "#fadef3", "#fcd9f4"];
|
|
1054
|
+
elements.avocado = new fruit("avocado", ["#3c9419", "#348514", "#367a1b", "#2f7d10"], ["#cff74a", "#caf244", "#c1e649", "#b3d640"], "tree", ["#4d290a", "#4d2b0d", "#63360f", "#572d09"]);
|
|
1055
|
+
elements.avocado.bloomColor = ["#e3ff9c", "#e1ff96", "#e6ffa6", "#e1faa2"];
|
|
1056
|
+
elements.avocado.breakInto = "guacamole";
|
|
1057
|
+
elements.guacamole = {
|
|
1058
|
+
color: ["#cff74a", "#caf244", "#c1e649", "#b3d640"],
|
|
1059
|
+
behavior: behaviors.LIQUID,
|
|
1060
|
+
viscosity: 1350,
|
|
1061
|
+
category: "food",
|
|
1062
|
+
state: "liquid",
|
|
1063
|
+
isFood: true,
|
|
1064
|
+
onMix: function(pixel){
|
|
1065
|
+
for(let coords of squareCoords){
|
|
1066
|
+
let x = pixel.x+coords[0], y = pixel.y+coords[1];
|
|
1067
|
+
if(!isEmpty(x,y) && !outOfBounds(x,y) && elements[pixelMap[x][y].element].isFood && pixelMap[x][y].element != "quacamole"){
|
|
1068
|
+
let chance = (shiftDown) ? 1 : 0.5;
|
|
1069
|
+
if(Math.random() < chance){
|
|
1070
|
+
let rgb = interpolateRgb(getRGB(pixel.color), getRGB(pixelMap[x][y].color), 0.8);
|
|
1071
|
+
changePixel(pixelMap[x][y], "guacamole");
|
|
1072
|
+
pixel.color = rgb;
|
|
1073
|
+
pixelMap[x][y].color = rgb;
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1077
|
+
}
|
|
1078
|
+
}
|
|
1079
|
+
runAfterAutogen(()=>{settingsMenu.innerHTML += `
|
|
1080
|
+
<span setting="cleargases" class="setting-span multisetting" title="Default: ON">
|
|
1081
|
+
<input type="button" value="Clear Gases" id="settingLabel-clearGases" class="toggleInput" onclick="toggleInput(this,'cleargases',false); r = undefined;" state="1">
|
|
1082
|
+
</span>`;});
|
|
1083
|
+
elements.cocoa = new fruit("cocoa", ["#b09533", "#ad9439", "#b39736", "#99732c", "#ab8338", "#ad8231"], ["#826a3e", "#634f28", "#634b1f", "#5c461c"], "tree", ["#826a3e", "#634f28", "#634b1f", "#5c461c"]);
|
|
1084
|
+
elements.cocoa.breakInto = "cocoa_seed";
|
|
1085
|
+
elements.cocoa_seed.name = "CocoaBean";
|
|
1086
|
+
elements.cocoa_seed.breakInto = undefined;
|
|
1087
|
+
elements.cocoa_seed.tempHigh = 125;
|
|
1088
|
+
elements.cocoa_seed.stateHigh = "roasted_cocoa_bean";
|
|
1089
|
+
elements.roasted_cocoa_bean = {
|
|
1090
|
+
category: "food",
|
|
1091
|
+
behavior: behaviors.POWDER,
|
|
1092
|
+
extract: "melted_cocoa_butter",
|
|
1093
|
+
color: ["#2b1b01", "#291a02", "#211503", "#211503"],
|
|
1094
|
+
breakInto: "cocoa_powder",
|
|
1095
|
+
}
|
|
1096
|
+
elements.cocoa_powder = {
|
|
1097
|
+
category: "food",
|
|
1098
|
+
behavior: behaviors.POWDER,
|
|
1099
|
+
color: ["#3b2604", "#332104", "#402802", "#301e01"],
|
|
1100
|
+
}
|
|
1101
|
+
elements.cocoa_butter = {
|
|
1102
|
+
behavior: behaviors.STURDYPOWDER,
|
|
1103
|
+
tempHigh: 36,
|
|
1104
|
+
color: ["#feffe8", "#f4f5dc", "#fcfce1", "#feffed", "#feffd6"],
|
|
1105
|
+
category: "food",
|
|
1106
|
+
isFood: true,
|
|
1107
|
+
stateHigh: "melted_cocoa_butter",
|
|
1108
|
+
}
|
|
1109
|
+
elements.melted_cocoa_butter = {
|
|
1110
|
+
behavior: behaviors.LIQUID,
|
|
1111
|
+
color: ["#fff082", "#e3d676", "#f2e57e", "#fff07d"],
|
|
1112
|
+
tempLow: 35,
|
|
1113
|
+
stateLow: "cocoa_butter",
|
|
1114
|
+
reactions: {
|
|
1115
|
+
cocoa_powder: {elem1: "chocolate", elem2: "chocolate"}
|
|
1116
|
+
},
|
|
1117
|
+
category: "states",
|
|
1118
|
+
isFood: true,
|
|
1119
|
+
viscosity: 750,
|
|
1120
|
+
temp: 36,
|
|
1121
|
+
};
|
|
1122
|
+
elements.extractor = {
|
|
1123
|
+
category: "machines",
|
|
1124
|
+
behavior: behaviors.WALL,
|
|
1125
|
+
tick: function(pixel){
|
|
1126
|
+
for(let coords of squareCoords){
|
|
1127
|
+
let x = pixel.x+coords[0], y = pixel.y+coords[1];
|
|
1128
|
+
if(!isEmpty(x,y) && !outOfBounds(x,y) && elements[pixelMap[x][y].element].extract != undefined){
|
|
1129
|
+
changePixel(pixelMap[x][y], elements[pixelMap[x][y].element].extract);
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1132
|
+
},
|
|
1133
|
+
movable: false,
|
|
1134
|
+
}
|
|
1135
|
+
elements.pineapple_seed = {
|
|
1136
|
+
behavior: behaviors.POWDER,
|
|
1137
|
+
color: ["#242000", "#1f1c00", "#1a1701", "#1f1c01"],
|
|
1138
|
+
category: "life",
|
|
1139
|
+
properties: {
|
|
1140
|
+
age: 0,
|
|
1141
|
+
fruit: "pineapple",
|
|
1142
|
+
growthPattern: true,
|
|
1143
|
+
},
|
|
1144
|
+
tick: function(pixel){
|
|
1145
|
+
let num = Math.round((Math.random()*0.75)*3)+1;
|
|
1146
|
+
chance = (pixel.age -140)/100;
|
|
1147
|
+
chance = Math.max(Math.min(chance, 1), 0);
|
|
1148
|
+
if(Math.random()<chance){
|
|
1149
|
+
let x = pixel.x, y = pixel.y, fruit = pixel.fruit;
|
|
1150
|
+
changePixel(pixel, "fruit_leaves");
|
|
1151
|
+
pixelMap[x][y].fruit = fruit;
|
|
1152
|
+
pixelMap[x][y].pattern = `pineapple${num}`;
|
|
1153
|
+
pixelMap[x][y].noBloom = true;
|
|
1154
|
+
}
|
|
1155
|
+
pixel.age++;
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1158
|
+
elements.unripe_fruit = {
|
|
1159
|
+
category: "life",
|
|
1160
|
+
breakInto: ["poison", "sugar_water", "dirty_water"],
|
|
1161
|
+
color: ["#7ed934", "#78d42c", "#7cdb2e", "#7bde2a"],
|
|
1162
|
+
properties: {
|
|
1163
|
+
age: 0,
|
|
1164
|
+
fruit: "",
|
|
1165
|
+
},
|
|
1166
|
+
tick: function(pixel){
|
|
1167
|
+
let chance = (pixel.age-100)/250;
|
|
1168
|
+
if(Math.random() < chance){
|
|
1169
|
+
changePixel(pixel, pixel.fruit);
|
|
1170
|
+
}
|
|
1171
|
+
pixel.age++;
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
elements.pineapple = {
|
|
1175
|
+
category: "food",
|
|
1176
|
+
breakInto: "juice",
|
|
1177
|
+
bloomColor: ["#ff6682", "#ff6e88", "#ff6198", "#de73a5"],
|
|
1178
|
+
color: ["#ffe712", "#f0d802", "#f2db05", "#d9c409"],
|
|
1179
|
+
breakIntoColor: ["#fafa2a", "#f2f23d", "#f7f748", "#eded26"],
|
|
1180
|
+
isFood: true,
|
|
1181
|
+
}
|
|
1182
|
+
elements.sugarcane = {
|
|
1183
|
+
category: "life",
|
|
1184
|
+
extract: "sugar_water",
|
|
1185
|
+
color: ["#60d10f", "#5abf11", "#66cc1d", "#78ed24"],
|
|
1186
|
+
properties: {
|
|
1187
|
+
age: 0,
|
|
1188
|
+
alive: false,
|
|
1189
|
+
hasBloomed: false,
|
|
1190
|
+
},
|
|
1191
|
+
tick: function(pixel){
|
|
1192
|
+
let chance = (pixel.age-350)/100;
|
|
1193
|
+
let x = pixel.x, y = pixel.y-1;
|
|
1194
|
+
if(isEmpty(x,y) && !outOfBounds(x,y) && pixel.alive){
|
|
1195
|
+
if(Math.random()<chance && !pixel.hasBloomed){
|
|
1196
|
+
createPixel("fruit_leaves", x, y);
|
|
1197
|
+
pixelMap[x][y].blooming = true;
|
|
1198
|
+
pixelMap[x][y].fruit = "sugarcane_seed";
|
|
1199
|
+
createPixel("fruit_leaves", x, y-1);
|
|
1200
|
+
pixelMap[x][y-1].blooming = true;
|
|
1201
|
+
pixelMap[x][y-1].fruit = "sugarcane_seed";
|
|
1202
|
+
createPixel("fruit_leaves", x, y-2);
|
|
1203
|
+
pixelMap[x][y-2].blooming = true;
|
|
1204
|
+
pixelMap[x][y-2].fruit = "sugarcane_seed";
|
|
1205
|
+
pixel.hasBloomed = true;
|
|
1206
|
+
} else if(Math.random() < 0.015 && !pixel.hasBloomed) {
|
|
1207
|
+
createPixel("sugarcane", x, y);
|
|
1208
|
+
pixelMap[x][y].age = pixel.age;
|
|
1209
|
+
pixelMap[x][y].alive = true;
|
|
1210
|
+
}
|
|
1211
|
+
}
|
|
1212
|
+
pixel.age++;
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
1215
|
+
elements.sugarcane_seed = {
|
|
1216
|
+
category: "life",
|
|
1217
|
+
behavior: behaviors.POWDER,
|
|
1218
|
+
color: ["#f0e07a", "#e0d277", "#e3ca71", "#d9ba77"],
|
|
1219
|
+
properties: {
|
|
1220
|
+
age: 0,
|
|
1221
|
+
},
|
|
1222
|
+
tick: function(pixel){
|
|
1223
|
+
let chance = (pixel.age-50)/100;
|
|
1224
|
+
if(Math.random()<chance){
|
|
1225
|
+
let x = pixel.x, y = pixel.y;
|
|
1226
|
+
changePixel(pixel, "sugarcane");
|
|
1227
|
+
pixelMap[x][y].alive = true;
|
|
1228
|
+
}
|
|
1229
|
+
pixel.age++;
|
|
1230
|
+
},
|
|
1231
|
+
}
|
|
1232
|
+
elements.watermelon = new fruit("watermelon", ["#0e6614", "#065c0c", "#03700b", "#109119", "#098f12"], ["#ff4242", "#ed2f2f", "#ff2e2e", "#ed2828"]);
|
|
1233
|
+
elements.watermelon.bloomColor = ["#e9ed11", "#f1f50a", "#fbff19", "#fbff29"];
|
|
1234
|
+
elements.watermelon.behavior = behaviors.WALL;
|
|
1235
|
+
elements.watermelon_seed = {
|
|
1236
|
+
behavior: behaviors.POWDER,
|
|
1237
|
+
color: ["#5e4a22", "#423417", "#241b0b", "#1f1709", "#120e05"],
|
|
1238
|
+
category: "life",
|
|
1239
|
+
properties: {
|
|
1240
|
+
age: 0,
|
|
1241
|
+
fruit: "watermelon",
|
|
1242
|
+
growthPattern: true,
|
|
1243
|
+
},
|
|
1244
|
+
tick: function(pixel){
|
|
1245
|
+
if(pixel.pattern == undefined){
|
|
1246
|
+
let num = Math.round((Math.random()*0.75)*4)+2;
|
|
1247
|
+
pixel.pattern = `melon_${num}x${num}`;
|
|
1248
|
+
}
|
|
1249
|
+
if(pixel.dir == undefined){
|
|
1250
|
+
let num = 0.5-Math.round(Math.random());
|
|
1251
|
+
pixel.dir = (num < 0) ? [-1, 1] : [1,1];
|
|
1252
|
+
}
|
|
1253
|
+
chance = (pixel.age -140)/100;
|
|
1254
|
+
chance = Math.max(Math.min(chance, 1), 0);
|
|
1255
|
+
if(Math.random()<chance){
|
|
1256
|
+
let x = pixel.x, y = pixel.y, fruit = pixel.fruit, pattern = pixel.pattern, dir = pixel.dir;
|
|
1257
|
+
changePixel(pixel, "fruit_leaves");
|
|
1258
|
+
pixelMap[x][y].fruit = fruit;
|
|
1259
|
+
pixelMap[x][y].pattern = pattern;
|
|
1260
|
+
pixelMap[x][y].dir = dir;
|
|
1261
|
+
pixelMap[x][y].noBloom = true;
|
|
1262
|
+
}
|
|
1263
|
+
pixel.age++;
|
|
1264
|
+
}
|
|
1265
|
+
}
|
|
1266
|
+
elements.tomato.bloomColor = ["#edd93e", "#fae334", "#e6dc22", "#f5ec3d"];
|
|
1267
|
+
elements.banana_seed = {
|
|
1268
|
+
behavior: [['XX', 'XX', 'XX'],['XX', 'XX', 'XX'],['M2', 'M1 AND ST:wood', 'M2']],
|
|
1269
|
+
color: ["#121211", "#121211", "#0f0f0e", "#171716"],
|
|
1270
|
+
category: "life",
|
|
1271
|
+
properties: {
|
|
1272
|
+
age: 0,
|
|
1273
|
+
fruit: "banana",
|
|
1274
|
+
height: 0,
|
|
1275
|
+
maxHeight: null,
|
|
1276
|
+
leafLength: null,
|
|
1277
|
+
intervals: [],
|
|
1278
|
+
},
|
|
1279
|
+
onDelete: function(pixel){
|
|
1280
|
+
for(let value of pixel.intervals){
|
|
1281
|
+
clearInterval(value);
|
|
1282
|
+
}
|
|
1283
|
+
},
|
|
1284
|
+
tick: function(pixel){
|
|
1285
|
+
if(pixel.maxHeight == null){
|
|
1286
|
+
pixel.maxHeight = 15+Math.round(Math.random()*6);
|
|
1287
|
+
}
|
|
1288
|
+
if(pixel.leafLength == null){
|
|
1289
|
+
pixel.leafLength = Math.round((pixel.maxHeight/21)*Math.random()*4)+12;
|
|
1290
|
+
}
|
|
1291
|
+
if(Math.random()<(pixel.age-95)/7500 && pixel.height < pixel.maxHeight){
|
|
1292
|
+
let y = pixel.y;
|
|
1293
|
+
tryMove(pixel, pixel.x, pixel.y-1);
|
|
1294
|
+
pixel.height++;
|
|
1295
|
+
createPixel("wood", pixel.x, y);
|
|
1296
|
+
if(Math.random()<0.333){
|
|
1297
|
+
let i = new growInterval(pixel, growthPatterns.palm(Math.min(Math.round((pixel.height/pixel.maxHeight)*10),10)+4, 174, 366, [235,285]), [pixel.x, y], 0.25, 250);
|
|
1298
|
+
pixel.intervals.push(i.interval);
|
|
1299
|
+
}
|
|
1300
|
+
}
|
|
1301
|
+
if(pixel.height == pixel.maxHeight && Math.random()<0.055){
|
|
1302
|
+
let amnt = 6+Math.round(Math.random()*4);
|
|
1303
|
+
for(let i = 0; i < amnt; i++){
|
|
1304
|
+
let i = new growInterval(pixel, growthPatterns.palm(pixel.leafLength, 174, 366, [255,285]), [pixel.x, pixel.y], 0.15);
|
|
1305
|
+
pixel.intervals.push(i.interval);
|
|
1306
|
+
}
|
|
1307
|
+
let i = new growInterval(pixel, growthPatterns.palm_bloom(), [pixel.x,pixel.y], 0.025, undefined, pixel.fruit, ["flower"]);
|
|
1308
|
+
pixel.intervals.push(i.interval);
|
|
1309
|
+
pixel.height++;
|
|
1310
|
+
}
|
|
1311
|
+
pixel.age++;
|
|
1312
|
+
}
|
|
1313
|
+
}
|
|
1314
|
+
elements.dead_plant.behavior = [["XX","XX","XX"],["XX","CH:dirt%0.015","XX"],["M2","M1","M2"]];
|
|
1315
|
+
elements.banana = {
|
|
1316
|
+
category: "food",
|
|
1317
|
+
breakInto: "juice",
|
|
1318
|
+
bloomColor: ["#6e2942", "#63293e", "#703249", "#82314f"],
|
|
1319
|
+
color: ["#e8de20", "#f2e824", "#f0e626", "#ebe01c", "#f0e51a"],
|
|
1320
|
+
breakIntoColor: ["#f2f0cb", "#f0eec5", "#f2f0c4"],
|
|
1321
|
+
isFood: true,
|
|
1322
|
+
};
|
|
1323
|
+
elements.coconut = {
|
|
1324
|
+
behavior: [['XX', 'XX', 'XX'],['XX', 'XX', 'XX'],['M2', 'M1 AND ST:wood', 'M2']],
|
|
1325
|
+
color: ["#291706", "#382007", "#2e1905", "#361d05", "#361e06"],
|
|
1326
|
+
category: "food",
|
|
1327
|
+
properties: {
|
|
1328
|
+
age: 0,
|
|
1329
|
+
fruit: "coconut",
|
|
1330
|
+
height: 0,
|
|
1331
|
+
maxHeight: null,
|
|
1332
|
+
alive: null,
|
|
1333
|
+
leafLength: null,
|
|
1334
|
+
intervals: [],
|
|
1335
|
+
},
|
|
1336
|
+
breakInto: "coconut_water",
|
|
1337
|
+
extract: "coconut_oil",
|
|
1338
|
+
onDelete: function(pixel){
|
|
1339
|
+
for(let value of pixel.intervals){
|
|
1340
|
+
clearInterval(value);
|
|
1341
|
+
}
|
|
1342
|
+
},
|
|
1343
|
+
tick: function(pixel){
|
|
1344
|
+
if(pixel.alive == null){
|
|
1345
|
+
pixel.alive = shiftDown;
|
|
1346
|
+
}
|
|
1347
|
+
if(pixel.maxHeight == null){
|
|
1348
|
+
pixel.maxHeight = 15+Math.round(Math.random()*6);
|
|
1349
|
+
}
|
|
1350
|
+
if(pixel.leafLength == null){
|
|
1351
|
+
pixel.leafLength = Math.round((pixel.maxHeight/21)*Math.random()*4)+12;
|
|
1352
|
+
}
|
|
1353
|
+
if(pixel.alive && pixel.temp > 55){
|
|
1354
|
+
pixel.alive = false;
|
|
1355
|
+
}
|
|
1356
|
+
if(Math.random()<(pixel.age-95)/7500 && pixel.height < pixel.maxHeight && pixel.alive){
|
|
1357
|
+
let y = pixel.y;
|
|
1358
|
+
tryMove(pixel, pixel.x, pixel.y-1);
|
|
1359
|
+
pixel.height++;
|
|
1360
|
+
createPixel("wood", pixel.x, y);
|
|
1361
|
+
if(Math.random()<0.333){
|
|
1362
|
+
let i = new growInterval(pixel, growthPatterns.palm(Math.round((pixel.height/pixel.maxHeight)*14), 174, 366, [235,305]), [pixel.x, y], 0.25, 200);
|
|
1363
|
+
pixel.intervals.push(i.interval);
|
|
1364
|
+
}
|
|
1365
|
+
}
|
|
1366
|
+
if(pixel.height == pixel.maxHeight && Math.random()<0.055){
|
|
1367
|
+
let amnt = 6+Math.round(Math.random()*4);
|
|
1368
|
+
for(let i = 0; i < amnt; i++){
|
|
1369
|
+
let i = new growInterval(pixel, growthPatterns.palm(16, 174, 366, [255,285]), [pixel.x, pixel.y], 0.15);
|
|
1370
|
+
pixel.intervals.push(i.interval);
|
|
1371
|
+
}
|
|
1372
|
+
let i = new growInterval(pixel, growthPatterns.palm_bloom(), [pixel.x,pixel.y], 0.025, undefined, pixel.fruit, ["flower"]);
|
|
1373
|
+
pixel.intervals.push(i.interval);
|
|
1374
|
+
pixel.height++;
|
|
1375
|
+
}
|
|
1376
|
+
pixel.age++;
|
|
1377
|
+
}
|
|
1378
|
+
}
|
|
1379
|
+
elements.coconut_oil = {
|
|
1380
|
+
behavior: behaviors.SOLID,
|
|
1381
|
+
color: ["#f0efed", "#edeceb", "#e6e4e3", "#ebe9e8"],
|
|
1382
|
+
category: "food",
|
|
1383
|
+
isFood: true,
|
|
1384
|
+
reactions: {
|
|
1385
|
+
caustic_potash: {elem1: "soap", elem2: "soap"},
|
|
1386
|
+
lye: {elem1: "soap", elem2: "soap"},
|
|
1387
|
+
},
|
|
1388
|
+
tempHigh: 24,
|
|
1389
|
+
stateHigh: "melted_coconut_oil",
|
|
1390
|
+
state: "solid",
|
|
1391
|
+
}
|
|
1392
|
+
elements.melted_coconut_oil = {
|
|
1393
|
+
behavior: behaviors.LIQUID,
|
|
1394
|
+
color: ["#f0f0eb", "#e6e5d5", "#f5f4e6", "#f7f7e6", "#ededdd"],
|
|
1395
|
+
viscosity: 750,
|
|
1396
|
+
category: "states",
|
|
1397
|
+
state: "liquid",
|
|
1398
|
+
isFood: true,
|
|
1399
|
+
reactions: {
|
|
1400
|
+
caustic_potash: {elem1: "soap", elem2: "soap"},
|
|
1401
|
+
lye: {elem1: "soap", elem2: "soap"},
|
|
1402
|
+
},
|
|
1403
|
+
tempLow: 23,
|
|
1404
|
+
stateLow: "coconut_oil"
|
|
1405
|
+
}
|
|
1406
|
+
elements.coconut_water = {
|
|
1407
|
+
color: ["#8dd6d9", "#8cd9db", "#82d6d9"],
|
|
1408
|
+
behavior: behaviors.LIQUID,
|
|
1409
|
+
isFood: true,
|
|
1410
|
+
category: "food",
|
|
1411
|
+
state: "liquid",
|
|
1412
|
+
tempHigh: 100,
|
|
1413
|
+
stateHigh: ["sugar", "steam", "steam", "steam", "potassium_salt", "salt", "epsom_salt", "steam", "steam", "steam"]
|
|
1414
|
+
}
|
|
1415
|
+
elements.morning_glory_seed = {
|
|
1416
|
+
behavior: behaviors.VINEFRUIT,
|
|
1417
|
+
bloomColors: [["#f783f0", "#fa8cf3", "#fa96f3", "#f590ee"], ["#8d40f7", "#9a52ff", "#8041d9", "#7e3ade"], ["#ed5365", "#f0485b", "#f55b6d", "#eb3d51"], ["#f53d49", "#fa4652", "#f54e59", "#f23a46"], ["#f53d49", "#fa8cf3", "#f55b6d", "#f23a46"]],
|
|
1418
|
+
color: ["#5c5036", "#473e29", "#4f4631", "#fcf2b8"],
|
|
1419
|
+
properties: {
|
|
1420
|
+
bloomColor: null,
|
|
1421
|
+
fruit: "morning_glory_seed",
|
|
1422
|
+
age: 0,
|
|
1423
|
+
},
|
|
1424
|
+
category: "life",
|
|
1425
|
+
tick: function(pixel){
|
|
1426
|
+
if(pixel.bloomColor == null){
|
|
1427
|
+
let arr = elements.morning_glory_seed.bloomColors[Math.round(Math.random()*elements.morning_glory_seed.bloomColors.length)];
|
|
1428
|
+
while(!Array.isArray(arr)){
|
|
1429
|
+
arr = elements.morning_glory_seed.bloomColors[Math.round(Math.random()*elements.morning_glory_seed.bloomColors.length)];
|
|
1430
|
+
}
|
|
1431
|
+
let num = 100*(10**Math.random()/10);
|
|
1432
|
+
let newArr = false;
|
|
1433
|
+
for(let item of arr){
|
|
1434
|
+
let o = item;
|
|
1435
|
+
let rgb = hexToRGB(item);
|
|
1436
|
+
let newRGB = {r: Math.min(255, rgb.r+num), g: Math.min(255, rgb.g+num), b: Math.min(255, rgb.b+num)};
|
|
1437
|
+
newArr = [];
|
|
1438
|
+
newArr[arr.indexOf(item)] = RGBToHex(newRGB);
|
|
1439
|
+
|
|
1440
|
+
}
|
|
1441
|
+
pixel.bloomColor = (newArr) ? newArr : arr;
|
|
1442
|
+
} else if(Math.random() < (pixel.age/2000)) {
|
|
1443
|
+
let fruit = pixel.fruit, bloomColor = pixel.bloomColor;
|
|
1444
|
+
changePixel(pixel, "fruit_vine");
|
|
1445
|
+
pixel.fruit = fruit, pixel.bloomColor = bloomColor;
|
|
1446
|
+
}
|
|
1447
|
+
pixel.age++;
|
|
1448
|
+
}
|
|
1449
|
+
}
|
|
1450
|
+
elements.apricot_seed.tempHigh = 175;
|
|
1451
|
+
elements.apricot_seed.stateHigh = "almond";
|
|
1452
|
+
elements.almond = {
|
|
1453
|
+
color: ["#ab9450", "#b3994d", "#a18943", "#a18c43", "#a18d47"],
|
|
1454
|
+
behavior: behaviors.POWDER,
|
|
1455
|
+
state: "solid",
|
|
1456
|
+
category: "food",
|
|
1457
|
+
isFood: true,
|
|
1458
|
+
density: 1100,
|
|
1459
|
+
stateHigh: ["charcoal", "fire", "smoke"],
|
|
1460
|
+
tempHigh: 550,
|
|
1461
|
+
tick: function(pixel){
|
|
1462
|
+
for(let coords of squareCoords){
|
|
1463
|
+
let x = pixel.x+coords[0], y = pixel.y+coords[1];
|
|
1464
|
+
let p2 = getPixel(x,y);
|
|
1465
|
+
let chance = (pixel.temp > 0) ? ((pixel.temp**0.1)-1)*0.0025 : 0;
|
|
1466
|
+
if(p2 != null && p2.element == "alcohol" && Math.random() < chance){
|
|
1467
|
+
changePixel(p2, "almond_extract");
|
|
1468
|
+
}
|
|
1469
|
+
}
|
|
1470
|
+
}
|
|
1471
|
+
}
|
|
1472
|
+
elements.almond_extract = {
|
|
1473
|
+
color: ["#cfccbe", "#d6d4c7", "#c9c7bb", "#ccc9b8"],
|
|
1474
|
+
behavior: behaviors.LIQUID,
|
|
1475
|
+
isFood: true,
|
|
1476
|
+
category: "food",
|
|
1477
|
+
state: "liquid",
|
|
1478
|
+
density: 815,
|
|
1479
|
+
tempHigh: 78,
|
|
1480
|
+
stateHigh: ["alcohol_gas", "fragrance"],
|
|
1481
|
+
tempLow: -118,
|
|
1482
|
+
stateLow: "frozen_almond_extract",
|
|
1483
|
+
burn: 100,
|
|
1484
|
+
burnTime: 15,
|
|
1485
|
+
fireColor: ['#80acf0', '#96cdfe', '#bee6d4'],
|
|
1486
|
+
burnInto: ["fragrance", "smoke", "smoke"],
|
|
1487
|
+
}
|
|
1488
|
+
elements.frozen_almond_extract = {
|
|
1489
|
+
color: ["#cfccbe", "#d6d4c7", "#c9c7bb", "#ccc9b8"],
|
|
1490
|
+
behavior: behaviors.SOLID,
|
|
1491
|
+
isFood: true,
|
|
1492
|
+
category: "states",
|
|
1493
|
+
state: "solid",
|
|
1494
|
+
density: 865,
|
|
1495
|
+
tempHigh: -117,
|
|
1496
|
+
stateHigh: "almond_extract",
|
|
1497
|
+
}
|
|
1498
|
+
|
|
1499
|
+
elements.onion = {
|
|
1500
|
+
category: "food",
|
|
1501
|
+
color: ["#dbaa5a", "#cc9b4b", "#bd9048", "#faebb4", "#fcf5d9", "#f2e9c7", "#7d2d50", "#ad3d6e", "#c25182"],
|
|
1502
|
+
state: "solid",
|
|
1503
|
+
properties: {
|
|
1504
|
+
age: 0,
|
|
1505
|
+
sprouted: null,
|
|
1506
|
+
intervals: [],
|
|
1507
|
+
height: null,
|
|
1508
|
+
},
|
|
1509
|
+
isFood: true,
|
|
1510
|
+
behavior: behaviors.POWDER,
|
|
1511
|
+
onDelete: function(pixel){
|
|
1512
|
+
for(let value of pixel.intervals){
|
|
1513
|
+
clearInterval(value);
|
|
1514
|
+
}
|
|
1515
|
+
},
|
|
1516
|
+
tick: function(pixel){
|
|
1517
|
+
let inDirt = (getPixel(pixel.x,pixel.y+1) != null && eLists.SOIL.includes(pixelMap[pixel.x][pixel.y+1].element)) ? true : false;
|
|
1518
|
+
for(let coords of adjacentCoords){
|
|
1519
|
+
let x = pixel.x+coords[0], y = pixel.y+coords[1];
|
|
1520
|
+
let p2 = getPixel(x,y);
|
|
1521
|
+
if(p2 != null){
|
|
1522
|
+
inDirt = (eLists.SOIL.includes(p2.element)) ? true : inDirt;
|
|
1523
|
+
}
|
|
1524
|
+
if((pixel.sprouted == null && pixel.sprouted != "disabled") && pixel.age > 60 && inDirt){
|
|
1525
|
+
let height = 7+Math.round(Math.random()*4);
|
|
1526
|
+
pixel.height = height;
|
|
1527
|
+
let i = new growInterval(pixel, growthPatterns.stalk(height), [pixel.x,pixel.y], 0.15);
|
|
1528
|
+
pixel.intervals.push(i.interval);
|
|
1529
|
+
pixel.sprouted = true;
|
|
1530
|
+
} else if ((pixel.sprouted == true && pixel.sprouted != "disabled") && Math.random() < 0.0015){
|
|
1531
|
+
let i = new growInterval(pixel, growthPatterns.blade(7, 235, 315, [255,295]), [pixel.x,pixel.y], 0.15);
|
|
1532
|
+
pixel.intervals.push(i.interval);
|
|
1533
|
+
}
|
|
1534
|
+
}
|
|
1535
|
+
if(inDirt){
|
|
1536
|
+
for(let coords of adjacentCoords){
|
|
1537
|
+
let x = pixel.x+coords[0], y = pixel.y+coords[1];
|
|
1538
|
+
let p2 = getPixel(x,y);
|
|
1539
|
+
if(p2!=null && eLists.SOIL.includes(p2.element) && Math.random()<0.0005){
|
|
1540
|
+
changePixel(p2, "onion");
|
|
1541
|
+
p2.color = noiseify(pixel.color, 6);
|
|
1542
|
+
p2.sprouted = "disabled";
|
|
1543
|
+
}
|
|
1544
|
+
}
|
|
1545
|
+
}
|
|
1546
|
+
if(pixel.sprouted === true && pixel.age > 600 && Math.random()<0.001){
|
|
1547
|
+
let length = Math.round(Math.random()*2);
|
|
1548
|
+
for(let i = 0; i < 5; i++){
|
|
1549
|
+
let ii = new growInterval(pixel, growthPatterns.blade(length,0,360), [pixel.x, pixel.y-pixel.height-length+1], 0.25, undefined, "onion_seed",['flower']);
|
|
1550
|
+
pixel.intervals.push(ii.interval);
|
|
1551
|
+
}
|
|
1552
|
+
}
|
|
1553
|
+
pixel.age++;
|
|
1554
|
+
},
|
|
1555
|
+
}
|
|
1556
|
+
elements.onion_seed = {
|
|
1557
|
+
behavior: behaviors.POWDER,
|
|
1558
|
+
color: ["#0f0f0f", "#0f0f0f", "#0a0a0a", "#0a0a0a"],
|
|
1559
|
+
category: "life",
|
|
1560
|
+
state: "solid",
|
|
1561
|
+
tick: function(pixel){
|
|
1562
|
+
let inDirt = (getPixel(pixel.x,pixel.y+1) != null && eLists.SOIL.includes(pixelMap[pixel.x][pixel.y+1].element)) ? true : false;
|
|
1563
|
+
for(let coords of adjacentCoords){
|
|
1564
|
+
let x = pixel.x+coords[0], y = pixel.y+coords[1];
|
|
1565
|
+
let p2 = getPixel(x,y);
|
|
1566
|
+
if(p2 != null){
|
|
1567
|
+
inDirt = (eLists.SOIL.includes(p2.element)) ? true : inDirt;
|
|
1568
|
+
}
|
|
1569
|
+
}
|
|
1570
|
+
if(inDirt && Math.random() < 0.025){
|
|
1571
|
+
changePixel(pixel, "onion");
|
|
1572
|
+
}
|
|
1573
|
+
}
|
|
1574
|
+
}
|
|
1575
|
+
elements.grape.reactions.sugar_water = {elem2: "wine", chance: 0.0006};
|
|
1576
|
+
elements.grape.reactions.water = {elem2: "wine", chance: 0.00006};
|
|
1577
|
+
elements.wine = {
|
|
1578
|
+
density: 992,
|
|
1579
|
+
color: ["#381b30", "#402137", "#261321", "#38192f"],
|
|
1580
|
+
behavior: behaviors.LIQUID,
|
|
1581
|
+
category: "liquids",
|
|
1582
|
+
state: "liquid",
|
|
1583
|
+
properties: {
|
|
1584
|
+
alcChance: 0.13,
|
|
1585
|
+
},
|
|
1586
|
+
tick: function(pixel){
|
|
1587
|
+
if(Math.random() < 0.00025){
|
|
1588
|
+
pixel.alcChance += 0.01;
|
|
1589
|
+
}
|
|
1590
|
+
if(pixel.temp >70){
|
|
1591
|
+
let chanceMulti = (pixel.temp-70)/20;
|
|
1592
|
+
let chance = (pixel.alcChance/100)*chanceMulti;
|
|
1593
|
+
for(let coords of squareCoords){
|
|
1594
|
+
let x = pixel.x+coords[0], y = pixel.y+coords[1];
|
|
1595
|
+
if(isEmpty(x,y) && !outOfBounds(x,y) && Math.random() < chance){
|
|
1596
|
+
createPixel("alcohol_gas", x,y);
|
|
1597
|
+
if(Math.random() < 0.5){
|
|
1598
|
+
let rgb = getRGB(pixel.color);
|
|
1599
|
+
for(let key in rgb){
|
|
1600
|
+
rgb[key] += 10;
|
|
1601
|
+
rgb[key] = Math.max(rgb[key], 0);
|
|
1602
|
+
}
|
|
1603
|
+
changePixel(pixel, "juice");
|
|
1604
|
+
|
|
1605
|
+
pixel.color = noiseify(RGBToHex(rgb), 6);
|
|
1606
|
+
}
|
|
1607
|
+
}
|
|
1608
|
+
}
|
|
1609
|
+
}
|
|
1610
|
+
},
|
|
1611
|
+
tempHigh: 100,
|
|
1612
|
+
stateHigh: ["sugar", "carbon_dioxide", "steam", "alcohol_gas"],
|
|
1613
|
+
};
|
|
1614
|
+
|
|
1615
|
+
|
|
1616
|
+
}, true);
|