From 505ca2dead48d80b15f64f316218502bdc54daea Mon Sep 17 00:00:00 2001 From: Viljami Ilola <+@hix.fi> Date: Fri, 29 Mar 2024 14:53:59 +0200 Subject: Enemies to use update --- src/sliceitoff/game/level.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/sliceitoff/game/level.py') diff --git a/src/sliceitoff/game/level.py b/src/sliceitoff/game/level.py index a711b0d..26df345 100644 --- a/src/sliceitoff/game/level.py +++ b/src/sliceitoff/game/level.py @@ -41,8 +41,7 @@ class Level: def step(self, dt): self.status.update(dt = dt) self.field.update(dt = dt) - self.enemies.update(dt = dt) - self.enemies.hit_walls(self.field.active_sprites()) + self.enemies.update(dt = dt, field_rects = self.field.active_rects() ) if self.level_info.active: self.level_info.update(dt = dt) -- cgit v1.2.3