From b4bebfc37599c34ba2a4eaaa4614b49007372440 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Czeka=C5=84ski?= Date: Fri, 15 May 2020 11:39:58 +0200 Subject: [PATCH] Add test code for printToConsole in Game.py --- src/game/Game.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/game/Game.py b/src/game/Game.py index ca2c588..1bcfdce 100644 --- a/src/game/Game.py +++ b/src/game/Game.py @@ -12,6 +12,9 @@ from src.game.Timer import Timer # Main Game class +from src.ui.UiConsole import UiConsole + + class Game: def __init__(self, filesPath): """ @@ -77,6 +80,11 @@ class Game: self.map.addEntity(self.player, DONTADD=True) self.eventManager = EventManager(self, self.player) + # UiConsole.printToConsole() Test + testMessages = ["Test message " + str(i) for i in range(1, 51)] + for testMsg in testMessages: + UiConsole.printToConsole(testMsg) + # Start game loop self.mainLoop()