From 047240838ed08aa591e84270ee24c50d8e3af321 Mon Sep 17 00:00:00 2001 From: riddik0331 Date: Wed, 15 Jun 2022 00:26:48 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D1=8B=20=D1=81=D0=BA=D0=BE=D0=B1=D0=BA=D0=B8=20=D0=B4?= =?UTF-8?q?=D0=BB=D1=8F=20print.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/game.py b/game.py index e753032..ceea4d6 100644 --- a/game.py +++ b/game.py @@ -14,7 +14,7 @@ #You were importing all widgets anyway, and there was an unknown error. class Game(object): - print "Setting global Game params." + print("Setting global Game params.") # Game parameters BG_TILE_IMG = 'images/wood2.png' BUTTON_BGIMG = 'images/x.png' @@ -28,7 +28,7 @@ class Game(object): def __init__(self): pygame.init() - print "Pygame started." + print("Pygame started.") #set up screen and background self.screen = pygame.display.set_mode( @@ -38,7 +38,7 @@ def __init__(self): #Drawing a handy MessageBoard widget #Can use these for any text. - print "Configuring tboard MessageBoard params." + print("Configuring tboard MessageBoard params.") self.tboard_text = ['This is a test.'] self.tboard_x = 120 self.tboard_y = 120 @@ -56,7 +56,7 @@ def __init__(self): font=('comic sans', 18), font_color=pygame.Color('yellow')) - print "Moving on to buttons..." + print('Moving on to buttons...') self.button_bgimgs = ['images/x.png'] #self.button_width = self.button_bgimgs[0].get_width() @@ -73,7 +73,7 @@ def __init__(self): imgnames=self.button_bgimgs, attached=self.tboard) - print "Created close button." + print("Created close button.") self.togglebtn_bgimgs = ['images/toggle1.png', 'images/toggle2.png'] @@ -85,7 +85,7 @@ def __init__(self): text="Toggle", textcolor=(255,255,255)) - print "Created toggle button." + print("Created toggle button.") self.clockImg = Images(self.screen, 'images/clock.png', @@ -134,7 +134,7 @@ def __init__(self): self.options = dict(debug=True, draw_grid=False) - print "Done setting game options, exiting Game init." + print("Done setting game options, exiting Game init.") def xy2coord(self, pos): """ Convert a (x, y) pair to a (nrow, ncol) coordinate @@ -197,7 +197,7 @@ def draw(self): obj.draw() def run(self): - print "Beginning run sequence." + print("Beginning run sequence.") # The main game loop # while True: @@ -258,7 +258,7 @@ def quit(self): if __name__ == "__main__": - print "Creating game object..." + print("Creating game object...") game = Game() - print "Done. Starting run method" + print("Done. Starting run method") game.run()