This repository has been archived on 2022-01-13. You can view files and clone it, but cannot push or open issues or pull requests.
jtmm2-old/src/main.c

23 lines
310 B
C
Raw Normal View History

2020-09-10 15:44:26 +02:00
#include <gint/display.h>
#include <gint/keyboard.h>
#include "init.h"
#include "vec.h"
#include "player.h"
2020-09-10 15:44:26 +02:00
int main(void)
{
2020-09-11 10:50:11 +02:00
init(); /* initialize gint */
/* create player */
Player player = {
.position = (Vec){32, 32}
};
2020-09-10 15:44:26 +02:00
dclear(C_WHITE);
draw_player(&player);
2020-09-10 15:44:26 +02:00
dupdate();
getkey();
return 1;
}