Line | |
---|
1 | import sys
|
---|
2 |
|
---|
3 | import pygame
|
---|
4 | import pygame.locals as pgl
|
---|
5 |
|
---|
6 | from nagslang.options import parse_args
|
---|
7 | from nagslang.constants import SCREEN
|
---|
8 | from nagslang.engine import Engine
|
---|
9 |
|
---|
10 |
|
---|
11 | def 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)
|
---|
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.