Karp_xD

main.py

Jul 7th, 2022 (edited)
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.60 KB | None | 0 0
  1. import pygame, world, FWC
  2. pygame.init()
  3.  
  4. SCREEN_WIDTH = 800
  5. SCREEN_HEIGHT = 800
  6. win = pygame.display.set_mode((SCREEN_WIDTH, SCREEN_HEIGHT))
  7. pygame.display.set_caption('Death Room')
  8.  
  9. room = world.World()
  10. room.process_world()
  11. run = True
  12. while run:
  13.     win.fill((0, 255, 0))
  14.     for event in pygame.event.get():
  15.         if event.type == pygame.QUIT:
  16.             run = False
  17.     FWC.wall_group.update()
  18.     FWC.ceiling_group.update()
  19.     FWC.floor_group.update()
  20.     FWC.wall_group.draw(win)
  21.     FWC.ceiling_group.draw(win)
  22.     FWC.floor_group.draw(win)
  23.     pygame.display.update()
  24. pygame.quit()
Add Comment
Please, Sign In to add comment