First of all, overlay the grid lines again to create a nice map! (The numbers + letters might be too much for the computer.)
In this game, the map should start off completely unexplored and invisible. During the game, more and more is revealed.
Put fog over the world.
Turn all sprites into dots. (Display them on top of the fog)
When a new island is discovered, reveal all tiles corresponding with this island, and show title.
For this to work, we need to exploreIslands on the CLIENT side as well, and save which tiles are inside an island. This way, we can just receive "reveal island 2", and we can immediately remove all the tiles from island 2 from the fog.
When someone trades with a dock for the first time, reveal the dock. From that moment, show dock deals (and update them)
Whenever someone fires, the current tile becomes discovered. Whenever someone is attacked by a monster, the current tiles becomes discovered. With a random chance, random new tile(s) are discovered.
IDEA: When a tile is uncovered, immediately check the neighbours. Mark "unknown" tiles as potential "next reveals". Every turn, a few of these unknown tiles will be revealed.
How do we do this?!?
When an island or dock is discovered, that signal is immediately send to servers. They update this information at once.
Other discoveries are send by the server in a list. ("discoveredTiles", which might be empty, or might contain like 30 tiles.) The monitor simply accepts this and reveals the tiles at the start of the next turn.
First of all, overlay the grid lines again to create a nice map! (The numbers + letters might be too much for the computer.)
In this game, the map should start off completely unexplored and invisible. During the game, more and more is revealed.
IDEA: When a tile is uncovered, immediately check the neighbours. Mark "unknown" tiles as potential "next reveals". Every turn, a few of these unknown tiles will be revealed.
How do we do this?!?