Add an Engine class and move all the engine-y bits over there from main

This commit is contained in:
Eryn Wells 2022-04-30 23:30:23 -07:00
parent dc78669abf
commit d56bcc7b4a
3 changed files with 68 additions and 73 deletions

View file

@ -39,5 +39,5 @@ class Object:
self.__x = point.x
self.__y = point.y
def print(self, console: tcod.Console) -> None:
def print_to_console(self, console: tcod.Console) -> None:
console.print(x=self.__x, y=self.__y, string=self.__symbol, fg=self.__color)