Files
tamagotchi-multiplayer/test.py
T

32 lines
566 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,
)
)
entity = create_pet(world, "karabas")
for _ in range(81 + 35):
world.tick()
print(world.registry)
if __name__ == "__main__":
test_systems_tick()