This commit is contained in:
alstergym
2026-09-09 10:06:51 +02:00
parent ceb3a44f9c
commit e74d04290d
5 changed files with 76 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
import copy
import pygame
class MeinSpiel:
bilder = ["Bilder/Grass.jpg","Bilder/Hase.jpg"]
spielfeld = []
def __init__(self, felderX, felderY):
for x in range(felderX):
self.spielfeld.append([])
for y in range(felderY):
self.spielfeld[x].append(0)
def anfangsKonfiguration(self):
self.spielfeld[0][6] = 1
self.spielfeld[13][13] = 1
def tasteGedrueckt(self, taste):
print("taste gedrückt")