Skip to content
Snippets Groups Projects
Commit 8da82ac7 authored by Kirill Schmidt's avatar Kirill Schmidt
Browse files

Add collision

parent e3947ff0
No related branches found
No related tags found
No related merge requests found
......@@ -153,7 +153,13 @@ class Game(arcade.Window):
SCREEN_WIDTH + self.view_left,
self.view_bottom,
SCREEN_HEIGHT + self.view_bottom)
# Collision checking
if arcade.check_for_collision_with_list(self.player_sprite, self.asteroid_list):
self.all_sprites_list.remove(self.player_sprite)
# if arcade.check_for_collision_with_list(self.shoot_list, self.asteroid_sprite) == True:
# self.asteroid_sprite.remove_from_sprite_lists()
def on_draw(self):
arcade.start_render()
self.all_sprites_list.draw()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment