17 lines
306 B
C
17 lines
306 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 player_draw(struct Player, int scr_x, int scr_y);
|
|
void player_update(struct Player *restrict, struct Grid *restrict);
|