Some changes...

This commit is contained in:
Christian
2024-08-07 21:21:17 +02:00
parent ba21a28ec9
commit 3cc8160f06
5 changed files with 40 additions and 7 deletions

View File

@@ -1,5 +1,6 @@
import pygame
import Tilemap
import Animation
pygame.init()
@@ -29,10 +30,10 @@ def main():
while running:
# Framerate auf 30 Frames pro Sekunde beschränken.
# Pygame wartet, falls das Programm schneller läuft.
clock.tick(30)
clock.tick(60)
# screen Surface mit Schwarz (RGB = 0, 0, 0) füllen.
screen.fill((0, 0, 0))
screen.fill((198, 209, 255))
# Alle aufgelaufenen Events holen und abarbeiten.
for event in pygame.event.get():