protomine/include/player.h

19 lines
362 B
C

#pragma once
#include "grid.h"
struct Player {
int x;
int y;
int *cash;
int left_held;
int right_held;
int up_held;
int down_held;
};
struct Player player_init(int x, int y);
void reset_cash(void);
int player_draw(struct Player, int scr_x, int scr_y);
/* return 1 on zone transition */
int player_update(struct Player *restrict, struct Grid *restrict);