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
|
# Main Game class
|
||||||
|
from src.ui.UiConsole import UiConsole
|
||||||
|
|
||||||
|
|
||||||
class Game:
|
class Game:
|
||||||
def __init__(self, filesPath):
|
def __init__(self, filesPath):
|
||||||
"""
|
"""
|
||||||
@ -77,6 +80,11 @@ class Game:
|
|||||||
self.map.addEntity(self.player, DONTADD=True)
|
self.map.addEntity(self.player, DONTADD=True)
|
||||||
self.eventManager = EventManager(self, self.player)
|
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
|
# Start game loop
|
||||||
self.mainLoop()
|
self.mainLoop()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user