Ignore:
Timestamp:
09/06/13 18:12:07 (8 years ago)
Author:
Neil Muller <drnlmuller@…>
Branch:
default
Phase:
public
Rebase:
34313438353234386265653530386664656564353733623661353035316431333963333965623435
Message:

Transparent moonlight

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/game_object.py

    r359 r362  
    1111    COLLISION_TYPE_DOOR, COLLISION_TYPE_FURNITURE, COLLISION_TYPE_PROJECTILE,
    1212    COLLISION_TYPE_SWITCH, COLLISION_TYPE_WEREWOLF_ATTACK,
    13     SWITCH_PUSHERS, ZORDER_FLOOR, ZORDER_LOW)
     13    SWITCH_PUSHERS, ZORDER_FLOOR, ZORDER_LOW, ZORDER_HIGH)
    1414from nagslang.resources import resources
    1515from nagslang.events import DoorEvent
     
    499499        body = make_body(1, pymunk.inf,
    500500                         (pos[0] + (vector.length * math.cos(vector.angle)),
    501                          pos[1] + (vector.length * math.sin(vector.angle))))
     501                          pos[1] + (vector.length * math.sin(vector.angle))))
    502502        body.angle = vector.angle
    503503        self.shape = pymunk.Circle(body, 30)
     
    523523    damage = None
    524524    tile = None
     525    tile_alpha = 255
    525526    # How often to hit the player
    526527    rate = 5
     
    538539            SingleShapePhysicser(space, self.shape),
    539540            render.TiledRenderer(outline,
    540                                  resources.get_image('tiles', self.tile)))
     541                                 resources.get_image('tiles', self.tile),
     542                                 self.tile_alpha))
    541543
    542544    def collide_with_protagonist(self, protagonist):
     
    568570    tile = 'moonlight.png'
    569571    rate = 0
     572    tile_alpha = 150
     573    zorder = ZORDER_HIGH
    570574
    571575    def apply_effect(self, protagonist):
Note: See TracChangeset for help on using the changeset viewer.