Ignore:
Timestamp:
09/07/13 22:25:29 (8 years ago)
Author:
Simon Cross <hodgestar@…>
Branch:
default
Phase:
public
Rebase:
66646464323765613065386334366164653965616264393539303937373632643837363837383233
Message:

Allow music volume to be specified.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/level.py

    r582 r608  
    1313from nagslang.resources import resources
    1414from nagslang.yamlish import load, dump
     15from nagslang.constants import DEFAULT_MUSIC_VOLUME
    1516
    1617POLY_COLORS = {
     
    4344        self.basetile = 'tiles/floor.png'
    4445        self.music = None
     46        self.music_volume = None
    4547        self._tile_image = None
    4648        self._surface = None
     
    6668            'lines': self.lines,
    6769            'music': self.music,
     70            'music_volume': self.music_volume,
    6871            'game_objects': self._game_objects,
    6972            'enemies': self._enemies,
     
    9598        self.basetile = data['base_tile']
    9699        self.music = data['music']
     100        self.music_volume = data.get('music_volume', DEFAULT_MUSIC_VOLUME)
    97101        for i, points in data['polygons'].iteritems():
    98102            self.polygons[i] = []
Note: See TracChangeset for help on using the changeset viewer.