Adds simple UI

This commit is contained in:
nejdetckenobi committed 2026-10-04 01:18:52 +03:00
1 parent 722bf6d55f
commit 8c8f83d9a7
2 files changed
+15 -2

No files matched your search

+14 -2
View File
@@ -20,12 +20,24 @@ def test_systems_tick():
)
)
entity = create_pet(world, "karabas")
create_pet(world, "karabas")
for _ in range(81 + 35):
world.tick()
print(world.registry)
def test_ui():
import pyglet
window = pyglet.window.Window()
@window.event
def on_draw():
window.clear()
pyglet.app.run()
if __name__ == "__main__":
test_systems_tick()
test_ui()