28.10.2026 Stundenende

This commit is contained in:
Aron Sommer
2026-10-28 11:01:35 +01:00
parent 266f3ae1bc
commit dedc08e9f4
3 changed files with 38 additions and 5 deletions
+3 -2
View File
@@ -5,7 +5,7 @@ from pygame.locals import *
pygame.init()
import time
import random
# Variablen/KONSTANTEN setzen
Breite, Hoehe = 840, 840
@@ -79,7 +79,8 @@ while True:
yVerschiebung = 0
screen.blit(pyGameBilder[figur], (x * Pixel + xVerschiebung, y * Pixel + yVerschiebung))
# print(meinSpiel.zufallswert)
if meinSpiel.wuerfelBildAnzeigen:
if meinSpiel.wuerfelBildAnzeigen == True:
time.sleep(0.01)
screen.blit(pygame.image.load(f"Bilder/wuerfel-{meinSpiel.zufallswert}.png"), (310, 600))
pygame.draw.rect(screen, GRUEN, (290, 770, 200, 60))
screen.blit(pygame.font.Font("Bilder/NunitoSans-VariableFont.ttf", 38).render("WÜRFELN", True, (255, 255, 255)), (300, 775))