aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/main.cpp b/main.cpp
index d7a0cca..658bcd4 100644
--- a/main.cpp
+++ b/main.cpp
@@ -58,10 +58,10 @@ int main () {
load_json(gst);
- gst.players.emplace_back(255, 0, 0);
- gst.players[0].res = std::vector<int> { 1500, 1500 };
- gst.players.emplace_back(0, 0, 255);
- gst.players[1].res = std::vector<int> { 1500, 1500 };
+ gst.players.emplace_back(255, 0, 0, 0);
+ gst.players[0].res = std::vector<float> { 1500, 1500 };
+ gst.players.emplace_back(0, 0, 255, 1);
+ gst.players[1].res = std::vector<float> { 1500, 1500 };
gst.ground.tiles[1] = 1;
gst.ground.tiles[8] = 1;
@@ -81,6 +81,8 @@ int main () {
gst.entities.emplace_back(5, 1, gst.get_info("Town Center"), 0);
+ gst.entities.emplace_back(6, 1, gst.get_info("Barracks"), 0);
+ gst.entities.emplace_back(5, 0, gst.get_info("Stable"), 0);
gst.entities.emplace_back(1, 1, gst.get_info("Villager"), 0);
gst.entities.emplace_back(2, 1, gst.get_info("Light Cavalry"), 0);
gst.entities.emplace_back(10, 10, gst.get_info("Villager"), 1);