From: Skullheadx <704277@pdsb.net> Date: Wed, 13 Jul 2022 00:02:13 +0000 (-0400) Subject: a X-Git-Url: http://git.skullheadx.com/sitemap.xml?a=commitdiff_plain;h=f3eee7787e908a6381afeb8073ec4d1e687a0206;p=Pygame-Jam.git a --- diff --git a/Game.py b/Game.py index 3bcae95..054ee59 100644 --- a/Game.py +++ b/Game.py @@ -181,7 +181,18 @@ class Game: if (self.level == 1): # self.dialogue.draw(surf, self.enemies[0], "enemy dialogue") - self.dialogue.draw(surf, self.player, "text1", 400, 1, 900, 1800) + self.dialogue.draw(surf, self.player, "Press A or D to move.", 400, 0, 900, 1800) + # self.dialogue.draw(surf, self.player, "Press W or SPACE to jump.", 400, 0, 1800, 1750) + # self.dialogue.draw(surf, self.player, "Left click to attack.", 400, 0, 2500, 1600) + # if self.player.position.x > 3000: + # self.dialogue.draw(surf, self.player, "These goons must be guarding something!", 5, 1) + # self.dialogue.draw(surf, self.player, "It may just be what I am looking for...", 5, 2) + # if self.player.position.y > 2000: + # self.dialogue.draw(surf, self.player, "This treasure is pennies compared to what I'm after.", 4, 3) + # self.dialogue.draw(surf, self.player, "But this portal will bring me one dimension closer!", 5, 4) + + # self.dialogue.draw(surf, self.player, "Next dimension, next portal...", 4, 1) + # self.dialogue.draw(surf, self.player, "It's really that simple.", 4, 2) # for o,text in self.hints: # o.position -= Setup.camera_offset # self.dialogue.draw(surf,o, text) @@ -191,7 +202,6 @@ class Game: # # print(o.position,text,b) # pg.draw.circle(surf,(255,0,0),o.position,10) # o.position += Setup.camera_offset - self.dialogue.draw(surf, self.player, "Next dimension, here I am!", 4, 2) # self.dialogue.draw(surf, self.player, "text2", 3, 2) # self.dialogue.draw(surf, self.player, "text3", 2, 3) # self.dialogue.draw(surf, self.player, "text4", 1, 4) diff --git a/UI/Dialogue.py b/UI/Dialogue.py index b65f424..d88b1ae 100644 --- a/UI/Dialogue.py +++ b/UI/Dialogue.py @@ -47,9 +47,8 @@ class DialogueUI: Y = get_display_point(agent.position)[1] else: X, Y = get_display_point((self.dialogue_list[self.char][2][0], self.dialogue_list[self.char][2][1])) - # print(get_display_point((X, Y))) - print(get_camera_offset()[0] + SCREEN_WIDTH/2, get_camera_offset()[1] + SCREEN_HEIGHT/2) + # print(get_camera_offset()[0] + SCREEN_WIDTH/2, get_camera_offset()[1] + SCREEN_HEIGHT/2) if(ID == 0): self.text = text @@ -65,7 +64,7 @@ class DialogueUI: surf.blit(self.drawText[i], text_rect) except: pass; - + def createDialogue(self): if(self.text == self.old_text): self.skip == True @@ -101,4 +100,4 @@ class DialogueUI: self.char = self.char + 1 else: self.char = 0 - self.dialogue_list = [] \ No newline at end of file + self.dialogue_list = []