From a365de1b0ab91f9c057196a601d96d2aed6e48fb Mon Sep 17 00:00:00 2001 From: Aleksey Veresov Date: Sun, 28 Feb 2021 23:29:25 +0300 Subject: o_O --- src/player.h | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) (limited to 'src/player.h') 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 -- cgit v1.2.3