source: nagslang/__main__.py @ 401:f7ee43c0e5c9

Last change on this file since 401:f7ee43c0e5c9 was 269:9fcdb106424a, checked in by Simon Cross <hodgestar@…>, 7 years ago

Add first draft of sound support.

File size: 580 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
9from nagslang.sound import sound
10
11
12def main():
13    '''Launch the nagslang'''
14    parse_args(sys.argv)
15    pygame.display.init()
16    pygame.font.init()
17    pygame.display.set_mode(SCREEN, pgl.SWSURFACE | pgl.RESIZABLE)
18    #pygame.display.set_icon(load_image(...))
19    pygame.display.set_caption('Nagslang')
20    sound.init()
21
22    screen = pygame.display.get_surface()
23    engine = Engine(screen)
24    engine.run()
Note: See TracBrowser for help on using the repository browser.