Files
tamagotchi-multiplayer/test.py
T
2026-10-04 01:18:52 +03:00

44 lines
702 B
Python

from imp import World, create_pet
from systems import (
DeathSystem,
SicknessSystem,
SatietySystem,
HydrationSystem,
HygieneSystem,
)
def test_systems_tick():
world = World()
world.systems.extend(
(
DeathSystem,
SicknessSystem,
HydrationSystem,
SatietySystem,
HygieneSystem,
)
)
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_ui()