diff options
author | jacopograndi <jacopo.grandi@outlook.it> | 2022-01-04 18:36:24 +0100 |
---|---|---|
committer | jacopograndi <jacopo.grandi@outlook.it> | 2022-01-04 18:36:24 +0100 |
commit | 87fdac7918d776a4c11b3880eef64b09b334aa1c (patch) | |
tree | e75456587f3a5697d093240b739d8cc5c1025829 /main.cpp | |
parent | 9ab3c2b88edf48f6e215d940a43dc75fad7a977b (diff) |
linux build config and imgs
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -44,7 +44,6 @@ int main () { inv.ground.resources.emplace_back(inv.ground.at(3, 4), Resource::Type::gold);
inv.ground.resources.emplace_back(inv.ground.at(4, 4), Resource::Type::food);
-
Gst gst { &inv };
gst.players.emplace_back(255, 0, 0, 0);
@@ -72,7 +71,8 @@ int main () { View view (vec2 { (float)graphics.resx, (float)graphics.resy });
vec2 mouselast { 0, 0 };
-
+
+
while(true) {
if (com.process_events()) break;
if (com.resx != -1) {
@@ -104,7 +104,6 @@ int main () { ai::performer perf { gst };
gst = perf.apply(best);
}
-
control.process(gst, view);
com.process_keys();
}
@@ -114,4 +113,4 @@ int main () { }
}
return 0;
-}
\ No newline at end of file +}
|