diff --git a/background.py b/background.py index 8c3839c..fccaaa5 100644 --- a/background.py +++ b/background.py @@ -6,7 +6,7 @@ WHITE = (255, 255, 255) class Erz(pygame.sprite.Sprite): def __init__(self): super().__init__() - self.image = pygame.image.load("Erzmine.png").convert_alpha() + self.image = pygame.image.load("resources/Erzmine.png").convert_alpha() self.rect = self.image.get_rect() self.rect = 330, 20 @@ -21,7 +21,7 @@ class Tank(pygame.sprite.Sprite): def __init__(self): super().__init__() - self.image = pygame.image.load("Tank.png").convert_alpha() + self.image = pygame.image.load("resources/Tank.png").convert_alpha() self.rect = self.image.get_rect() self.rect = 30, 220 @@ -36,7 +36,7 @@ class Ziel(pygame.sprite.Sprite): def __init__(self): super().__init__() - self.image = pygame.image.load("Ziel.png").convert_alpha() + self.image = pygame.image.load("resources/Ziel.png").convert_alpha() self.rect = self.image.get_rect() self.rect = 330, 520 diff --git a/game.py b/game.py index 0a2bcc8..937eb87 100644 --- a/game.py +++ b/game.py @@ -14,7 +14,7 @@ def start(): Tanken = background.Tank() Ziele = background.Ziel() - tile_set = pygame.image.load("roads2W.png").convert_alpha() + tile_set = pygame.image.load("resources/roads2W.png").convert_alpha() # Farben white = (255, 255, 255) diff --git a/helicopter.py b/helicopter.py index f6ebc3a..cb30921 100644 --- a/helicopter.py +++ b/helicopter.py @@ -6,7 +6,7 @@ from fahrzeug import Fahrzeug class Helicopter(Fahrzeug, pygame.sprite.Sprite): def __init__(self, x, y): super().__init__(x, y) - self.image = pygame.image.load("helicopter.jpg").convert_alpha() + self.image = pygame.image.load("resources/helicopter.jpg").convert_alpha() self.image = self.image.subsurface(44, 0, 44, 99) self.rect = self.image.get_rect(center=(x, y)) self.rect.centerx = x diff --git a/player.py b/player.py index 56760ec..b4475af 100644 --- a/player.py +++ b/player.py @@ -4,7 +4,7 @@ from fahrzeug import Fahrzeug class Player(Fahrzeug, pygame.sprite.Sprite): def __init__(self, x, y): super().__init__(x, y) - self.image = pygame.image.load("player.png").convert_alpha() + self.image = pygame.image.load("resources/player.png").convert_alpha() self.rect = self.image.get_rect(center=(x, y)) self.rect.centerx = x self.rect.centery = y diff --git a/Erzmine.png b/resources/Erzmine.png similarity index 100% rename from Erzmine.png rename to resources/Erzmine.png diff --git a/Tank.png b/resources/Tank.png similarity index 100% rename from Tank.png rename to resources/Tank.png diff --git a/Ziel.png b/resources/Ziel.png similarity index 100% rename from Ziel.png rename to resources/Ziel.png diff --git a/helicopter.jpg b/resources/helicopter.jpg similarity index 100% rename from helicopter.jpg rename to resources/helicopter.jpg diff --git a/player.png b/resources/player.png similarity index 100% rename from player.png rename to resources/player.png diff --git a/roads2W.png b/resources/roads2W.png similarity index 100% rename from roads2W.png rename to resources/roads2W.png diff --git a/rotor.py b/rotor.py index c3b80d7..2d048e1 100644 --- a/rotor.py +++ b/rotor.py @@ -5,7 +5,7 @@ from fahrzeug import Fahrzeug class Rotor(Fahrzeug, pygame.sprite.Sprite): def __init__(self, x, y): super().__init__(x, y) - self.image = pygame.image.load("helicopter.jpg").convert_alpha() + self.image = pygame.image.load("resources/helicopter.jpg").convert_alpha() self.image = self.image.subsurface(132, 98, 94, 94) self.rect = self.image.get_rect(center=(x, y)) diff --git a/tilemap.py b/tilemap.py index b867c90..edfb52b 100644 --- a/tilemap.py +++ b/tilemap.py @@ -2,7 +2,7 @@ import pygame class tilemap(pygame.sprite.Sprite): def __init__(self): super().__init__() - self.image = pygame.image.load("roads2w.png").convert_alpha() + self.image = pygame.image.load("resources/roads2W.png").convert_alpha() self.scaled_image = pygame.transform.scale(self.image, (self.image.get_width()*4, self.image.get_height()*4)) self.rect = self.image.get_rect() self.rect = 0, 0