Make a function to access overlay cells Closes #35.
This commit is contained in:
parent
f668ff6b7a
commit
fcd1bc589c
8 changed files with 7 additions and 7 deletions
|
@ -68,7 +68,6 @@ void Raycaster::position_camera(float player_x, float player_y) {
|
|||
|
||||
void Raycaster::draw_pixel_buffer() {
|
||||
view_texture.update(pixels.to_raw_buf(), {(unsigned int)$width, (unsigned int)$height}, {0, 0});
|
||||
// BUG: can I do this once and just update it?
|
||||
$window.draw(view_sprite);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue