Esempio n. 1
0
 def __init__(self, t):
     self.imagerepo = [pygame.image.load(paths.getImagePath('apple.png'))]
     Entity.__init__(self)
     self.target = t
     self.targinv = t.inventory
     self.invpos = -665
     self.invlock = 0
Esempio n. 2
0
 def __init__(self,t):
     self.imagerepo=[pygame.image.load(paths.getImagePath('apple.png'))]
     Entity.__init__(self)
     self.target = t
     self.targinv=t.inventory
     self.invpos = -665
     self.invlock = 0
Esempio n. 3
0
    def initialize(self):
        """Called the first time the game is changed to this state
           during the applications lifecycle."""

        # Load State Assets
        self.player_anim = AnimationSet(paths.getImagePath("player_14.png"), (16, 24))
        self.player_anim.addAnim("walk_down", 0, 3)
        self.player_anim.addAnim("walk_right", 4, 7)
        self.player_anim.addAnim("walk_left", 8, 11)
        self.player_anim.addAnim("walk_up", 12, 15)
        self.player_anim.addAnim("idle", 16, 19)#for npc right now

        self.player = Player(Point(64, 64), self.player_anim)
        self.player.give(items.Food(self.player,"apple",self.player.inventory),22)
        self.player.take("apple",3)
        self.test = Companion(Point(120, 120), self.player_anim)
        self.hud = Hud(self.player)
Esempio n. 4
0
 def initialize(self):
     """Called the first time the game is changed to this state
        during the applications lifecycle."""
     self.menuimg = pygame.image.load(paths.getImagePath('creds.png'))
Esempio n. 5
0
 def initialize(self):
     """Called the first time the game is changed to this state
        during the applications lifecycle."""
     self.menuimg=pygame.image.load(paths.getImagePath('creds.png'))