From b1f4c02c69a9e43595ec779e43bae1e87ddac965 Mon Sep 17 00:00:00 2001 From: Maxim Slipenko Date: Wed, 14 Feb 2024 17:31:09 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20main.cpp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- program/main.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 program/main.cpp diff --git a/program/main.cpp b/program/main.cpp new file mode 100644 index 0000000..b6a037e --- /dev/null +++ b/program/main.cpp @@ -0,0 +1,21 @@ +#include "game_engine.h" +#include "ui_system.h" + +int main() { + GameEngine engine; + UISystem ui; + + engine.initialize(); + ui.initialize(); + + while (true) { + engine.update(0.016); // Предполагаем фиксированный таймстеп + ui.update(0.016); + engine.render(); + ui.render(); + } + + engine.shutdown(); + ui.shutdown(); + return 0; +} \ No newline at end of file