repl.it
@21natzil/

Tick or Treat

Pygame

No description

fork
loading
Files
  • main.py
  • door.jpg
  • nohup.out
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import pygame

pygame.init()
screen = pygame.display.set_mode((1000,1000))
running = True
# door_img = pygame.image.load("./door.jpg")
# door_img.convert()
# door_rect = door_img.get_rect()

WHITE = (255, 255, 255)

def setup(screen):
  pass

def main(screen):
  global running

  for event in pygame.event.get():
    if event == pygame.QUIT:
      running = False

  # screen.fill(WHITE)
  # screen.blit(door_img, door_rect)


def close(screen):
  pygame.quit()


if __name__ == '__main__':
  setup(screen)
  while running:
    main(screen)
  close(screen)