Save unfinished work

This commit is contained in:
Tipragot 2024-01-07 09:52:43 +01:00
parent ea70c297b2
commit 5a1c815210

View file

@ -22,12 +22,7 @@ def new_score(world: World, e: Entity):
post = {"name": name[Text], "score": world[game.Player1Score]}
print(post)
rq.post(f"https://{IP}/new_score", post)
world.new_entity().set(
TimedEvent(
1,
lambda world, entity: world.set(CurrentScene(thanks.THANKS)),
)
)
world.set(CurrentScene(thanks.THANKS))
except:
print("Error with the serveur")