mirror of
https://codeberg.org/ACME-Corporation/cub3d.git
synced 2025-12-06 09:58:09 +01:00
restarted movement core
This commit is contained in:
parent
a8abe903cb
commit
ba42e0d3e1
5 changed files with 57 additions and 37 deletions
|
|
@ -52,12 +52,20 @@ typedef struct s_mapdata
|
|||
char error[1024];
|
||||
} t_mapdata;
|
||||
|
||||
struct s_playermove {
|
||||
int is_w_pressed;
|
||||
int is_a_pressed;
|
||||
int is_s_pressed;
|
||||
int is_d_pressed;
|
||||
};
|
||||
|
||||
typedef struct s_player
|
||||
{
|
||||
float x;
|
||||
float y;
|
||||
double yaw;
|
||||
int health;
|
||||
float x;
|
||||
float y;
|
||||
double yaw;
|
||||
int health;
|
||||
struct s_playermove playermove;
|
||||
} t_player;
|
||||
|
||||
typedef struct s_cub3d_data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue