source: nagslang/__main__.py@ 10:f7a0d6fd9f00

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

Some startup code

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