Show
Ignore:
Timestamp:
01/04/07 02:50:21 (5 years ago)
Author:
mg
Message:

Show an animation (expanding bubble) when ships respawn.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/pyspacewar/world.py

    r201 r231  
    552552        self.frags = 0 
    553553        self.dead = False 
     554        self.spawn_time = 0 # the value of world.time when last respawned 
    554555 
    555556    def _set_direction(self, direction): 
     
    660661        self.dead = False 
    661662        self.health = 1.0 
     663        if self.world: 
     664            self.spawn_time = self.world.time 
    662665 
    663666    def launch(self):