Commit Graph

25 Commits

Author SHA1 Message Date
slweeb ebd6c4c282 Update survival.js 2026-01-28 15:27:08 -05:00
slweeb ead7eb3a3f Update survival.js 2026-01-25 11:53:09 -05:00
slweeb a2a3731cdd Version 1.13.2 - January 11, 2026
+ Edit Mode
    ~ Moved Special tools to the edit tab
    ~ Expect more tools in the future
+ Relations - Multiple pixels as a single entity
    + Group and Ungroup tool in edit tab
    + Grouped pixels fall and move as one structure
    + Grouped pixels are ungrouped when broken or changing states
    + Grouped pixels can displace fluids (Experimental)
+ More Shift-Select functionality:
    + Battery can set a frequency to create timers
    + Image tool can set element
~ Fire begins more yellow and gets redder quicker
+ Icing (Hidden) made with Butter and Sugar
~ Liquids and Gases appear less grainy
~ Settings changes
    + Speed option in Settings to replace TPS button
    + Keybind: T to change TPS
    ~ Renamed E button to Elem button
~ Improved simulation speeds
- Removed World Gen
    ~ We recommend the PRNGworldgenlib.js mod, a much better world generator
- Removed Cheerful Mode
[Changes]
+ Escape can be pressed to cancel while drawing a line
+ Fillers can be painted and will fight other colors
+ Portals show destination lines when hovered over or selected
+ Portal In can be selected with the Elem button by typing 'Portal'
+ Lightning placed near certain elements will change color
+ Worms can break down Flour, Dough, Adobe, Paper, Confetti, Cellulose, Cheese, and Potato
+ Worms can move through Mulch
+ Radiation will radiate Batter
+ Rad Steam causes Cheese to rot
~ Filters and Gates are Acid-resistant
~ Portals no longer teleport Fuse
~ Ruler measures diagonal lines as a pixel count instead of hypotenuse
~ Unique flame colors for Nickel, Iron, and Mercury
~ Rearranged Special category
~ Opening the Info, Mods, or Settings menus will pause the game
~ Steam: All canvas sizes now stretch to the full screen width
+ Assigned densities to many solids
+ Keybind: Quote (") to toggle Edit Mode
[Bug Fixes]
~ Fixed: Dragging pixels through Filters creates ghost pixels
~ Fixed: Filters can break when transporting to Gates or Pipes
~ Fixed: Pixels are rendered in incorrect position when mixing with Pipe, Filter, or Gate
~ Fixed: Broken modded saves are loaded every bootup
~ Fixed: Precision Dot is misaligned with 2- and 4-wide brushes
~ Fixed: Portals can't transmit electricity if surrounded by pixels
~ Fixed: E-cloner can't be set to Fuse by clicking on it
~ Fixed: Some saves throw TypeError "Cannot set properties of undefined"
~ Fixed: Prop tool always unpauses after dialog
~ Fixed: Z and Backspace keys select Heat by default instead of Sand
~ Fixed: Random can't place Fire, Plasma, Ink, Bless, Rock Wall, Cold Fire, Sun, Pointer, or Art
~ Fixed: Elem dialog doesn't close if button is pressed again
~ Fixed: Wrong font when language set to Italian
~ Fixed: Magnesium melts at a much lower temperature than expected
~ Fixed: Shift-selecting Random and inputting 'random' causes errors
[Technical]
~ Note: Optimizations mean a lot of code was rewritten, please report any issues and be patient
~ Note: Don't pass an 'rgba' color to drawSquare, use the 'alpha' argument instead
+ Pixel relations system
    + Used to group pixels together
    + '_r' pixel property to identify its relation (should be an integer)
+ 'trackPaint' element property (boolean)
    + 'painted' pixel property (color code) given to these elements when painted
+ "Failed to load" message instead of hanging forever
~ 'con' contents only render if element has existing 'canContain' property
~ 'onMouseDown' element event only triggers with left clicks
~ Acid Gas 'ignore' property is now identical to Acid
~ Elements with a set density but no state are set to solid
~ Fuse no longer shows hidden element
~ Save version is now sb7
2026-01-11 13:52:44 -05:00
slweeb efa7fa0cf3 Version 1.13 - December 17, 2025 - Gizmos & Gadgets
+ Filter
    + Only allows the first element it touches to pass
+ Gate
    + Only allows pixels to pass if electrified
    + Only conducts electricity into itself and Wire
+ Canvas background images
    + Some presets and custom image URLs
+ Outline View (Press 5)
+ 2-wide and 4-wide brushes
+ Ruler tool in Special to measure lengths and angles
+ Manual element control
    + Shift-clicking certain element buttons prompt the user for more information
    + Erase tool allows only deleting certain elements
    + Cloners allow multiple comma-separated elements
    + Filters allow states (solid, liquid, or gas) or multiple elements
    + Sensors allow sensing specific elements
    + Portals allow the setting of channels
    + Void allows only deleting certain elements
    + Random tool allows pre-selected element choices
    + Explosion allows custom radius
    + Antibombs allow pre-selected explosion elements
~ Replaced LED Red, Green, and Blue with a single customizable LED
    ~ LEDs in old saves are automatically converted to the new element
- Merged Superheaters and Freezers with Heaters and Coolers
    + Heaters can be heated to heat the same as a Superheater
    + Coolers can be cooled to cool the same as a Freezer
- Removed Tesla Coil and Shocker
    ~ These elements in old saves are automatically converted to E-cloners
~ Drag tool is faster and smoother
~ Pixelated and colorful button borders
+ Translations for Swedish
+ Parital translations for Japanese, Thai, Arabic, Hebrew, and Viossa
[Changes]
+ Pipes can transport pixels directly with Filter and Gate
~ Pipes no longer conduct heat
~ Brightened blue stage in Pipes
~ Incomplete pipes darken after being initialized
+ Oxygen can be used to dispose Molten Lead in reactors
+ Electrolysis of raw Salt
+ Smashing hot Cooked Meat releases Grease
+ Worms can compost Lettuce, Tomato, Corn, Pickle, and Bread
+ Rats can eat Spiders
+ Caramel and Herb make peppermint-colored sugar
+ Baking Soda can be made with Lye and Carbon Dioxide
+ Melting Ash with Dirt creates Tuff
~ Poison Gas no longer makes Slag from molten elements
~ Perfume can exist at room temperature
~ Acid doesn't dissolve Mercury or Diamond
~ Sulfur ignites when hot
~ All Cloud types can be smashed like Rain Cloud
~ Thermite burns into less Iron
~ Rock Wall deletes Light when placed over it for better eclipses
- Removed Gallium-Sodium reaction
~ Copper Sulfate reacts with more carbs
~ Rainbow recipe uses Pointer instead of Flash
~ Bless deletes Strange Matter instead of turning it into Neutron
+ Static recipe
+ Malware can mix with some metals to create machine parts
+ Tea stains Paper
+ Unique fire color for Tin
~ Element buttons are consistently spaced on all sides
~ Recolored Pyrite
~ Acid has a smoother texture
~ Purple Gold is slightly more purple
~ Hyphae and Lichen are grainier
~ Recolored Random button
~ Recolored Balloon button
~ Recolored Confetti button
~ Recolored Hair button
~ Recolored Pistil button
~ Reordered colors in many buttons for consistent "lighting" look
~ Rice, Candy, Nut Oil, Dye, Rainbow, and Spray Paint buttons display with dark text
+ Firefly alias 'Lightning Bug'
~ Shortened hiding setting labels
~ Language should automatically be set from browser preferences (Untested)
~ Re-saving after saving automatically fills in name, author, and description
~ Save browser thumbnails are crisper
~ Steam Deck compliance
[Technical]
+ 'onShiftSelect' element property, called when selecting element while holding Shift
+ 'onlyConduct' element property, list of the only elements to conduct electricity into
+ 'renderTool' element property, renderer function called once per frame while selected
+ 'updateOrder' element property, prioritizes (positive) or deprioritizes (negative) tick order (integer; default 0)
+ autoResizeRatio(height,width) function (e.g. (16,9))
~ 'shiftDown' variable is set even when in a menu
[Bug Fixes]
~ Fixed: Placing Humans with Replace Mode causes a gory mess
~ Fixed: Using Human on Cloners cause a gory mess
~ Fixed: Bottom pixels can be cut off on certain window sizes
~ Fixed: Line-drawing preview is opaque when using a theme
~ Fixed: Text in Debug popup can't be selected
~ Fixed: onClicked passes "unknown" when no element is selected, now passes null
~ Fixed: onMouseDown doesn't get called on mobile
~ Fixed: onMouseDown is called when clicking out of a menu
~ Fixed: Using Heat Ray on Stained Glass can make Rainbows
~ Fixed: Saves with pipes containing invalid elements fail to load
~ Fixed: Some Fireflies stay illuminated after hitting another
~ Fixed: Liquid/gaseous pixels with 'skip' property can be displaced by denser pixels
~ Fixed: Salt isn't considered a food and can't be eaten by Humans
~ Fixed: Corn can't be dragged or put into Pipes
2025-12-17 12:08:39 -05:00
slweeb 2aa0d2f07e Version 1.11 - February 21, 2025 - Everyone's Update
[Version 1.11 - February 21, 2025 - Everyone's Update]
    + Portals!
        + Portal In and Portal Out elements
        + Portals teleport pixels and electricity
    + Coral
        + Grows in Water
        + Bleaches in high temperatures
    + Adobe, made from Mud and Straw
    + Element translations for Turkish and Hungarian
   [Electricity Rework]
    ~ Electricity is now more consistent in highly conductive material
    ~ Sensors give out a single charge instead of 4
    ~ Pixels now store when they were charged
    ~ Note: Effects on existing builds should be limited but please report any issues
   [Changes]
    + Liquid pixels of the same element move around
    + Tiny canvas size
    + Molten elements oscillate color (Experimental)
    ~ Pixels can now exist along the border of the canvas
    ~ Disabling Staining will clear all existing pixel stains
    + Dye, Paint, etc. retain their selected color independently
    + Radioactive Tornado variant
    + Humans panic when shocked
    ~ Humans are less heat-resistant
    ~ Pipes are no longer unbreakable
    + Smoke rises in normal air density
    ~ Tweaked Fire and Cold Fire behavior
    + Sabatier process for producing Methane
    + Bergius process for producing Oil
    + Acid reacts with Potassium
    ~ Increased Methane autoignition point
    + Uranium radiates Glass on contact
    + Burning Lamp Oil explodes in Water
    + Liquid Ozone explodes when broken or shocked
    + Molten Gallium can react with Gold Coins
    + Slaked Lime reacts with Carbon Dioxide
    + Molten Plastic evaporates
    + Glue turns Color Sand into Stained Glass
    + Butter and Caustic Potash make Soap
    + Neutrons radiate Glass, Clouds, and Water
    ~ Light absorbed by LEDs is deleted
    ~ Foam made from Oxygen + Water releases the Oxygen
    ~ Tweaked Bleach and Acid reaction
    ~ Increased Molten Sulfur freezing point
    ~ Tweaked Smash tool
    + Cyanide dirties Water variants
    + Infection dirties Water
    + Tea and Coffee bubble when hot
    + CO2 carbonates Salt Water instead of dirtying
    + Soda and Seltzer release Foam when mixed
    + Pilk creates Foam
    + Cells can ferment Milk variants
    ~ Cells ferment Milk slower
    ~ Cheese keeps color when breaking into powder (Pilk Powder?)
    ~ Caramel is more heat-resistant
    ~ Acid turns Humans into Bone
    ~ Birds are less flammable
    + Fish turn to white meat when cooked
    + Worms can compost Petal, Pistil, and Vine
    + Rats can eat Hard Yolk
    + Alcohol calms Humans
    + Humans panic from bad smells
    + Smog breaks into Dirty Water
    ~ Fireworks create less Carbon Dioxide
    + Bless can fix Brick Rubble
    + Midas Touch converts some metals to Gold variants
    + Malware can affect Snake
    ~ Pointer retains same speed at any TPS
    ~ Optimized Cell and Cancer
    ~ Recolored Pipe Wall
    ~ Improved Slug, Brick, and Ruins buttons
    ~ Hid Liquid Oxygen
    ~ Unhid Liquid Hydrogen
    ~ Moved Liquid Hydrogen to Liquids
    ~ Moved Poison Gas to Gases
    + Liquid Nitrogen alias 'LN2'
    + Electric alias 'Electron'
    + Light alias 'Photon'
    + Nut Oil alias 'Cooking Oil'
    + Epsom Salt alias 'Magnesium Sulfate'
    + Pyrite alias 'Iron Sulfide'
    + Limestone alias 'Calcium Carbonate'
    + Quicklime alias 'Calcium Oxide'
    + Slaked Lime alias 'Calcium Hydroxide'
    ~ Petal displays with dark text
    ~ Slightly moved Porcelain
    + Built-in dialog boxes
    ~ Canvas touches the top of the page
    ~ Wide canvas size takes up more screen space
    ~ White border no longer shown on wide canvas size
    ~ Buttons, menus, and the canvas have thicker borders
    ~ "Elem" in stats bar is no longer uppercase
    ~ Unknown has no grain
    - Loading a save no longer changes your selected element
    + Ctrl+S to bring up save prompt
    + Ctrl+Shift+S to instantly save canvas
    + Retroactive changelogs for versions v0.1-v0.4
    + Bluesky social link
    + Partial translations for Ukrainian, Toki Pona, and Halacae
    + Finished translations for Spanish and Russian
   [Bug Fixes]
    ~ Fixed: Oxygen from hydrolysis immediately turns to Foam
    ~ Fixed: Menu heights vary dramatically with long categories
    ~ Fixed: Mod Manager and Info Screen text boxes don't stick to bottom
    ~ Fixed: Lattice Wars appear without borders
    ~ Fixed: Smash tool breaks harder elements faster
    ~ Fixed: Error in console on page load
    ~ Fixed: Artifacts above stats bar text on Chrome
    ~ Fixed: Console logging when Hail breaks a pixel
    ~ Fixed: Milk variants still heat into Yogurt
    ~ Fixed: Controls still show Smooth View keybind
    ~ Fixed: "Save to File" button cut off on some small screens
    ~ Fixed: Many aliases can't be used in Element Select
    ~ Fixed: Prop tool doesn't change pixel state when changing temperature
    ~ Fixed: Grenades stop moving while charged
    ~ Fixed: Lightning doesn't reach bottom on large canvases
    ~ Fixed: Ghost pixels when placing Foam with low air temperature set
    ~ Fixed: 'CR' behavior cell errors with low air temperature set
   [Technical]
    + Portal 'channel' property can be set with the Prop tool (Integer)
    + runAfterReset function
    + isBreakable function
    + 'breakIntoColorMultiplier' element property
    + 'onMoveInto' element property, called when another pixel moves into it (function(pixel1,pixel2))
    + 'chargeStart' pixel property
    ~ 'breakIntoColor' element property can be used without 'breakInto'
    + 'sense' sensor property to detect a certain element
    ~ Optimized electricity
    ~ Fire is affected by air density
    + View setting dropdown includes views added by mods
    ~ currentSaveData is now always defined, and holds metadata about the current canvas, even non-saves
    + currentSaveData always contains a UUID for seeded randomness
    ~ Default max pixel count slightly increased
    ~ Save version is now sb3
        ~ Canvas border width is now stored (Default 1 for old saves)
        ~ Pixel properties with value "undefined" are skipped
    + Error message in console for broken translation files
    + GUI translation support
    + More GUI elements have IDs
    + Future standalone mode
2025-02-21 13:47:50 -05:00
slweeb 79ac763b65 Version 1.10.2 - December 15, 2024 - Birthday III
[Version 1.10.2 - December 15, 2024 - Birthday III]
    + Cheese Powder, from breaking Cheese
    + Chocolate Powder, from breaking Chocolate
   [Changes]
    ~ Drawing lines shows a preview of pixel placement
    ~ Updated Brick texture for better shading
    ~ LEDs, Light Bulbs, and Fireflies can be painted
    + Humans panic when seeing dangerous things, like Fire
    + Humans change direction after hitting walls
    ~ Humans eat more consistently
    ~ Humans have a panic limit
    ~ Humans no longer eat Human meat
    ~ Smash tool moves pixels if they can't be broken
    + Steam decomposes at extreme temperatures
    + Ruins has a Brick texture
    ~ Brick Rubble no longer breaks into Dust
    ~ Recolored Brick Rubble
    + Glass has a light border
    ~ Fancy textures have grain, besides Glass
    + Rock Wall can be made by gluing Rocks
    + Brick can be made by gluing Brick Rubble
    + Mudstone can be made by gluing Dirt
    + Packed Sand can be made by Sand
    + Sponges can dry Mud and Wet Sand
    + Clay can be made by dissolving Wet Sand in Acid
    + Cement can be made with Clay and Quicklime
    ~ Quicklime no longer turns into Limestone on its own
    + Plastic breaks into Beads
    + Charcoal slowly stains solids
    + Animals can spawn Eggs or offspring in Water
    + Seeds planted under soil will rise
    + Birds eat Spiders and their Webs
    + Rocks destroy Webs
    + Frogs release Steam when cooked
    + Worms break down Fiber
    ~ Worms compost some Sawdust into Dirt
    + Soap kills Snails and Slugs
    + Soap removes Slime
    + Alcohol kills Flower Pistils
    + Mercury kills Algae
    ~ Sap boils into some Steam
    ~ Bread is less flammable
    + Ammonia affects Wheat
    + Poison dirties Salt Water, Sugar Water, and Seltzer
    + Water on burning Oil will explode
    + Bleach reacts with Nut Oil and Grease
    + Baking Soda reacts with Soap
    + Copper Sulfate kills Spiders
    + Copper Sulfate stains Zinc
    + Bless removes Heat Ray
    + Plague makes Heads green
    + Plague destroys Skin
    + Hair absorbs some Water
    ~ Breaking Balloons makes some Pop
    ~ Cheese flows slower
    ~ Coffee Grounds in Milk brew into Coffee instead
    ~ Mushroom Spores no longer break
    ~ Acid Clouds don't precipitate when too hot or cold
    ~ Border can be painted
    ~ Tweaked Charcoal heat color
    ~ Moved Light Bulb to after LEDs
    + Midas Touch turns Paper green
    ~ Midas Touch turns Humans into solid Gold instead of Coins
    + Wall alias 'Solid'
    + Mayo alias 'Mayonnaise'
    + Alcohol alias 'Ethanol'
    + Unbreakable elements are clarified in element info
    ~ Screenshots download with name of current save
    ~ Pixel count turns red when all canvas sizes are full
    ~ Log messages have a black shadow to read on bright backgrounds
    ~ TPS dialog displays minimum and maximum
   [Bug Fixes]
    ~ Fixed: Replace Mode causes pixels to float while placing
    ~ Fixed: Detached Heads and dead Humans can eat food
    ~ Fixed: Pixel alpha isn't set from element properties on creation
    ~ Fixed: Molten Thermite continues to heat when not burning
    ~ Fixed: Prop tool can't set value when existing value is null
    ~ Fixed: Unbreakable pixels can burn away when using Prop tool (Perma-burning!!!)
    ~ Fixed: Pixels with burnt states never burn when using Prop tool
    ~ Fixed: Prop tool doesn't retain "0" value on next dialog
    ~ Fixed: Prop tool doesn't handle changing "x" and "y" properties
    ~ Fixed: Placing Fire on insulative pixels heats them
    ~ Fixed: Burning heats insulative pixels
    ~ Fixed: Rays, Bless, Radiation, and some Bombs change insulative pixel temperature
    ~ Fixed: Stink Bugs aren't properly killed by Frogs, Sap, Copper Sulfate, and Borax
    ~ Fixed: Erasing with Lookup selected will only erase 1x1
    ~ Fixed: Erasing fast with Pick or Lookup selected will leave gaps
    ~ Fixed: Hail doesn't conduct heat
    ~ Fixed: Hail cannot break solids without a defined state
    ~ Fixed: Breaking Humans eventually creates Sand and Cement
    ~ Fixed: Element buttons arranged in weird columns after certain issues
    ~ Fixed: Ball doesn't have density and floats on gases
   [Technical]
    + BORDER render preset
    + 'grain' element property
    + 'toolHoverStat' element property, function that takes the hovered pixel while selected
    + 'buttonColor' element property
    ~ Humans now eat any element with true 'isFood' property
    ~ Pixels with 0% alpha won't appear in Basic View
    ~ LEDs with 0% alpha will only appear when powered
    + releaseElement function has option to replace liquids
    ~ Fixed: lineCoords function returns duplicate values
    + empty.js mod for browser JavaScript overriding
2024-12-15 11:45:52 -05:00
slweeb 9713a693f5 human fix 2024-11-26 17:08:08 -05:00
slweeb c989118971 Update survival.js 2024-02-12 17:05:26 -05:00
slweeb f340b0bed9 Update survival.js 2024-02-11 18:03:08 -05:00
slweeb 1df8851164 Update survival.js 2024-02-11 15:25:25 -05:00
slweeb fe4be34bba Update survival.js 2024-02-11 15:17:37 -05:00
slweeb 76c8e9640f Update survival.js 2024-02-11 14:50:36 -05:00
slweeb ad597c16c0 Update survival.js 2024-02-11 14:22:07 -05:00
slweeb a71cc0c237 Update survival.js 2024-02-11 14:11:30 -05:00
slweeb ce7974b2d7 Update survival.js 2024-02-11 14:09:08 -05:00
slweeb 19eff2e9ba Update survival.js 2024-02-11 14:08:15 -05:00
slweeb 4b66340699 Update survival.js 2024-02-11 13:16:54 -05:00
slweeb 0440d37a21 Update survival.js 2024-02-11 13:14:59 -05:00
slweeb c94fc64b8e Update survival.js 2024-02-11 13:11:32 -05:00
slweeb 9b27bd9e0e Update survival.js 2024-02-11 13:05:26 -05:00
slweeb dc0e58f946 Update survival.js 2024-02-10 23:26:27 -05:00
slweeb 1194d7ce45 Update survival.js 2024-02-10 23:15:05 -05:00
slweeb 38c5e3ba4a Update survival.js 2024-02-10 23:06:10 -05:00
slweeb b638f12156 Update survival.js 2024-02-10 22:43:34 -05:00
slweeb d9e2d88323 Create survival.js 2024-02-10 22:31:14 -05:00