#include "flatland.hpp" #include "window.hpp" #include "exceptions/forcequit.hpp" using namespace flat; int count = 0; void loop(float); int main() { FlatWindow win(600, 900, "Stocazzo"); flat_status status; init_flatland(&win, loop, status, 60); return 0; } #include using namespace std; void loop(float dt) { ++count; if (count == 1000) throw ForceQuit("1000 steps reached"); cout << "Loop number: " << count << endl; }