-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
32 lines (26 loc) · 744 Bytes
/
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
import pygame
import numpy as np
from classes.default import defaultStatus
from screens.game import Game
from screens.start import Start
from screens.death import Death
from screens.instructions import Instructions
pygame.init()
size = np.array([1200,720])
screen = pygame.display.set_mode((size))
clock = pygame.time.Clock()
FPS = 120 # Frames per Second
# Definicoes para basicas para o jogo
status = defaultStatus({})
# Hub para as telas
window = {
"start": Start(status,screen),
"instructions": Instructions(status, screen),
"game": Game(status,screen),
"death": Death(status,screen)
}
while status["running"]:
clock.tick(FPS)
window[status["current"]].run(window)
pygame.display.update()
pygame.quit()