mirror of
https://github.com/Maks1mS/pppi-rpg-game.git
synced 2024-12-23 14:22:59 +03:00
добавлен main.cpp
This commit is contained in:
parent
aa61a2712c
commit
b1f4c02c69
21
program/main.cpp
Normal file
21
program/main.cpp
Normal file
@ -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;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user