09.09.2026
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
import copy
|
||||
import pygame
|
||||
|
||||
Startpositionx = (2)
|
||||
Startpositiony = (2)
|
||||
|
||||
class MeinSpiel:
|
||||
bilder = ["Bilder/steinboden.png","Bilder/Grass.jpg","Bilder/Ritter2.png"]
|
||||
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[5][5] = 0
|
||||
|
||||
def tasteGedrueckt(self, taste):
|
||||
if pygame.K_w == taste:
|
||||
print(taste)
|
||||
|
||||
Reference in New Issue
Block a user