diff options
author | Aleksey Veresov <aleksey@veresov.pro> | 2021-02-28 23:29:25 +0300 |
---|---|---|
committer | Aleksey Veresov <aleksey@veresov.pro> | 2021-02-28 23:29:25 +0300 |
commit | a365de1b0ab91f9c057196a601d96d2aed6e48fb (patch) | |
tree | 4c3262c1745337dbd4e6c87525edc0532b517963 /src/player.h | |
parent | 4cfd9c6b96035ca7ccf6444e911b2a908d8500eb (diff) | |
download | takethis-a365de1b0ab91f9c057196a601d96d2aed6e48fb.tar takethis-a365de1b0ab91f9c057196a601d96d2aed6e48fb.tar.xz takethis-a365de1b0ab91f9c057196a601d96d2aed6e48fb.zip |
o_O
Diffstat (limited to 'src/player.h')
-rw-r--r-- | src/player.h | 29 |
1 files changed, 19 insertions, 10 deletions
diff --git a/src/player.h b/src/player.h index 427c9d3..cc224ba 100644 --- a/src/player.h +++ b/src/player.h @@ -1,20 +1,29 @@ -#ifndef TAKETHIS_INCLUDED_ROOM -#define TAKETHIS_INCLUDED_ROOM +#ifndef TAKETHIS_INCLUDED_PLAYER +#define TAKETHIS_INCLUDED_PLAYER -typedef struct tt_room { - SDL_Rect *tiles[15][19]; - tt_body *bodies[15][19]; -} tt_room; +#include "room.h" -tt_room *tt_room_load(int num); +typedef struct tt_player { + tt_room *room; + int xwalk; + int ywalk; + int x; + int y; + int xrem; + int yrem; + int variant; + int rem; + int money; + int keys; + int the_key; +} tt_player; -void tt_room_draw(tt_room *room); -void tt_room_rtol(tt_room *right, tt_room *left, int permille); +void tt_player_walk(int delta); -void tt_room_utod(tt_room *up, tt_room *down, int permille); +void tt_player_draw(); #endif |