A retro style homage to 80s dungeon crawlers hand crafted in C++.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
raycaster/camera.hpp

23 lines
521 B

#pragma once
#include "raycaster.hpp"
struct CameraLOL {
double t = 0.0;
double moveSpeed = 0.1;
double rotSpeed = 0.06;
double targetX = 0.0;
double targetY = 0.0;
double targetDirX = 0.0;
double targetDirY = 0.0;
double targetPlaneX = 0.0;
double targetPlaneY = 0.0;
Point plan_move(Raycaster &rayview, int dir, bool strafe);
void plan_rotate(Raycaster &rayview, int dir);
bool play_rotate(Raycaster &rayview);
bool play_move(Raycaster &rayview);
void abort_plan(Raycaster &rayview);
};