Drawing pacman. /JL
This commit is contained in:
19
pman.py
19
pman.py
@@ -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()
|
||||
|
Reference in New Issue
Block a user