ctomni231 / cwtactics

Custom Wars Tactics - An effort to create an open engine to emulate the gaming experience of the Nintendo Advance Wars series.
http://ctomni231.github.io/cwtactics/
Mozilla Public License 2.0
75 stars 11 forks source link

JSON Data for Objects - Terrain #473

Open ctomni231 opened 5 years ago

ctomni231 commented 5 years ago

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.

Tapsi commented 5 years ago

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

ctomni231 commented 5 years ago

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

Tapsi commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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