29.09.26
This commit is contained in:
+6
-2
@@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user