Einrichtung des Git-Repositorys
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user