Initial commit

This commit is contained in:
nejdetckenobi committed 2026-10-02 22:07:25 +03:00
1 parent afe548e9f8
commit e4184b7cde
7 files changed
+213 -17

No files matched your search

+25 -2
View File
@@ -1,3 +1,26 @@
from entities import BaseEntity
from imp import World, create_pet
from systems import SatietySystem, HydrationSystem, HygieneSystem
object = BaseEntity()
def test_systems_tick():
world = World()
world.systems.extend(
(
HydrationSystem,
SatietySystem,
HygieneSystem,
)
)
entity = create_pet(world, "karabas")
for _ in range(81):
world.tick()
components = world.get_components(entity)
print(components)
if __name__ == "__main__":
test_systems_tick()