Changeset 301:893f148a2f13 for nagslang


Ignore:
Timestamp:
Sep 5, 2013, 9:56:25 PM (7 years ago)
Author:
Jeremy Thurgood <firxen@…>
Branch:
default
Message:

Walls need WALL_COLLISION_TYPE.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/screens/area.py

    r293 r301  
    55import pymunk.pygame_util
    66
    7 from nagslang.constants import COLLISION_TYPE_PLAYER, CALLBACK_COLLIDERS
     7from nagslang.constants import (
     8    COLLISION_TYPE_WALL, COLLISION_TYPE_PLAYER, CALLBACK_COLLIDERS)
    89from nagslang.events import ScreenChange, DoorEvent, FireEvent
    910from nagslang.level import Level
     
    109110            for next_corner in corners:
    110111                wall = pymunk.Segment(body, corner, next_corner, 5)
     112                wall.collision_type = COLLISION_TYPE_WALL
    111113                wall.elasticity = 1.0
    112114                self.walls.append(wall)
Note: See TracChangeset for help on using the changeset viewer.