Compare commits
No commits in common. '4b7b2c2a0fd61ce193f5cc260d2d92b02b7b877d' and '1d31264c31d6e9d601e53722fb085a92e74cc179' have entirely different histories.
4b7b2c2a0f
...
1d31264c31
|
Before Width: | Height: | Size: 2.9 MiB |
|
Before Width: | Height: | Size: 3.1 MiB |
|
Before Width: | Height: | Size: 3.3 MiB |
|
Before Width: | Height: | Size: 2.9 MiB |
|
Before Width: | Height: | Size: 660 KiB After Width: | Height: | Size: 1.4 MiB |
|
Before Width: | Height: | Size: 738 KiB |
|
Before Width: | Height: | Size: 795 KiB After Width: | Height: | Size: 1.4 MiB |
|
Before Width: | Height: | Size: 880 KiB |
|
Before Width: | Height: | Size: 101 KiB |
|
Before Width: | Height: | Size: 121 KiB |
|
Before Width: | Height: | Size: 98 KiB |
|
Before Width: | Height: | Size: 1.9 MiB |
|
Before Width: | Height: | Size: 1.4 MiB |
@ -1,14 +0,0 @@
|
|||||||
import pygame
|
|
||||||
import settings
|
|
||||||
|
|
||||||
class Obstacle:
|
|
||||||
def __init__(self, x, y, image_path):
|
|
||||||
self.image = pygame.image.load(image_path).convert_alpha()
|
|
||||||
self.image = pygame.transform.scale(self.image, (300, 150)) # Größe anpassen
|
|
||||||
self.rect = self.image.get_rect(topleft=(x, y))
|
|
||||||
|
|
||||||
def draw(self, screen, camera_offset):
|
|
||||||
screen.blit(self.image, (self.rect.x - camera_offset, self.rect.y))
|
|
||||||
|
|
||||||
def get_rect(self):
|
|
||||||
return self.rect
|
|
||||||