22.09.
This commit is contained in:
+4
-2
@@ -21,7 +21,9 @@ class MeinSpiel:
|
|||||||
print("UP")
|
print("UP")
|
||||||
self.spielfeld[0][0] = 1
|
self.spielfeld[0][0] = 1
|
||||||
|
|
||||||
|
def tasteGedruecht(self, taste):
|
||||||
|
kontrollfeld=copy.deepcopy(self.spielfeld)
|
||||||
|
|
||||||
def tasteGedrueckt(self, taste):
|
def tasteGedrueckt(self, taste):
|
||||||
if pygame.K_w == taste:
|
if pygame.K_w == taste:
|
||||||
for x in range(len(self.spielfeld)):
|
for x in range(len(self.spielfeld)):
|
||||||
@@ -34,4 +36,4 @@ class MeinSpiel:
|
|||||||
for y in range(len(self.spielfeld[x])):
|
for y in range(len(self.spielfeld[x])):
|
||||||
if self.spielfeld[x][y] == 2:
|
if self.spielfeld[x][y] == 2:
|
||||||
self.spielfeld[x-1][y] = 2
|
self.spielfeld[x-1][y] = 2
|
||||||
self.spielfeld[x][y] = 3
|
self.spielfeld[x][y] = 3
|
||||||
Reference in New Issue
Block a user