Mercurial > skaapsteker
comparison skaapsteker/sprites/player.py @ 439:400d68993977
Become uninvisible when interacting when actionables.
author | Simon Cross <hodgestar@gmail.com> |
---|---|
date | Sat, 09 Apr 2011 19:28:50 +0200 |
parents | 8ee16cec0f9f |
children | ae0c67788f96 |
comparison
equal
deleted
inserted
replaced
438:8ee16cec0f9f | 439:400d68993977 |
---|---|
334 self.on_solid = False | 334 self.on_solid = False |
335 | 335 |
336 def action_down(self): | 336 def action_down(self): |
337 if self.flying: | 337 if self.flying: |
338 return | 338 return |
339 #self.deltav((0.0, self.terminal_velocity[1] / 2.0)) | |
340 elif self._touching_actionables: | 339 elif self._touching_actionables: |
340 self.invisible = 0 | |
341 self._touching_actionables[0].player_action(self) | 341 self._touching_actionables[0].player_action(self) |
342 elif self._me.item is not None and self.on_solid: | 342 elif self._me.item is not None and self.on_solid: |
343 self.drop_item() | 343 self.drop_item() |
344 | 344 |
345 def _bite_attack(self): | 345 def _bite_attack(self): |