Changeset 582:7d8c6e7ffd2b


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

Files:
14 edited

Legend:

Unmodified
Added
Removed
  • data/levels/alientunnel1

    r578 r582  
    100100  name: keycard_yellow
    101101lines: []
     102music: POL-cyber-factory-short.ogg
    102103polygons:
    103104  1:
  • data/levels/alientunnel2

    r558 r582  
    8282- - [1100, 800]
    8383  - [1100, 400]
     84music: POL-cyber-factory-short.ogg
    8485polygons:
    8586  1:
  • data/levels/alientunnel3

    r537 r582  
    7171  name: acid_3_2
    7272lines: []
     73music: POL-cyber-factory-short.ogg
    7374polygons:
    7475  1:
  • data/levels/cargo_bay

    r576 r582  
    106106  classname: Note
    107107lines: []
     108music: POL-cyber-factory-short.ogg
    108109polygons:
    109110  1:
  • data/levels/crew

    r579 r582  
    387387  name: store_note
    388388lines: []
     389music: POL-cyber-factory-short.ogg
    389390polygons:
    390391  1:
  • data/levels/finale

    r553 r582  
    4343  name: acid_4
    4444lines: []
     45music: POL-cyber-factory-short.ogg
    4546polygons:
    4647  1:
  • data/levels/hangar

    r581 r582  
    174174  - [2595, 1700]
    175175  - To the Crew Quarters. Have your key-card ready.
     176  classname: Note
    176177  name: crew_note
    177   classname: Note
    178178- args:
    179179  - [2220, 2466]
     
    212212- - [280, 1161]
    213213  - [280, 1101]
     214music: POL-cyber-factory-short.ogg
    214215polygons:
    215216  1:
  • data/levels/level1

    r558 r582  
    7979- - [950, 480]
    8080  - [950, 680]
     81music: POL-cyber-factory-short.ogg
    8182polygons:
    8283  1:
  • data/levels/level2

    r378 r582  
    4343  name: keycard_red
    4444lines: []
     45music: POL-cyber-factory-short.ogg
    4546polygons:
    4647  1:
  • data/levels/sheep

    r580 r582  
    8181- - [650, 500]
    8282  - [650, 600]
     83music: POL-cyber-factory-short.ogg
    8384polygons:
    8485  1:
  • data/levels/shuttle_1

    r533 r582  
    1313  classname: Note
    1414lines: []
     15music: POL-cyber-factory-short.ogg
    1516polygons:
    1617  1:
  • data/levels/shuttle_2

    r533 r582  
    1313  classname: Note
    1414lines: []
     15music: POL-cyber-factory-short.ogg
    1516polygons:
    1617  1:
  • data/levels/start

    r574 r582  
    8888  name: keyhints
    8989lines: []
     90music: POL-cyber-factory-short.ogg
    9091polygons:
    9192  1:
  • 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.