Assets freigegeben

This commit is contained in:
Benjamin 2026-10-09 17:05:48 +02:00
parent 8a5f4391b1
commit 30c3b2fe8d
10 changed files with 6 additions and 4 deletions

1
.gitignore vendored
View file

@ -221,4 +221,3 @@ __marimo__/
rechner.py rechner.py
data/

BIN
data/textures/Assets/A4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

BIN
data/textures/Assets/A5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 143 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 824 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

View file

@ -229,12 +229,16 @@ class Taschenlampe:
surface.blit(self.light_surface, (0, 0)) surface.blit(self.light_surface, (0, 0))
light_mask = pygame.mask.from_surface(self.light_surface) light_mask = pygame.mask.from_surface(self.light_surface)
if light_mask.overlap(self.game.test_item_mask, self.game.test_item.rect.topleft) is not None: if (
light_mask.overlap(
self.game.test_item_mask, self.game.test_item.rect.topleft
)
is not None
):
self.render_item = True self.render_item = True
else: else:
self.render_item = False self.render_item = False
# Item zeichnen, wenn Masken sich überlappen # Item zeichnen, wenn Masken sich überlappen

View file

@ -1,4 +1,3 @@
import math
import pygame import pygame