29.09.26
This commit is contained in:
@@ -28,6 +28,19 @@ class MeinSpiel:
|
||||
# fenster.geometry("600x600")
|
||||
|
||||
# spielfeld= tk.Canvas(fenster, width=600 height=600, bgt="lightblue")
|
||||
if pygame.K_w == taste:
|
||||
for x in range (len(self.spielfeld)):
|
||||
for y in range (len(self.spielfeld[x])):
|
||||
if self.spielfeld [x][y] == 3 :
|
||||
self.spielfeld [x][y-1] = 3
|
||||
self.spielfeld [x][y] = 2
|
||||
if pygame.K_a == taste:
|
||||
for x in range (len(self.spielfeld)):
|
||||
for y in range (len(self.spielfeld[x])):
|
||||
if self.spielfeld [x][y] == 3 :
|
||||
self.spielfeld [x][-1] = 3
|
||||
self.spielfeld [x][y] = 2
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user