Added the Conversation Interaction
[butaba-adventures.git] / maingame.py
index 32df4cc..687db49 100644 (file)
@@ -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: