Comments (6)
I see what you are saying. Encoding the scenario in a URL, to allow sharing, is a very good idea.
from gloom.
What are the advantages of that approach?
How does your code slot into the functions storeState() and restoreState()?
from gloom.
Well, storeState() and restoreState() work only locally in your browser.
The lines above* can be used to export to a (long) string and import from that, to present to the user and thus traverse browsers and computers.
(* They are untested, and maybe not very efficient or elegant, but should do the trick)
I am just setting up a flask environment to take a look at the system myself, maybe I can propose a pull after all
from gloom.
This could be used to crowd-source the scenario implementations. You can curate a bookmarked URL list that will load each scenario, room by room. Once someone trustworthy has validated the URL does correspond to the scenario, it can be added under a new Bookmark button or something in the app itself for everyone to use.
from gloom.
Agreed. This can be a powerful feature. Got me excited enough to pick the project back up again.
I did a test of the naive solution, and unfortunately it resulted in 10K URLs. I've got something more sophisticated working. Need to add validation and clean it up. Soon.
from gloom.
Great idea! Feature added at fb27077.
Deploying now.
from gloom.
Related Issues (12)
- Immobilize traps
- List of scenarios to load? HOT 2
- Bug in monster movement? HOT 5
- Icy terrain and allies HOT 8
- Right click on the iPad doesn't work HOT 3
- Grid is too small for some scenarios HOT 2
- Frosthaven movement priorities incorrect for multitarget attacks HOT 4
- API access possible? HOT 1
- Linked Hexes HOT 3
- Build Instructions? HOT 3
- miscalculation with traps with "Move 3" HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gloom.