source: nagslang/__main__.py@ 18:9ecb1d222ee0

Last change on this file since 18:9ecb1d222ee0 was 15:980339c28b42, checked in by Simon Cross <hodgestar@…>, 8 years ago

Add start of engine / event dispatcher.

File size: 514 bytes
Line 
1import sys
2
3import pygame
4import pygame.locals as pgl
5
6from nagslang.options import parse_args
7from nagslang.constants import SCREEN
8from nagslang.engine import Engine
9
10
11def main():
12 '''Launch the nagslang'''
13 parse_args(sys.argv)
14 pygame.display.init()
15 pygame.font.init()
16 pygame.display.set_mode(SCREEN, pgl.SWSURFACE)
17 #pygame.display.set_icon(load_image(...))
18 pygame.display.set_caption('Nagslang')
19
20 screen = pygame.display.get_surface()
21 engine = Engine(screen)
22 engine.run()
Note: See TracBrowser for help on using the repository browser.