Initial commit.
This commit is contained in:
37
src/main.c
Executable file
37
src/main.c
Executable file
@@ -0,0 +1,37 @@
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
Reference in New Issue
Block a user