sidhantchadda / Swooper

A multiplayer game
0 stars 0 forks source link

make structure object #2

Open sidhantchadda opened 7 years ago

sidhantchadda commented 7 years ago

A structure should be an array of points that define a graph that the player creates. The structure object should automatically update when the player builds a new structure that is attached to a current structure. Each player should be able to have multiple such structures because a player can technically have multiple distinct islands. The point of this object is such that we can simply send this object over the network to render a player's squares instead of sending the entire grid.

sidhantchadda commented 7 years ago

Ex: if a players captured squares is in the shape of a square the structure object should have 4 points one for each corner

sidhantchadda commented 7 years ago

We can figure out what a structure looks like if we have a single point inside the structure by performing a surface traversal.