Add test code for printToConsole in Game.py
This commit is contained in:
parent
21ea6cf1de
commit
b4bebfc375
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user