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.
2020-09-10 15:44:26 +02:00
|
|
|
#include <gint/display.h>
|
|
|
|
#include <gint/keyboard.h>
|
2020-09-10 17:29:33 +02:00
|
|
|
#include "init.h"
|
2020-09-10 17:58:12 +02:00
|
|
|
#include "vec.h"
|
2020-09-11 12:01:24 +02:00
|
|
|
#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 */
|
2020-09-10 17:29:33 +02:00
|
|
|
|
2020-09-11 12:01:24 +02:00
|
|
|
/* create player */
|
|
|
|
Player player = {
|
|
|
|
.position = (Vec){32, 32}
|
|
|
|
};
|
|
|
|
|
2020-09-10 15:44:26 +02:00
|
|
|
dclear(C_WHITE);
|
2020-09-11 12:01:24 +02:00
|
|
|
draw_player(&player);
|
2020-09-10 15:44:26 +02:00
|
|
|
dupdate();
|
|
|
|
|
|
|
|
getkey();
|
|
|
|
return 1;
|
|
|
|
}
|