Version 1.2

This commit is contained in:
slweeb 2022-02-04 20:01:14 -05:00
parent abbb22b306
commit 1c29b75258
6 changed files with 1204 additions and 196 deletions

85
404.html Normal file
View File

@ -0,0 +1,85 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>404 - Sandboxels</title>
<meta name="description" content="A falling sand simulation game, with heat transfer, electricity, density, fire, explosions, and more.">
<meta name="keywords" content="falling sand, elements, pixel art, simulator, powder">
<meta name="author" content="R74n">
<meta name="copyright" content="R74n">
<link href="https://fonts.googleapis.com/css?family=Press+Start+2P" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="noindex">
<!--Favicons-->
<link rel="apple-touch-icon" sizes="180x180" href="icons/apple-touch-icon.png?v=2">
<link rel="icon" type="image/png" sizes="32x32" href="icons/favicon-32x32.png?v=2">
<link rel="icon" type="image/png" sizes="16x16" href="icons/favicon-16x16.png?v=2">
<link rel="manifest" href="manifest.json">
<link rel="mask-icon" href="icons/safari-pinned-tab.svg?v=2" color="#2167ff">
<link rel="shortcut icon" href="icons/favicon.ico?v=2">
<meta name="msapplication-TileColor" content="#e6d577">
<meta name="theme-color" content="#000000">
<!--OpenGraph-->
<meta property="og:locale" content="en_US">
<meta property="og:type" content="website">
<meta property="og:title" content="404 - Sandboxels">
<meta property="og:description" content="A falling sand simulation game, with heat transfer, electricity, density, fire, explosions, and more.">
<meta property="og:url" content="https://sandboxels.r74n.com">
<meta property="og:site_name" content="Sandboxels">
<meta property="og:image" content="https://sandboxels.r74n.com/icons/wallpaper.png">
<meta property="og:image:width" content="1980">
<meta property="og:image:height" content="971">
<meta property="og:image:type" content="image/png">
<meta property="og:image:alt" content="A rainforest made in Sandboxels">
<!--Twitter-->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:description" content="A falling sand simulation game, with heat transfer, electricity, density, fire, explosions, and more.">
<meta name="twitter:title" content="404 - Sandboxels">
<meta name="twitter:site:id" content="1436857621827530753">
<meta name="twitter:image" content="https://sandboxels.r74n.com/icons/card.png">
<meta name="twitter:image:alt" content="A rainforest made in Sandboxels">
<meta name="twitter:creator:id" content="1436857621827530753">
<script src="https://R74n.com/load.js"></script>
<style>
html, body {
width: 100%;
height: 100%;
margin: 0;
}
body {
font-family: 'Press Start 2P';
background-color: #000000;
color: #ffffff;
}
.pagetitle {
font-size: 2em;
padding-left: 0.25em;
}
a {color: rgb(255, 0, 255);text-decoration: none;}
a:hover {color: rgb(255, 121, 255);}
a:active, a:hover:active {color: rgb(255, 179, 255);}
/* align the image to the center of the page */
.img404 {
display: block;
margin-left: auto;
margin-right: auto;
width: 50%;
}
p {
text-align: center;
font-size: 1.5em;
}
</style>
</head>
<body>
<h1 class="pagetitle" id="pagetitle"><a href="." class="backbutton" target="_blank">&lt;</a> 404boxels</h1>
<img src="https://sandboxels.r74n.com/icons/wallpaper.png" alt="A rainforest made in Sandboxels" class="img404">
<p>Uh oh! You sandboxed too hard and ended up in the place pixels go after they die.</p>
<p><a href=".">Return to Reality</a></p>
</body>

View File

@ -2,6 +2,70 @@
+ Artists' Update (Painting, Lines, Shapes, etc.)
+ Machines Update
[Version 1.2]
+ Human
+ Firework
+ Dynamite
+ Primordial Soup
+ Seeds - a mixture of various seeds
+ Paper
+ Cellulose
+ Pressure Plate
+ Border
+ Poison
+ Antidote
+ Dirty Bomb
+ Dead Plant (Hidden)
+ Frozen Plant (Hidden)
+ Ember (Hidden, burned into by wood)
+ Fw_Ember (Hidden)
+ View Switcher (Press 1-9)
+ Thermal View (2)
+ Settings Menu
+ Metric, Imperial, and SI units
+ Unhide All Element
+ Background Color
+ C or F2 - Download Screenshot
+ F1 - Hide/Show GUI and HUD
+ Left Arrow & Right Arrow change categories
+ New smooth animation for Rainbow element
+ Acid Clouds can slowly burn
+ Acid Gas and Acid Clouds can be neutralized like Acid
+ Nitroglycerin now explodes when sparked
+ Bamboo now breaks into Sawdust
+ Most explosives can now melt
+ Sand and Dirt can now absorb Blood and Oil
+ Alcohol can fight against Virus and Plague
+ 404 Page
~ Explosives are no longer included in Random
~ Unhid pollen
~ Hid Chocolate Syrup
~ Moved Meat to Food category
~ Meat rots a lot slower
~ Animals die from plague slower
~ Less collection of applicable gases below clouds
~ Page title takes up less space
~ Viruses and Gray Goo now ignore Fire and Smoke
~ Viruses no longer consume Soap, Plague, or Cancer
~ Gray Goo now moves sideways while on surface
~ Cloners no longer clone other Cloner types
~ Molten Plastic now flows faster
~ Tweaked Wet Sand color
~ Recolored Slag
~ Made Oil more visible
~ GUI takes up less vertical space
- Removed Hide button
+ Accessibility: Tab can be used to navigate GUI
~ Fixed: Light doesn't bounce properly
~ Fixed: Magma is absorbed by Molten Slag
~ Fixed: Acid deletes Acid Clouds
~ Fixed: Random not working with Replace mode
~ Fixed: Holding Ctrl/Cmd while using a control gets overriden
~ Fixed: LEDs don't lose charge
~ Fixed: Info links show element IDs even if they have names
+ Technical: Element "ignore" property now works on CH (Change) and CF (Clone First Touched)
+ Technical: Elements can now have a behavior and tick function at the same time
[Version 1.1.2]
+ Technical: New functions to use in coded elements
doBurning(pixel); // Using this function will allow burning simulation

View File

@ -1,19 +1,28 @@
[Sandboxels Controls]
Left Click = Place Pixels
Right Click = Erase Pixels
Middle Click = Pick Element
Spacebar or P = Pause Simulation
Shift + Heat = Intense Heating
Shift + Cool = Intense Cooling
Scroll = Change Cursor Size
- or [ = Decrease Cursor Size
+ or ] = Increase Cursor Size
Shift + - = Set Cursor Size to 1
Shift + + = Increase Cursor Size
E = Element Selection
/ or I = Element Info Screen
> = Step
F = Toggle Fullscreen
Left Click = Place Pixels
Right Click = Erase Pixels
Middle Click = Pick Element
Space or P = Pause Simulation
Shift + Heat = Intense Heating
Shift + Cool = Intense Cooling
Shift + Mix = Include Fire & Smoke in Mixing
Shift + Shock = Intense Shock
Scroll = Change Cursor Size
- or [ = Decrease Cursor Size
+ or ] = Increase Cursor Size
Shift + - = Set Cursor Size to 1
Shift + + = Increase Cursor Size
Left/Right Arrow = Change Category
E = Element Selection
/ or I = Element Info Screen
\ = Settings Menu
M = Mod Manager
> = Step
F or F11 = Toggle Fullscreen
1 or 0 = Normal View
2 = Thermal View
F1 = Toggle GUI / HUD
F2 or C = Capture Screenshot
(Alt/Option can be used in place of Shift)
@ -26,6 +35,6 @@
Replace = Overrides pixels when placing
E = Select any element by name
TPS = Change how fast the simulation runs
Hide = Run the simulation without updating the display
Info = Brings up the element info screen
Mods = Opens the Mod Manager
Mods = Opens the Mod Manager
Settings = Opens the Settings Menu

1187
index.html

File diff suppressed because it is too large Load Diff

View File

@ -46,6 +46,14 @@ runAfterLoad(function() {
console.log("Hello World!");
});
// Run if another mod is active
if (enabledMods.includes("test.js")) {
runAfterLoad(function() {
// Your code here
console.log("Hello World!");
});
}
// Creating eLists:
eLists.CONDIMENT = ["ketchup","melted_cheese","mayo"];
// Adding elements to eLists:

View File

@ -1,4 +1,6 @@
elements.human = {
// Mod deprecated. Merged with base game.
/*elements.human = {
color: ["#f5eac6","#d4c594","#a89160","#7a5733","#523018","#361e0e"],
category: "life",
properties: {
@ -52,6 +54,7 @@ elements.body = {
burnInto: "cooked_meat",
reactions: {
"cancer": { "elem1":"cancer", "chance":0.005 },
"radiation": { "elem1":["ash","meat","rotten_meat","cooked_meat"], "chance":0.4 },
},
properties: {
dead: false,
@ -59,7 +62,7 @@ elements.body = {
panic: 0,
},
tick: function(pixel) {
if (tryMove(pixel, pixel.x, pixel.y+1)) {
if (tryMove(pixel, pixel.x, pixel.y+1)) { // Fall
if (!isEmpty(pixel.x, pixel.y-2, true)) { // Drag head down
var headpixel = pixelMap[pixel.x][pixel.y-2];
if (headpixel.element == "head") {
@ -142,6 +145,10 @@ elements.head = {
burn: 10,
burnTime: 250,
burnInto: "cooked_meat",
reactions: {
"cancer": { "elem1":"cancer", "chance":0.005 },
"radiation": { "elem1":["ash","meat","rotten_meat","cooked_meat"], "chance":0.4 },
},
properties: {
dead: false
},
@ -193,4 +200,4 @@ elements.blood.reactions.dirt = {
elements.blood.reactions.sand = {
"elem1": null,
"elem2": "wet_sand",
}
}*/