Player Properties
— at Version 4
Ideally JS variables should be attachable to the Player object (via localPlayer?) to declare and set any properties affiliated with the current player. (eg player.resource.food; modder could alter it to add/remove any resources he wishes.)
- Civilisation: Celt, Greek, etc ... Chosen from session config.
- Colour: Player colour, chosen from session config.
- Team: In session config, players can choose to be on the same team (allied at start).
- Various team settings, such as allowing teams to have "shared control" and being able to command each other's units.
- Alliance: Diplomatic settings (who's an ally, who's an enemy).
- array of players matching slot numbers, 1: enemy, 2: ally
- Phase: The starting "age" for the player (defaults to village). If otherwise, the player begins with the phase upgrade already researched.
Resource: Quantities of each of the resources gathered by the player.
Currently resources are tracked by the GUI; every player should have their own set of resources and the entity scripts and GUI should be updated to work with this.
- Start Location: Position on the map where the player will begin.
- Camera should also start centered on this location.