Add displaying of a simple window.
[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 .scenes.menu import MenuScene
10
11
12 def main():
13     pygame.display.init()
14     pygame.font.init()
15
16     pygame.display.set_mode(SCREEN_SIZE, pgl.SWSURFACE)
17     pygame.display.set_caption(TITLE)
18     # TODO: set an icon
19
20     screen = pygame.display.get_surface()
21     scene = MenuScene()
22     engine = Engine(screen, scene)
23
24     engine.run()