From: lbcmk <30442978+lbcmk@users.noreply.github.com> Date: Mon, 11 Jul 2022 17:53:57 +0000 (-0400) Subject: Dialogue Changes X-Git-Url: http://git.skullheadx.com/nixos/static/gitweb.css?a=commitdiff_plain;h=113c29d98a7e93330092c1b5812298fdbe4c1cf8;p=Pygame-Jam.git Dialogue Changes --- diff --git a/Game.py b/Game.py index b2cf32a..b6f5fb4 100644 --- a/Game.py +++ b/Game.py @@ -80,10 +80,8 @@ class Game: surf.blit(sky,(0,0)) if (self.level == 1): - self.dialogue.text = "enemy dialogue" - self.dialogue.draw(surf, self.enemies[0]) - self.dialogue.text = "player dialogue" - self.dialogue.draw(surf, self.player) + self.dialogue.draw(surf, self.enemies[0], "enemy dialogue") + self.dialogue.draw(surf, self.player, "player dialogue") try: self.Transition.draw(surf, self.player.position, self.portal_position) diff --git a/UI/Dialogue.py b/UI/Dialogue.py index 6d6d2a5..dbaf1be 100644 --- a/UI/Dialogue.py +++ b/UI/Dialogue.py @@ -17,11 +17,11 @@ class DialogueUI: def update(self): return; - def draw(self, surf, agent): + def draw(self, surf, agent, text): X = get_display_point(agent.position)[0] + agent.width / 2 Y = get_display_point(agent.position)[1] - + self.text = text self.createDialogue() for i in range(len(self.drawText)):