We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d207cb2 commit bb19f5cCopy full SHA for bb19f5c
arcade-a-primer/arcade_game.py
@@ -210,7 +210,7 @@ def on_update(self, delta_time: float):
210
return
211
212
# Did we hit anything? If so, end the game
213
- if len(self.player.collides_with_list(self.enemies_list)) > 0:
+ if self.player.collides_with_list(self.enemies_list):
214
self.collided = True
215
self.collision_timer = 0.0
216
arcade.play_sound(self.collision_sound)
0 commit comments