Initial commit
This commit is contained in:
1 parent
afe548e9f8
commit
e4184b7cde
7 files changed
+213
-17
No files matched your search
@@ -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()
|
||||
Reference in new issue
Block a user