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:
parent
75ffb49a53
commit
d6c09e111d
6 changed files with 25 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue