diff options
author | rom <romangraef@gmail.com> | 2021-04-24 02:43:02 +0200 |
---|---|---|
committer | rom <romangraef@gmail.com> | 2021-04-24 02:43:02 +0200 |
commit | 16816aa5187b1c439da71f4badfbe8afdb5ec435 (patch) | |
tree | ff4466c72fcc079deefe77609989f4be7e3f72a6 /txtgameengine/app.py | |
parent | a3998a8e8b507cf2915e81ab6fbb05efef29eb65 (diff) | |
download | txtgameengine-16816aa5187b1c439da71f4badfbe8afdb5ec435.tar.gz txtgameengine-16816aa5187b1c439da71f4badfbe8afdb5ec435.tar.bz2 txtgameengine-16816aa5187b1c439da71f4badfbe8afdb5ec435.zip |
pushing stuff around
Diffstat (limited to 'txtgameengine/app.py')
-rw-r--r-- | txtgameengine/app.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/txtgameengine/app.py b/txtgameengine/app.py index 58b239f..8206ef4 100644 --- a/txtgameengine/app.py +++ b/txtgameengine/app.py @@ -1,16 +1,16 @@ -import time from pathlib import Path -from .platform import PlatformComponent, RenderComponent, ShaderComponent - EPSILON = 1.e-10 builtin_resource_path = Path(__file__).parent / 'builtin_res' +from .platform import PlatformComponent, RenderComponent, ShaderComponent, CoordinateComponent + class TxtGameApp: PLATFORM_CLASS = PlatformComponent RENDER_CLASS = RenderComponent SHADER_CLASS = ShaderComponent + COORDINATE_CLASS = CoordinateComponent def __init__(self, size: (int, int), name: str): self.size = size @@ -19,6 +19,7 @@ class TxtGameApp: self.platform = self.PLATFORM_CLASS(self) self.render = self.RENDER_CLASS(self) self.shaders = self.SHADER_CLASS(self) + self.coords = self.COORDINATE_CLASS(self) self.should_exit = False def init(self): |