source: nagslang/__main__.py@ 447:f12eae3dc2e8

Last change on this file since 447:f12eae3dc2e8 was 447:f12eae3dc2e8, checked in by Stefano Rivera <stefano@…>, 8 years ago

Set the name

File size: 587 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(...))
[447]19 pygame.display.set_caption('Werewolf Sonata')
[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.