Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Bullet(object)
- acceleration = (0,0)
- def start(position, direction):
- pass
- class Missile(Bullet):
- def start(position, direction, target):
- self.target = target
- super(Missile, self).start(position, direction)
- def seek(self):
- pass
- def _process(self, delta):
- self.acceleration = seek()
- # etc etc
- super(Missile, self)._process(delta)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement