pppi-rpg-game/program/main.cpp

22 lines
408 B
C++
Raw Permalink Normal View History

2024-02-14 17:31:38 +03:00
#include "game_engine.h"
2024-02-14 17:31:09 +03:00
#include "ui_system.h"
2024-02-14 17:31:38 +03:00
int main() {
GameEngine engine;
2024-02-14 17:31:09 +03:00
UISystem ui;
2024-02-14 17:31:38 +03:00
engine.initialize();
2024-02-14 17:31:09 +03:00
ui.initialize();
2024-02-14 17:31:38 +03:00
while (true) {
engine.update(0.016); // Предполагаем фиксированный таймстеп
2024-02-14 17:31:09 +03:00
ui.update(0.016);
2024-02-14 17:31:38 +03:00
engine.render();
2024-02-14 17:31:09 +03:00
ui.render();
2024-02-14 17:31:38 +03:00
}
engine.shutdown();
2024-02-14 17:31:09 +03:00
ui.shutdown();
2024-02-14 17:31:38 +03:00
return 0;
}