source: nagslang/__main__.py @ 235:831e4f6b3d18

Last change on this file since 235:831e4f6b3d18 was 85:c56eeaabd850, checked in by Neil Muller <drnlmuller@…>, 7 years ago

Make the window resizable

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