pufferfish handling stub

This commit is contained in:
wm-c 2021-04-26 14:03:36 -04:00
parent cf64fb4851
commit e8a00b9907

View File

@ -253,6 +253,17 @@ impl Screen for InGameScreen {
}
// Iterates over pufferfish
for pufferfish in game_core.world.pufferfish.iter_mut(){
pufferfish.handle_logic(&mut game_core.player, dt);
pufferfish.render(&mut context_2d, &mut game_core.player, &mut game_core.resources, dt);
}
// Removes whirlpools set for removal
game_core.world.whirlpool.retain(|x| !x.should_remove());