original_docstring:  Perform any updates that should occur after dt seconds 
              from the last update.
          
docstring: Perform any updates that should occur after dt seconds
  from the last update.
docstring_tokens: Perform any updates that should occur after dt seconds from the last update .
code: def step(self, dt):
          """ Perform any updates that should occur after dt seconds 
              from the last update.
          """
          if self.shouldDie:
              self.stop()
              self.kill()
              if self.id in GameSprite.live_instances:
                  del GameSprite.live_instances[self.id];
          else:
              width, height = cocos.director.director.get_window_size()
              dx = self.motion_vector[0] * self.getVelocityMultiplier()
              dy = self.motion_vector[1] * self.getVelocityMultiplier()
              x = self.position[0] + dx * dt
              y = self.position[1] + dy * dt
              
              if x < 0: x += width
              elif x > width: x -= width
              
              if y < 0: y += height
              elif y > height: y -= height
              
              self.position = (x, y)
code_tokens: def step ( self , dt ) : if self . shouldDie : self . stop ( ) self . kill ( ) if self . id in GameSprite . live_instances : del GameSprite . live_instances [ self . id ] ; else : width , height = cocos . director . director . get_window_size ( ) dx = self . motion_vector [ 0 ] * self . getVelocityMultiplier ( ) dy = self . motion_vector [ 1 ] * self . getVelocityMultiplier ( ) x = self . position [ 0 ] + dx * dt y = self . position [ 1 ] + dy * dt if x < 0 : x += width elif x > width : x -= width if y < 0 : y += height elif y > height : y -= height self . position = ( x , y )
short_docstring: Perform any updates that should occur after dt seconds
  from the last update.
short_docstring_tokens: Perform any updates that should occur after dt seconds from the last update .
comment: """ Perform any updates that should occur after dt seconds 
              from the last update.
          """