This commit is contained in:
alstergym
2026-09-22 12:13:22 +02:00
parent 529dd4e958
commit 4a623ea019
+4 -2
View File
@@ -21,7 +21,9 @@ class MeinSpiel:
print("UP")
self.spielfeld[0][0] = 1
def tasteGedruecht(self, taste):
kontrollfeld=copy.deepcopy(self.spielfeld)
def tasteGedrueckt(self, taste):
if pygame.K_w == taste:
for x in range(len(self.spielfeld)):
@@ -34,4 +36,4 @@ class MeinSpiel:
for y in range(len(self.spielfeld[x])):
if self.spielfeld[x][y] == 2:
self.spielfeld[x-1][y] = 2
self.spielfeld[x][y] = 3
self.spielfeld[x][y] = 3