From 8345097e10726e91222a0a63cf06de24723d32a5 Mon Sep 17 00:00:00 2001 From: "Zed A. Shaw" Date: Sun, 2 Nov 2025 22:49:50 -0500 Subject: [PATCH] Moving some stuff so I can do a camera system using the new sf::View animation stuff. --- boss/ui.cpp | 1 + camera.hpp | 12 ------------ raycaster.hpp | 13 ++++++++++++- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/boss/ui.cpp b/boss/ui.cpp index 27abee8..865c4b7 100644 --- a/boss/ui.cpp +++ b/boss/ui.cpp @@ -30,6 +30,7 @@ namespace boss { "[*(200,300)stats]" "[_]" "[_]"); + auto stats = $actions.entity("stats"); $actions.set(stats, {}); $actions.set(stats, {L"stats"}); diff --git a/camera.hpp b/camera.hpp index 9bd8edc..6f70f09 100644 --- a/camera.hpp +++ b/camera.hpp @@ -1,13 +1 @@ #pragma once - -struct CameraLOL { - double t = 0.0; - double move_speed = 0.1; - double rot_speed = 0.06; - double target_x = 0.0; - double target_y = 0.0; - double target_dir_x = 0.0; - double target_dir_y = 0.0; - double target_plane_x = 0.0; - double target_plane_y = 0.0; -}; diff --git a/raycaster.hpp b/raycaster.hpp index 1ab5a62..d6043fa 100644 --- a/raycaster.hpp +++ b/raycaster.hpp @@ -5,11 +5,22 @@ #include "spatialmap.hpp" #include "game_level.hpp" #include "textures.hpp" -#include "camera.hpp" using matrix::Matrix; using RGBA = uint32_t; +struct CameraLOL { + double t = 0.0; + double move_speed = 0.1; + double rot_speed = 0.06; + double target_x = 0.0; + double target_y = 0.0; + double target_dir_x = 0.0; + double target_dir_y = 0.0; + double target_plane_x = 0.0; + double target_plane_y = 0.0; +}; + struct Raycaster { int $pitch=0; sf::Clock $clock;