Easy fix, just set aiming_at in the camera position. Closes #57.

This commit is contained in:
Zed A. Shaw 2025-07-05 12:04:07 -04:00
parent a26f0b0c0a
commit 1baf90a776
2 changed files with 4 additions and 0 deletions

View file

@ -82,6 +82,9 @@ void Raycaster::position_camera(float player_x, float player_y) {
$dir_y = 0;
$plane_x = 0;
$plane_y = 0.66;
// BUG: make this a function?
aiming_at = { size_t($pos_x + $dir_x), size_t($pos_y + $dir_y) };
}
void Raycaster::draw_pixel_buffer() {