feat: setup camera plane
This commit is contained in:
parent
5bac9125d6
commit
840accea52
@ -34,6 +34,7 @@ typedef struct s_player
|
||||
{
|
||||
t_vec2 pos;
|
||||
t_vec2 dir;
|
||||
t_vec2 camera;
|
||||
float speed;
|
||||
float fov;
|
||||
} t_player;
|
||||
|
||||
@ -23,6 +23,8 @@ int player_create(t_game **game)
|
||||
player->pos.y = 2 * TILE_SIZE;
|
||||
player->dir.x = 1;
|
||||
player->dir.y = 0;
|
||||
player->camera.x = 0;
|
||||
player->camera.y = 0.66f;
|
||||
player->speed = 80.f;
|
||||
player->fov = 90.f;
|
||||
(*game)->player = player;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user