-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Size canvas according to serialized scene aspect ratio. Add buttons f…
…or new scene and creating shapes. Add cookie to remember previous scene selection.
- Loading branch information
Chris Lewin
committed
Aug 13, 2024
1 parent
987dac1
commit 9666d8f
Showing
11 changed files
with
630 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,158 @@ | ||
{ | ||
"version": 2, | ||
"resolution": [ | ||
1102, | ||
1121 | ||
], | ||
"shapes": [ | ||
{ | ||
"id": "shape0", | ||
"position": { | ||
"x": 578, | ||
"y": 356.5 | ||
}, | ||
"rotation": 0, | ||
"halfSize": { | ||
"x": "100", | ||
"y": "100" | ||
}, | ||
"shape": "0", | ||
"function": "3", | ||
"emitMaterial": "1", | ||
"emissionRate": "1", | ||
"radius": 100 | ||
}, | ||
{ | ||
"id": "shape1", | ||
"position": { | ||
"x": 817, | ||
"y": 902.5 | ||
}, | ||
"rotation": 0, | ||
"halfSize": { | ||
"x": "100", | ||
"y": "100" | ||
}, | ||
"shape": "0", | ||
"function": "3", | ||
"emitMaterial": "1", | ||
"emissionRate": "1", | ||
"radius": 100 | ||
}, | ||
{ | ||
"id": "shape2", | ||
"position": { | ||
"x": 547, | ||
"y": 902.5 | ||
}, | ||
"rotation": 0, | ||
"halfSize": { | ||
"x": "100", | ||
"y": "100" | ||
}, | ||
"shape": "0", | ||
"function": "3", | ||
"emitMaterial": "1", | ||
"emissionRate": "1", | ||
"radius": 100 | ||
}, | ||
{ | ||
"id": "shape3", | ||
"position": { | ||
"x": 272, | ||
"y": 904.5 | ||
}, | ||
"rotation": 0, | ||
"halfSize": { | ||
"x": "100", | ||
"y": "100" | ||
}, | ||
"shape": "0", | ||
"function": "3", | ||
"emitMaterial": "1", | ||
"emissionRate": "1", | ||
"radius": 100 | ||
}, | ||
{ | ||
"id": "shape4", | ||
"position": { | ||
"x": 408, | ||
"y": 620.5 | ||
}, | ||
"rotation": 0, | ||
"halfSize": { | ||
"x": "100", | ||
"y": "100" | ||
}, | ||
"shape": "0", | ||
"function": "3", | ||
"emitMaterial": "1", | ||
"emissionRate": "1", | ||
"radius": 100 | ||
}, | ||
{ | ||
"id": "shape5", | ||
"position": { | ||
"x": 745, | ||
"y": 620.5 | ||
}, | ||
"rotation": 0, | ||
"halfSize": { | ||
"x": "100", | ||
"y": "100" | ||
}, | ||
"shape": "0", | ||
"function": "3", | ||
"emitMaterial": "1", | ||
"emissionRate": "1", | ||
"radius": 100 | ||
} | ||
], | ||
"settings": [ | ||
{ | ||
"name": "particlesPerCellAxis", | ||
"type": "range", | ||
"value": "3" | ||
}, | ||
{ | ||
"name": "simRate", | ||
"type": "combo", | ||
"value": "1200" | ||
}, | ||
{ | ||
"name": "fixedPointMultiplierExponent", | ||
"type": "range", | ||
"value": "8" | ||
}, | ||
{ | ||
"name": "liquidViscosity", | ||
"type": "range", | ||
"value": "0" | ||
}, | ||
{ | ||
"name": "mouseFunction", | ||
"type": "combo", | ||
"value": "0" | ||
}, | ||
{ | ||
"name": "iterationCount", | ||
"type": "range", | ||
"value": "4" | ||
}, | ||
{ | ||
"name": "elasticRelaxation", | ||
"type": "range", | ||
"value": "1.06" | ||
}, | ||
{ | ||
"name": "borderFriction", | ||
"type": "range", | ||
"value": "1" | ||
}, | ||
{ | ||
"name": "renderMode", | ||
"type": "combo", | ||
"value": "0" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
[ | ||
{ "scene": "./scenes/damBreak.json", "name": "Dam Break" }, | ||
{ "scene": "./scenes/4Materials.json", "name": "Four Materials"}, | ||
{ "scene": "./scenes/seedLogo.json", "name": "SEED Logo" }, | ||
{ "scene": "./scenes/sillyRubber.json", "name": "Rubber"}, | ||
{ "scene": "./scenes/plasticPress.json", "name": "Plastic Press"}, | ||
{ "scene": "./scenes/pyramid.json", "name": "Pyramid"}, | ||
{ "scene": "./scenes/sandPile.json", "name": "SandPile"} | ||
{ "scene": "./scenes/boxFracture.json", "name": "Box Fracture"} | ||
] |
Oops, something went wrong.