20 lines
375 B
C
20 lines
375 B
C
#include "game.h"
|
||
#include "world.h"
|
||
#include <stdlib.h>
|
||
#include "world.h"
|
||
#include <ncurses.h>
|
||
int main(void) {
|
||
void* game_state = init_game();
|
||
if (!game_state) {
|
||
fprintf(stderr, "Не удалось инициализировать игру!\n");
|
||
return 1;
|
||
}
|
||
|
||
world_run(game_state, game_event);
|
||
|
||
free(game_state);
|
||
|
||
return 0;
|
||
}
|
||
|