Add player and game loop
This commit is contained in:
14
iris_c/player.h
Normal file
14
iris_c/player.h
Normal file
@@ -0,0 +1,14 @@
|
||||
#ifndef PLAYER_H
|
||||
#define PLAYER_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
typedef struct {
|
||||
uint16_t x;
|
||||
uint16_t y;
|
||||
} player_t;
|
||||
|
||||
player_t player_create(uint16_t x, uint16_t y);
|
||||
void player_process_action(player_t *player, const char *action);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user