Raycaster now keeps track of the square we are aimed but _does not_ know what is there, that's the job of other things like MainUI. Closes #50.

This commit is contained in:
Zed A. Shaw 2025-06-30 12:36:00 -04:00
parent 0d79ce35b3
commit 8bbafc4d10
4 changed files with 15 additions and 12 deletions

View file

@ -26,7 +26,7 @@ struct Raycaster {
double $plane_y = 0.66;
sf::Texture $view_texture;
sf::Sprite $view_sprite;
DinkyECS::Entity aiming_at = 0;
Point aiming_at{0,0};
CameraLOL $camera;
std::unique_ptr<RGBA[]> $pixels = nullptr;
@ -72,6 +72,6 @@ struct Raycaster {
bool play_move();
void abort_plan();
Point aimed_at();
bool is_target(DinkyECS::Entity entity);
Point camera_target();
};