1 # Player and Player-like objects
3 from erdslangetjie.data import load_image
6 class PlayerSprite(object):
12 def move(self, direction):
13 self.pos = (self.pos[0] + direction[0], self.pos[1] + direction[1])
19 class ThePlayer(PlayerSprite):
22 super(ThePlayer, self).__init__()
23 self.sprite = load_image('sprites/player.png')
26 class Nemesis(PlayerSprite):
29 super(ThePlayer, self).__init__()
30 self.sprite = load_image('sprites/nemesis.png')