source: nagslang/__main__.py@ 293:47226c661ae2

Last change on this file since 293:47226c661ae2 was 269:9fcdb106424a, checked in by Simon Cross <hodgestar@…>, 8 years ago

Add first draft of sound support.

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