Advertisement
mattrix

Untitled

Aug 5th, 2018
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.42 KB | None | 0 0
  1. class Bullet(object)
  2.     acceleration = (0,0)
  3.  
  4.     def start(position, direction):
  5.         pass
  6.    
  7. class Missile(Bullet):
  8.     def start(position, direction, target):
  9.         self.target = target
  10.         super(Missile, self).start(position, direction)
  11.  
  12.     def seek(self):
  13.         pass
  14.  
  15.     def _process(self, delta):
  16.         self.acceleration = seek()
  17.         # etc etc
  18.         super(Missile, self)._process(delta)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement