Drawing pacman. /JL

This commit is contained in:
Jan Lerking
2025-04-14 09:07:52 +02:00
parent 63b0d702ff
commit 4f8ffe3db7
3 changed files with 49 additions and 14 deletions

19
pman.py
View File

@@ -1,8 +1,25 @@
import pygame
from actors.enums import Colors
from actors.pacman import ActorPacman
def main() -> None:
pygame.init()
screen = pygame.display.set_mode((800, 800))
pygame.display.set_caption("Pac-Man")
player = ActorPacman()
running = True
while running:
screen.fill(Colors.Black)
player.draw_pacman()
pygame.display.flip()
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
pygame.quit()
if __name__ == "__main__":
main()