Changeset 208:3d54fe7a2998 for nagslang
- Timestamp:
- Sep 3, 2013, 9:42:51 PM (7 years ago)
- Branch:
- default
- rebase_source:
- 114036dbed7f2754a8ce0e88ade7691d0179d29d
- Location:
- nagslang
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
nagslang/enemies.py
r207 r208 43 43 44 44 def _setup_physics(self, space, position): 45 self._body = make_body( 5, pymunk.inf, position, 0.8)45 self._body = make_body(10, pymunk.inf, position, 0.8) 46 46 47 47 self._shape = pymunk.Circle(self._body, 30) 48 48 49 49 self._shape.elasticity = 1.0 50 self._shape.friction = 10.050 self._shape.friction = 0.05 51 51 self._shape.collision_type = COLLISION_TYPE_ENEMY 52 52 self._physicser = SingleShapePhysicser(space, self._shape) -
nagslang/game_object.py
r207 r208 217 217 self.shape = pymunk.Poly( 218 218 body, [(-20, -20), (20, -20), (20, 20), (-20, 20)]) 219 self.shape.friction = 0.5 219 220 self.shape.collision_type = COLLISION_TYPE_BOX 220 221 super(Box, self).__init__( -
nagslang/protagonist.py
r207 r208 43 43 self.WOLF_FORM: pymunk.Circle(self._body, 30), 44 44 } 45 self._shapes[self.HUMAN_FORM].friction = 1.0 46 self._shapes[self.WOLF_FORM].friction = 0.05 45 47 self._physicsers = {} 46 48 for form, shape in self._shapes.iteritems(): 47 49 shape.elasticity = 1.0 48 shape.friction = 10.049 50 shape.collision_type = COLLISION_TYPE_PLAYER 50 51 self._physicsers[form] = SingleShapePhysicser(space, shape)
Note: See TracChangeset
for help on using the changeset viewer.