From fb4bc53b6481db0a394ad306417eab24538d8c3f Mon Sep 17 00:00:00 2001 From: Marvin Blum Date: Tue, 22 Nov 2022 15:20:51 +0100 Subject: [PATCH] Tilemap and savegames. --- concept/00-Implementation.md | 8 ++++++++ concept/01-Overview.md | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/concept/00-Implementation.md b/concept/00-Implementation.md index 0d3e6b8..0131f4f 100644 --- a/concept/00-Implementation.md +++ b/concept/00-Implementation.md @@ -22,3 +22,11 @@ The server and client communicate through a simple TCP (web socket) and JSON pro ### Authentication For authentication oAuth with a refresh token will be used. Clients need to authenticate themselves when connecting to a game. + +## Tilemap + +The tilemap is implemented as a simple 2D array of objects. Each tile has an owner, properties of it's type, price, and so on. Maps are crafted by hand and don't change during the game, except for some population growth (new houses, higher demand) and changes made by the players. Roads for example cannot be changed. Each map has a biome, which sets the basic theme for the map (desert, green, artic, ...). + +## Savegames + +Savegames are stored in Postgres as JSON blobs and serialized/deserialized when saving/loading a game. diff --git a/concept/01-Overview.md b/concept/01-Overview.md index 9335da5..4d5f5bf 100644 --- a/concept/01-Overview.md +++ b/concept/01-Overview.md @@ -2,7 +2,7 @@ Ecosim is a browser-based multiplayer game about running one or multiple successful companies on a tile-based map in real time. -> Everything related to the implementation and technology of the game is described in a [different article](00-Implementation.md). +> Everything related to the implementation and technology of the game is described in a [different document](00-Implementation.md). ## Goal of the game