Changeset 20:f81e073fb8f5


Ignore:
Timestamp:
Apr 3, 2011, 3:35:32 PM (9 years ago)
Author:
Jeremy Thurgood <firxen@…>
Branch:
default
Message:

Remove .json suffix from level defs.

Location:
skaapsteker
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • skaapsteker/__main__.py

    r15 r20  
    4949
    5050    engine = Engine()
    51     engine.change_scene(LevelScene("level1.json"))
     51    engine.change_scene(LevelScene("level1"))
    5252    try:
    5353        engine.run()
  • skaapsteker/level.py

    r13 r20  
    3838class Level(object):
    3939    def __init__(self, leveldef):
    40         self.level_data = json.loads(data.load('levels/' + leveldef).read())
     40        self.level_data = json.loads(data.load('levels/' + leveldef + '.json').read())
    4141        self.build_background()
    4242        self.build_tiles()
Note: See TracChangeset for help on using the changeset viewer.