Files
E-To-Linus-Hasenspiel/meinspiel.py
T
2026-10-07 11:05:21 +02:00

23 lines
539 B
Python

import copy
import pygame
Startpositionx = (2)
Startpositiony = (2)
class MeinSpiel:
bilder = ["H:\git\E-To-Linus-Hasenspiel\Bilder/steinboden.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)