diff options
author | Viljami Ilola <+@hix.fi> | 2024-03-29 14:53:59 +0200 |
---|---|---|
committer | Viljami Ilola <+@hix.fi> | 2024-03-29 14:53:59 +0200 |
commit | 505ca2dead48d80b15f64f316218502bdc54daea (patch) | |
tree | 39f6e1e730b01472c72a412c693472e36d21180b /src/sliceitoff/game | |
parent | c75093304fb09dcdee61ea36169074828b1e210d (diff) |
Enemies to use update
Diffstat (limited to 'src/sliceitoff/game')
-rw-r--r-- | src/sliceitoff/game/level.py | 3 |
1 files changed, 1 insertions, 2 deletions
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) |