Update TODO.
[tabakrolletjie.git] / tabakrolletjie / main.py
1 """ Run tabakrolletjie.
2 """
3
4 import pygame
5 import pygame.locals as pgl
6
7 from .constants import SCREEN_SIZE, TITLE
8 from .engine import Engine
9 from .gamestate import GameState
10 from .scenes.menu import MenuScene
11 from .sound import sound
12
13
14 def main():
15     pygame.display.init()
16     pygame.font.init()
17
18     pygame.display.set_mode(SCREEN_SIZE, pgl.SWSURFACE)
19     pygame.display.set_caption(TITLE)
20     # TODO: set an icon
21     sound.init()
22
23     screen = pygame.display.get_surface()
24     gamestate = GameState()
25     engine = Engine(screen, gamestate)
26     engine.set_scene(MenuScene())
27
28     engine.run()