Closed alexrutar closed 2 years ago
TODO:
#player-profiles
table automatically. This will require deciding on a data format, adding the data to assets/js/game_data.js
, and then generating the table with this information along with the info pulled from the savestring.oath_parser.js
into the form {cradle: [site, ...], ...}
rather than an index-sensitive array.suits
array).Basically, the required data should be something like a dict with keys that are the house colors, e.g.
"yellow": {
"player": "Andreas",
"name": "House of Dawn"
}
Also, it would be nice if the table of player images were responsive: i.e. display the images in a single column if the page is sufficiently narrow, and in 2 columns otherwise.
The suit order can now be changed. Is there a "canonical order"? Perhaps alphabetical, or perhaps the order presented on the board itself.
The suit order can now be changed. Is there a "canonical order"? Perhaps alphabetical, or perhaps the order presented on the board itself.
There is a canonical order in the LUA files, but it doesn't really mean anything. I would actually prefer to change the order to the order on the board: Discord, Arcane, Order, Hearth, Beast, Nomad.
Also, what does the save.name
variable mean? In the parser output.
The save.name
string is the chronicle name, in this case "The Helichrysum Chronicle"
Cool, I can render this into the state as well automatically.
It already is, in default.html, the element with id "name".
That element no longer seems to exist? I must have deleted it somewhere, and I cannot remember when. It's missing already in the main
branch.
Anyway I added it back now. Also, I realized it's possible to access site variables directly from the JS at render-time! This means all the configuration files don't need to be in game_state.js
and can instead be put directly into _config.yml
. This is really convenient from a packaging / organizational perspective.
Edit: I've realized this is a bad idea - see #11 for the proper way to do this.
Alright all done now! The code is fully running - just the calls to render the player table is hard-coded. I'll leave it to you to edit this to get the correct calls out of the savestring.
This WIP is to automate the creation of all the game state files.