Cleaned up how the camera is configured so that it can be easily queried in other parts like the autowalker.

This commit is contained in:
Zed A. Shaw 2025-08-25 23:23:05 -04:00
parent b4569622a0
commit 4a2d8770d9
4 changed files with 14 additions and 14 deletions

View file

@ -27,6 +27,7 @@ struct Raycaster {
sf::Texture $view_texture;
sf::Sprite $view_sprite;
Point aiming_at{0,0};
Point camera_at{0,0};
CameraLOL $camera;
std::unique_ptr<RGBA[]> $pixels = nullptr;
@ -74,5 +75,5 @@ struct Raycaster {
void abort_plan();
bool is_target(DinkyECS::Entity entity);
Point camera_target();
void update_camera_aiming();
};