Changeset 38:38d7670a469a


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

Enable setting the opening scene when launching.

Location:
skaapsteker
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • skaapsteker/__main__.py

    r20 r38  
    4848    pygame.display.set_caption("Nine Tales")
    4949
     50    level = getattr(opts, 'scene', None)
     51    level = "level1" if level is None else level
     52
    5053    engine = Engine()
    51     engine.change_scene(LevelScene("level1"))
     54    engine.change_scene(LevelScene(level))
    5255    try:
    5356        engine.run()
  • skaapsteker/constants.py

    r6 r38  
    88BUFFER = 1024  # audio buffer size in no. of samples
    99
    10 DEBUG = False
     10DEBUG = True
Note: See TracChangeset for help on using the changeset viewer.