Changeset 100:3eafceff6293


Ignore:
Timestamp:
Apr 4, 2011, 5:20:05 PM (9 years ago)
Author:
Simon Cross <hodgestar@…>
Branch:
default
Message:

Have monsters also collide with players as an interim solution while I relax, eat dinner and think about the best way to use the new collision layers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • skaapsteker/sprites/player.py

    r97 r100  
    44import os
    55
    6 from skaapsteker.sprites.base import TILE_SIZE, PC_LAYER
     6from skaapsteker.sprites.base import TILE_SIZE, PC_LAYER, MONSTER_LAYER
    77from skaapsteker.physics import Sprite
    88from skaapsteker.constants import Layers
     
    1313
    1414    collision_layer = PC_LAYER
     15    collides_with = set([MONSTER_LAYER])
    1516
    1617    def __init__(self):
Note: See TracChangeset for help on using the changeset viewer.