duane
I'm not sure if I need vectors ?
Tokens on the checkerboard will need to move, so maybe vectors are a good option, I have actually no idea about how to use them.
Tokens will move from one tile to another, and change facing inside the tile, but it's a strict position : the token is on a tile or it is not, there is no "moving half-tile".
I know what a dictionary is but not sure why it should be keyed on vectors ?
I thought to use an two-dimensional array for the tiles, since intuitively it seems the most adequate way to have a coordinate system.
duane You could assign them to groups and call methods in every member of a group simultaneously.
That seems to be the right way to do it, thanks.
duane I would avoid json for what you're doing, since it doesn't handle native vectors or rectangles. It's easier to use store_var() to save the data or nodes directly.
I don't think that I need to save vectors nor rectangles ?
I need to store the tokens position (which tile they're on and what is their facing) on the first turn and the orders given to them, that's all.
The orders are cards to be placed on BoardPlacementSlots if I understand the documentation of the GodotCardGameTutorial that I just read, so I just need to save the turn, the order label, and the slot it is using.
The idea is that the players define "tactical doctrines" in abstraction, and when a battle occur, it is solved by applying the relevant "tactical doctrine" (so, initial ship positioning and orders) to the actual fleets.
So what I need is to store each tactical doctrine separately (in the mock-up, I intend to have only one tactical doctrine).
I wasn't able to find documentation about store_var ?