From 8af1284654a4a5d454a559eca371bf0ac3c79786 Mon Sep 17 00:00:00 2001 From: jacopograndi Date: Tue, 31 Aug 2021 23:53:53 +0200 Subject: tech done, building sprites, upgrade on age up, gui --- main.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'main.cpp') 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 { 1500, 1500 }; - gst.players.emplace_back(0, 0, 255); - gst.players[1].res = std::vector { 1500, 1500 }; + gst.players.emplace_back(255, 0, 0, 0); + gst.players[0].res = std::vector { 1500, 1500 }; + gst.players.emplace_back(0, 0, 255, 1); + gst.players[1].res = std::vector { 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); -- cgit v1.2.3-54-g00ecf