]> Skullheadx's Git Forge - Pygame-Jam.git/commitdiff
a
authorSkullheadx <704277@pdsb.net>
Wed, 13 Jul 2022 00:02:13 +0000 (20:02 -0400)
committerSkullheadx <704277@pdsb.net>
Wed, 13 Jul 2022 00:02:13 +0000 (20:02 -0400)
Game.py
UI/Dialogue.py

diff --git a/Game.py b/Game.py
index 3bcae959529828cbb32655c3a791cb78ad5cfb72..054ee59f2140b405d4b92cbc221f79d110a190cd 100644 (file)
--- 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)
index b65f4247e0daed546866fe2fc8ff40c0e38d0890..d88b1ae536a32f57ad94f9d8685f56ad7f71a986 100644 (file)
@@ -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 = []