46 lines
1.1 KiB
Python
46 lines
1.1 KiB
Python
|
import pygame
|
||
|
|
||
|
|
||
|
class Erz(pygame.sprite.Sprite):
|
||
|
def __init__(self):
|
||
|
super().__init__()
|
||
|
self.image = pygame.image.load("Erzmine.jpg").convert_alpha()
|
||
|
self.rect = self.image.get_rect()
|
||
|
self.rect = 330, 20
|
||
|
|
||
|
|
||
|
def draw(self, win):
|
||
|
groesse = pygame.transform.scale(self.image, (100, 100))
|
||
|
win.blit(groesse, self.rect)
|
||
|
|
||
|
|
||
|
|
||
|
class Tank(pygame.sprite.Sprite):
|
||
|
|
||
|
def __init__(self):
|
||
|
super().__init__()
|
||
|
self.image = pygame.image.load("Tank.png").convert_alpha()
|
||
|
self.rect = self.image.get_rect()
|
||
|
self.rect = 30, 220
|
||
|
|
||
|
|
||
|
def draw(self, win):
|
||
|
groesse = pygame.transform.scale(self.image, (100, 100))
|
||
|
win.blit(groesse, self.rect)
|
||
|
|
||
|
|
||
|
|
||
|
class Ziel(pygame.sprite.Sprite):
|
||
|
|
||
|
def __init__(self):
|
||
|
super().__init__()
|
||
|
self.image = pygame.image.load("Ziel.jpg").convert_alpha()
|
||
|
self.rect = self.image.get_rect()
|
||
|
self.rect = 330, 520
|
||
|
|
||
|
|
||
|
def draw(self, win):
|
||
|
groesse = pygame.transform.scale(self.image, (100, 100))
|
||
|
win.blit(groesse, self.rect)
|
||
|
|