Changeset 11:249814efa91b


Ignore:
Timestamp:
Apr 3, 2011, 1:59:16 PM (9 years ago)
Author:
Simon Cross <hodgestar@…>
Branch:
default
Message:

Create game engine. Enable quitting.

Location:
skaapsteker
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • skaapsteker/__main__.py

    r8 r11  
    33
    44from constants import SCREEN, FREQ, BITSIZE, CHANNELS, BUFFER, DEBUG
     5from engine import Engine
    56
    67import pygame
     
    910import sys
    1011import optparse
    11 
    1212
    1313
     
    5555    pygame.display.flip()
    5656
    57     raw_input('?')
     57    engine = Engine()
     58    try:
     59        engine.run()
     60    except KeyboardInterrupt:
     61        pass
    5862
    59     #shell = MainShell(display)
    60     #try:
    61     #    shell.run()
    62     #except KeyboardInterrupt:
    63     #    pass
    64 
     63 
    6564if __name__ == '__main__':
    6665    main()
Note: See TracChangeset for help on using the changeset viewer.