Suppression du délai inutile lors de l'envoi du score #20

Merged
CoCo_Sol merged 3 commits from strange-delay into main 2024-01-07 10:01:53 +00:00
2 changed files with 1 additions and 2 deletions
Showing only changes of commit bdbeefa952 - Show all commits

View file

@ -6,7 +6,6 @@ from plugins import render
from plugins.click import Clickable
from plugins.hover import HoveredTexture
from plugins.render import SpriteBundle, Text, TextBundle
from plugins.timing import TimedEvent
from plugins.writing import Writing
import requests as rq
from scenes import game, thanks

View file

@ -17,7 +17,7 @@ def __spawn_elements(world: World):
position=Vec2(render.WIDTH / 2, render.HEIGHT / 2 - 75),
origin=Vec2(0.5),
),
TimedEvent(3, lambda world, entity: world.set(CurrentScene(menu.MENU))),
TimedEvent(1.5, lambda world, entity: world.set(CurrentScene(menu.MENU))),
)
world.new_entity().set(
TextBundle(