Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make templates for everything in YAML #12

Open
4 of 7 tasks
fabio-t opened this issue Oct 26, 2017 · 1 comment
Open
4 of 7 tasks

Make templates for everything in YAML #12

fabio-t opened this issue Oct 26, 2017 · 1 comment
Assignees
Labels
Milestone

Comments

@fabio-t
Copy link
Owner

fabio-t commented Oct 26, 2017

The smart way would be to implement a yaml serialiser/deserialiser for artemis-odb itself, so as to have component mappings.

But we'll go the easy way first: parse the yaml file and manually check a list of possible keys, then convert them to components as appropriate.

We are already doing it for primary attributes (and then we create secondary attributes), but stuff is still missing:

  • Game configuration (height and width of terminal, tileset, hour-seconds..)
  • Map generation information (seed, "biomes", distributions for placement..); this might probably be "distributed" in another files
  • Creature, trees, boulders etc placement.. (probably linked to above)
  • Map thresholds for terrain (colours, character, elevation) Make Cell a (flyweight) class #18
  • Creature templates Handle CreatureTemplate like items #30
  • Item templates
  • Crafting recipes Crafting #14
@fabio-t fabio-t self-assigned this Oct 26, 2017
@fabio-t fabio-t mentioned this issue Nov 4, 2017
3 tasks
fabio-t added a commit that referenced this issue Nov 5, 2017
…mplex yaml parsing, but still not there - yet
@fabio-t fabio-t modified the milestones: 0.2.0, 0.4.0 Nov 8, 2017
fabio-t added a commit that referenced this issue Nov 10, 2017
…ml files; I can directly use the artemis-odb component which is great
@fabio-t fabio-t changed the title Make templates for all entities in YAML Make templates for everything in YAML Nov 12, 2017
@fabio-t
Copy link
Owner Author

fabio-t commented Nov 12, 2017

Item templates are almost done - the structure is there and it already works (tested with crafting).

What needs to be done is putting the right character and colour for each item, and changing all specific functions like makeStone into the new makeItem. Or something along those lines.

fabio-t added a commit that referenced this issue Nov 14, 2017
fabio-t added a commit that referenced this issue Nov 14, 2017
fabio-t added a commit that referenced this issue Nov 27, 2017
…or basic terrain types; also, for #12, terrain data is loaded from yaml files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant