feat: setup camera plane

This commit is contained in:
Quinten 2025-04-22 15:28:07 +02:00
parent 5bac9125d6
commit 840accea52
2 changed files with 3 additions and 0 deletions

View File

@ -34,6 +34,7 @@ typedef struct s_player
{
t_vec2 pos;
t_vec2 dir;
t_vec2 camera;
float speed;
float fov;
} t_player;

View File

@ -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;