Files
micro-jrpg/src/main.c
2025-10-26 15:42:34 -05:00

37 lines
506 B
C
Executable File

/**
* Copyright (c) 2025 Dominic Masters
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
#include "game.h"
#if RPG_TERM == 1
#include "term/term.h"
#endif
int main(int argc, char** argv) {
gameInit();
#if RPG_TERM == 1
termInit();
#endif
while(1) {
#if RPG_TERM == 1
termUpdate();
#endif
gameTick();
#if RPG_TERM == 1
termDraw();
#endif
}
#if RPG_TERM == 1
termDispose();
#endif
return 0;
}