Changeset 15:980339c28b42


Ignore:
Timestamp:
Sep 1, 2013, 12:19:55 PM (7 years ago)
Author:
Simon Cross <hodgestar@…>
Branch:
default
Message:

Add start of engine / event dispatcher.

Location:
nagslang
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • nagslang/__main__.py

    r10 r15  
    66from nagslang.options import parse_args
    77from nagslang.constants import SCREEN
     8from nagslang.engine import Engine
    89
    910
     
    1617    #pygame.display.set_icon(load_image(...))
    1718    pygame.display.set_caption('Nagslang')
     19
     20    screen = pygame.display.get_surface()
     21    engine = Engine(screen)
     22    engine.run()
  • nagslang/constants.py

    r10 r15  
    11SCREEN = (800, 600)
     2FPS = 40
Note: See TracChangeset for help on using the changeset viewer.