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

JSON Data for Objects - Terrain #473

Open
1 task
ctomni231 opened this issue Feb 1, 2019 · 5 comments
Open
1 task

JSON Data for Objects - Terrain #473

ctomni231 opened this issue Feb 1, 2019 · 5 comments

Comments

@ctomni231
Copy link
Owner

ctomni231 commented Feb 1, 2019

Custom Wars Design Document - [2.0] Terrain
https://github.com/ctomni231/cwtactics/wiki/Custom-Wars-Tactics---Core-Document#20-terrain

We need a data driven way to represent terrain tiles within the system. We've pretty much already accomplished this before in CWT Alpha 0.35. You can see this here:
https://github.com/ctomni231/cwtactics/blob/gh-pages/0_3_5/mod/cwt/tiles.json

A similar structure for the updated version will be helpful. We can either choose to store this in code, traits, or as separated JSON files.

  • Load in terrain data into the game by any means
@Tapsi
Copy link
Collaborator

Tapsi commented Feb 1, 2019

I would like to separate the issue. this issue should only introduce the loading mechanism only. :)

@ctomni231
Copy link
Owner Author

Okay, so in other words, we are aiming for functionality rather than data storage.

@Tapsi
Copy link
Collaborator

Tapsi commented Feb 1, 2019

both, but if we add data now, then we have to support it. e.g. we have to change all data when we change the data structure. cause of this I would suggest to add only the functionality plus one or two test tiles/units only. :)
what do you think ?

@ctomni231
Copy link
Owner Author

Yeah, a small subset will be great. I only want us to start thinking about the structure, because it'll get messy if we don't start early.

@Tapsi
Copy link
Collaborator

Tapsi commented Feb 1, 2019

yeah it's probably a good time to add data structures, since we have a map now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants