Changeset 582:7d8c6e7ffd2b for nagslang


Ignore:
Timestamp:
Sep 7, 2013, 9:04:04 PM (7 years ago)
Author:
Stefano Rivera <stefano@…>
Branch:
default
rebase_source:
aa82e8670912ce20614cb45ab82f4d89524bffc1
Message:

Music in levels

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/level.py

    r488 r582  
    4242        self.world.level_state.setdefault(name, {})
    4343        self.basetile = 'tiles/floor.png'
     44        self.music = None
    4445        self._tile_image = None
    4546        self._surface = None
     
    6465            'polygons': self.polygons,
    6566            'lines': self.lines,
     67            'music': self.music,
    6668            'game_objects': self._game_objects,
    6769            'enemies': self._enemies,
     
    9294        self.x, self.y = data['size']
    9395        self.basetile = data['base_tile']
     96        self.music = data['music']
    9497        for i, points in data['polygons'].iteritems():
    9598            self.polygons[i] = []
Note: See TracChangeset for help on using the changeset viewer.