mysticsymbolic.github.io/lib
Atul Varma 77496c6301
Store creature state in querystring (#210)
This is an attempt to help with #61 by storing the creature state in the querystring.

However, a crucial issue with this implementation as it stands is that it stores the random number seed used to generate the creature.  This is great for representing the state in a compact form, but it's also likely to break easily as the vocabulary and randomization algorithm changes.

So, in the future, we might want to represent the creature state by enumerating the actual structure of the creature, which is likely to be a bit more future-proof.  (It also makes it possible for us to add features in the future that allow users to tweak the randomly-generated creature.)

But for now at least, this will allow users to use the back and forward buttons in their browser to navigate between creatures, so that if they click randomize and skip past something that looked cool, it's easy to go back and visit it.
2021-07-24 14:00:42 -04:00
..
__snapshots__
pages Store creature state in querystring (#210) 2021-07-24 14:00:42 -04:00
animated-gif.ts
animation.ts
attach.test.tsx
attach.tsx
auto-sizing-svg.tsx
base64.test.ts
base64.ts
bounding-box.test.ts
bounding-box.ts
browser-main.tsx
checkbox.tsx
color-util.test.ts
color-util.ts
color-widget.css
color-widget.tsx
colors.ts
creature-symbol-factory.tsx
creature-symbol.tsx
distribution.test.ts Add a 'creature_frequency_multiplier' TOML property. (#207) 2021-07-17 14:39:19 -04:00
distribution.ts Add a 'creature_frequency_multiplier' TOML property. (#207) 2021-07-17 14:39:19 -04:00
esbuild-shims.js
export-svg.css
export-svg.tsx
hover-debug-helper.css Hover helper tooltips aren't obscured by cursor. 2021-07-18 16:52:18 -04:00
hover-debug-helper.tsx
mandala-circle.tsx
numeric-slider.css
numeric-slider.tsx
page-with-shareable-state.tsx
page.css
page.tsx
palette-algorithm-widget.tsx
path.ts
point.test.tsx
point.ts
random-colors.test.ts
random-colors.ts Enable gradients, set colors to randhue. Fixes #209. 2021-07-17 14:03:04 -04:00
random.test.ts
random.ts
randomizer-widget.tsx
serialization.test.ts Store creature state in querystring (#210) 2021-07-24 14:00:42 -04:00
serialization.ts Store creature state in querystring (#210) 2021-07-24 14:00:42 -04:00
specs.ts
svg-composition-context.tsx
svg-symbol-metadata.test.ts Add a 'creature_frequency_multiplier' TOML property. (#207) 2021-07-17 14:39:19 -04:00
svg-symbol-metadata.ts Add a 'creature_frequency_multiplier' TOML property. (#207) 2021-07-17 14:39:19 -04:00
svg-symbol.tsx Add a 'creature_frequency_multiplier' TOML property. (#207) 2021-07-17 14:39:19 -04:00
svg-transform.tsx
svg-vocabulary.ts
symbol-context-widget.tsx
test-util.ts
unique-id.test.tsx
unique-id.tsx
use-debounced-effect.ts
util.test.tsx
util.ts
visible-specs.tsx
vocabulary-builder.test.ts
vocabulary-builder.ts
vocabulary-widget.tsx
vocabulary.test.ts Add a 'creature_frequency_multiplier' TOML property. (#207) 2021-07-17 14:39:19 -04:00
vocabulary.ts