From 86323775440b7f95366a96522a1628ed969a2405 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20L=C3=B8vbr=C3=B8tte=20Olsen?= Date: Thu, 24 Jan 2019 22:29:50 +0100 Subject: [PATCH] add example json --- static/state.json | 104 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 104 insertions(+) create mode 100644 static/state.json diff --git a/static/state.json b/static/state.json new file mode 100644 index 0000000..962ecf0 --- /dev/null +++ b/static/state.json @@ -0,0 +1,104 @@ +{ + "game": { + "player_count": 2, + "time_between_ticks": 3600, + "ticks_per_cycle": 24, + "_comment": "More game specific settings would be here" + }, + "meta": { + "player_id": 0, + "tick": 5, + "cycle": 2, + "last_tick": 1548384419 + }, + "players": [ + { + "id": 0, + "profile": { + "name": "Torjus", + "race": "Griffin", + "race_picture": null, + "race_bio": "The griffin, griffon, or gryphon (Greek: γρύφων, grýphōn, or γρύπων, grýpōn, early form γρύψ, grýps; Latin: gryphus) is a legendary creature with the body, tail, and back legs of a lion; the head and wings of an eagle; and sometimes an eagle's talons as its front feet. Because the lion was traditionally considered the king of the beasts and the eagle the king of birds by the Middle Ages the griffin was thought to be an especially powerful and majestic creature. Since classical antiquity, Griffins were known for guarding treasure and priceless possessions." + }, + "color": "#FFFFFF" + }, + { + "id": 1, + "profile": { + "name": "Cyber", + "race": "Catte", + "race_picture": "images/Cybkatte.png", + "race_bio": null + }, + "color": "#0000FF" + } + ], + "stars": [ + { + "id": 0, + "owner_id": 0, + "name": "Furryland", + "resources": 160, + "location": { + "x": 10, + "y": 20 + }, + "ships": 100, + "infrastructure": { + "finance": 10, + "fabrication": 10, + "science": 10 + }, + "hypergate": true + }, + { + "id": 1, + "owner_id": 1, + "name": "xXCyberlabXx", + "resources": 150, + "location": { + "x": 50, + "y": 200 + }, + "ships": 150, + "infrastructure": { + "finance": 5, + "fabrication": 15, + "science": 10 + }, + "hypergate": true + }, + { + "id": 2, + "owner_id": null, + "name": "Camilla", + "resources": 160, + "location": { + "x": 0, + "y": 0 + }, + "ships": 0, + "infrastructure": { + "finance": 0, + "fabrication": 0, + "science": 0 + } + } + ], + "carriers": [ + { + "id":0, + "owner_id": 0, + "name": "KNM Helge Ingstad", + "ships": 10, + "location": null, + "last_location": 1, + "orders": [ + { + "star_id": 1, + "action": "NOTHING" + } + ] + } + ] +} \ No newline at end of file