diff options
author | jacopograndi <jak.sk8@hotmail.it> | 2021-08-31 23:53:53 +0200 |
---|---|---|
committer | jacopograndi <jak.sk8@hotmail.it> | 2021-08-31 23:53:53 +0200 |
commit | 8af1284654a4a5d454a559eca371bf0ac3c79786 (patch) | |
tree | 70e9cf9d3d11a205175bdad394b6201870cf7f07 /main.cpp | |
parent | fb5a98b72ab79949d1da7f75a3d6150c2906ef40 (diff) |
tech done, building sprites, upgrade on age up, gui
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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); |