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
# 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: