Add test code for printToConsole in Game.py

This commit is contained in:
Michał Czekański 2020-05-15 11:39:58 +02:00
parent 21ea6cf1de
commit b4bebfc375

View File

@ -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()