Raycaster now has wall collision so won't go through walls. Next step is to render all the sprites being places and then implement the Systems.

This commit is contained in:
Zed A. Shaw 2025-02-04 14:13:00 -05:00
parent 75ffb49a53
commit d6c09e111d
6 changed files with 25 additions and 6 deletions

View file

@ -41,3 +41,8 @@ bool CameraLOL::play_move(Raycaster &rayview) {
rayview.$posY = std::lerp(rayview.$posY, targetY, t);
return t >= 1.0;
}
void CameraLOL::abort_plan(Raycaster &rayview) {
targetX = rayview.$posX;
targetY = rayview.$posY;
}