This commit is contained in:
alstergym
2026-09-29 12:10:28 +02:00
parent 94afe276bd
commit 1fc9843647
3 changed files with 35 additions and 4 deletions
+6 -2
View File
@@ -4,7 +4,6 @@ import pygame
class MeinSpiel:
bilder = ["Bilder/Grass.jpg","Bilder/Hase.jpg","Bilder/Fuchs3.png"]
spielfeld = []
def __init__(self, felderX, felderY):
for x in range(felderX):
self.spielfeld.append([])
@@ -39,7 +38,7 @@ class MeinSpiel:
kontrollfeld[x][y] = 0
print("taste gedrückt")
if pygame.K_s == taste:
@@ -81,6 +80,11 @@ class MeinSpiel:
kontrollfeld[x][y] = 0
self.spielfeld = kontrollfeld