Einrichtung des Git-Repositorys

This commit is contained in:
alstergym
2026-09-09 09:52:59 +02:00
parent aa6f137533
commit b2d86246cc
19 changed files with 177 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
import copy
import pygame
class MeinSpiel:
bilder = ["Bilder/Grass.jpg","Bilder/Hase.jpg", "Bilder/wood-table-texture-background.jpg", "Bilder/spielfeld-verbindung-schnur-klein.png"]
spielfeld = []
def __init__(self, felderX, felderY):
for x in range(felderX):
self.spielfeld.append([])
for y in range(felderY):
self.spielfeld[x].append(2)
#pass
def anfangsKonfiguration(self):
self.spielfeld[5][6] = 1
self.spielfeld[2][1]= 2
self.spielfeld[3][1] = 3
def tasteGedrueckt(self, taste):
print("taste gedrückt")
# def renderText(self, text: str, x: int, y: int, color: tuple):
# font = pygame.font.SysFont("David CLM", 74)
# textSurface = font.render(text, True, color)
# self.spielfeld[x][y] = textSurface # <-- hier ist noch ein Problem