Lots of dumb little edits to sort out what I'm aiming at. I'll next clean out most of this in a refactor.

This commit is contained in:
Zed A. Shaw 2025-04-06 15:32:19 -04:00
parent 1f90367f51
commit c7c48658bd
13 changed files with 60 additions and 29 deletions

View file

@ -2,6 +2,7 @@
#include "raycaster.hpp"
struct CameraLOL {
Raycaster& rayview;
double t = 0.0;
double move_speed = 0.1;
double rot_speed = 0.06;
@ -12,11 +13,15 @@ struct CameraLOL {
double target_plane_x = 0.0;
double target_plane_y = 0.0;
Point plan_move(Raycaster &rayview, int dir, bool strafe);
void plan_rotate(Raycaster &rayview, int dir);
CameraLOL(Raycaster& rv) :
rayview(rv) {}
bool play_rotate(Raycaster &rayview);
bool play_move(Raycaster &rayview);
Point plan_move(int dir, bool strafe);
void plan_rotate(int dir);
void abort_plan(Raycaster& rayview);
bool play_rotate();
bool play_move();
void abort_plan();
Point aimed_at();
};