mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-06 13:15:47 -06:00
fix: add visibility check to rendering implementation
This commit is contained in:
@@ -90,6 +90,10 @@ pub fn render_system(
|
||||
|
||||
// Render all entities to the backbuffer
|
||||
for (_, renderable, position) in renderables.iter() {
|
||||
if !renderable.visible {
|
||||
continue;
|
||||
}
|
||||
|
||||
let pos = position.get_pixel_pos(&map.graph);
|
||||
match pos {
|
||||
Ok(pos) => {
|
||||
|
||||
Reference in New Issue
Block a user