Added Spaceship image for example

This commit is contained in:
Christian
2024-08-10 14:56:13 +02:00
parent 44a9fde4ac
commit 3ac3d2f9e7
2 changed files with 2 additions and 8 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 KiB

10
test.py
View File

@@ -70,16 +70,8 @@ while(gamestate):
pos_x = mouse_pos[0]
pos_y = mouse_pos[1]
#Rendere alle Objecte in objects Liste
player.firecontrol(screen)
for projectiles in GameObject.Projectile.shots:
projectiles:dict
for key, projectile in projectiles.items():
@@ -92,6 +84,8 @@ while(gamestate):
player.points += 10
index = spawned_enemys.index(enemy)
del spawned_enemys[index]
index = GameObject.Projectile.shots.index(projectiles)
del GameObject.Projectile.shots[index]
print(F"Player-Points: {player.points}")
if(pygame.Rect.colliderect(projectile.rect, player.rect)):
print("Game-OVer")