X-Git-Url: https://harishankar.org/repos/?p=butaba-adventures.git;a=blobdiff_plain;f=maingame.py;fp=maingame.py;h=687db49c475af275093071955164b889bfa782a3;hp=32df4ccb43caeb03db6822d6e28fcaebd9d547fe;hb=99f418a54ea2816559c23569fc880812d669644d;hpb=8d8c32fdbd61956ccc4792524b621524d83b0467 diff --git a/maingame.py b/maingame.py index 32df4cc..687db49 100644 --- a/maingame.py +++ b/maingame.py @@ -64,7 +64,8 @@ class MainGame: self.img_bulisa = pygame.image.load (os.path.join ("sprite", "bulisa.png")).convert () self.img_bulisa.set_colorkey (pygame.Color (0, 255, 0)) - # initialize NPC portraits + # initialize portraits + self.img_butaba_portrait = pygame.image.load (os.path.join ("portraits", "butaba.png")).convert () self.img_bulisa_portrait = pygame.image.load (os.path.join ("portraits", "bulisa.png")).convert () # set level data @@ -255,7 +256,7 @@ class MainGame: # interaction with npcs def interact_npc (self, npc): # interact with NPC and get the response ID - resp_id = utility.dialogue_play (self.screen, self.img_dialogue, npc, self.butaba, 0, 90) + resp_id = utility.dialogue_play (self.screen, self.img_dialogue, npc, self.img_butaba_portrait, 0, 90) # if none if resp_id is None: