Adds simple UI
This commit is contained in:
1 parent
722bf6d55f
commit
8c8f83d9a7
2 files changed
+15
-2
No files matched your search
@@ -0,0 +1 @@
|
|||||||
|
pyglet
|
||||||
@@ -20,12 +20,24 @@ def test_systems_tick():
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
entity = create_pet(world, "karabas")
|
create_pet(world, "karabas")
|
||||||
|
|
||||||
for _ in range(81 + 35):
|
for _ in range(81 + 35):
|
||||||
world.tick()
|
world.tick()
|
||||||
print(world.registry)
|
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__":
|
if __name__ == "__main__":
|
||||||
test_systems_tick()
|
test_ui()
|
||||||
Reference in new issue
Block a user