Changeset 10:f7a0d6fd9f00


Ignore:
Timestamp:
Sep 1, 2013, 11:56:40 AM (7 years ago)
Author:
Stefano Rivera <stefano@…>
Branch:
default
Message:

Some startup code

Files:
2 added
2 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')
  • run_game.py

    • Property exe set to *
    r0 r10  
     1#!/usr/bin/env python
     2
    13import nagslang.__main__
    24if __name__ == "__main__":
Note: See TracChangeset for help on using the changeset viewer.