Ignore:
Timestamp:
09/05/13 11:15:31 (8 years ago)
Author:
Neil Muller <drnlmuller@…>
Branch:
default
Phase:
public
Message:

Protagonist and enemies should see the world

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/level.py

    r274 r277  
    2323class Level(object):
    2424
    25     def __init__(self, name):
     25    def __init__(self, name, world):
    2626        self.name = name
    2727        # defaults
     
    3030        self.polygons = {}
    3131        self.lines = []
     32        self.world = world
    3233        self.basetile = 'tiles/floor.png'
    3334        self._tile_image = None
     
    101102        cls = getattr(enemies, classname)
    102103        if issubclass(cls, go.GameObject):
    103             gobj = cls(space, *args)
     104            gobj = cls(space, self.world, *args)
    104105            self.drawables.append(gobj)
    105106        else:
Note: See TracChangeset for help on using the changeset viewer.