Fixed Player2 gamecrash on fire
This commit is contained in:
1
test.py
1
test.py
@@ -88,6 +88,7 @@ while(gamestate):
|
||||
for key, projectile in projectiles.items():
|
||||
projectile:GameObject.Projectile
|
||||
#Check if player hits an enemy delete it
|
||||
print(projectile.rect)
|
||||
for enemy in spawned_enemys:
|
||||
enemy:GameObject.Enemy
|
||||
if(pygame.Rect.colliderect(projectile.rect, enemy.rect)):
|
||||
|
||||
Reference in New Issue
Block a user