Changeset 10:f7a0d6fd9f00 for nagslang


Ignore:
Timestamp:
09/01/13 11:56:40 (8 years ago)
Author:
Stefano Rivera <stefano@…>
Branch:
default
Phase:
public
Message:

Some startup code

Location:
nagslang
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/__main__.py

    r0 r10  
     1import sys
     2
     3import pygame
     4import pygame.locals as pgl
     5
     6from nagslang.options import parse_args
     7from nagslang.constants import SCREEN
     8
    19
    210def main():
    3     """ your app starts here
    4     """
     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 TracChangeset for help on using the changeset viewer.