19 lines
310 B
C
19 lines
310 B
C
#include "player.h"
|
|
|
|
#include <stddef.h>
|
|
#include <stdlib.h>
|
|
|
|
player_t player_create(uint16_t x, uint16_t y) {
|
|
return (player_t){.x = x, .y = y};
|
|
}
|
|
|
|
void player_process_action(player_t *player, const char *action) {
|
|
// Quit on q
|
|
|
|
if (action[0] == 'q') {
|
|
exit(0);
|
|
}
|
|
|
|
(void)player;
|
|
}
|