From b954b8c87916d1d5e6f3eb84409400ce23efcbc1 Mon Sep 17 00:00:00 2001 From: Tipragot Date: Sun, 29 Oct 2023 21:06:29 +0100 Subject: [PATCH] =?UTF-8?q?Changement=20de=20la=20mani=C3=A8re=20de=20char?= =?UTF-8?q?ger=20les=20noms?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/scenes/directory_search.py | 47 +++++++++++++--------------------- 1 file changed, 18 insertions(+), 29 deletions(-) diff --git a/src/scenes/directory_search.py b/src/scenes/directory_search.py index b049991..e14c3a2 100644 --- a/src/scenes/directory_search.py +++ b/src/scenes/directory_search.py @@ -76,6 +76,23 @@ def __initialize_world(world: World): Initialise le monde de la scène. """ world[State] = State.WAITING + names = [ + "Classique", + "Menteur", + "Tricheur", + "Histoire", + "Je t'aime", + "Hello", + "Cheval", + "La Mort", + "Dansons", + "Secrets", + "Edmond", + "Mon Amour", + "Melatonin", + "Films", + "Cinéma", + ] for y in range(__LINES): for x in range(__COLUMNS): entity = world.create_entity( @@ -91,35 +108,7 @@ def __initialize_world(world: World): Position(0, 0), Order(1), Centered(), - Text( - random.choice( - [ - "Classique", - "Menteur", - "Tricheur", - "Histoire", - "Je t'aime", - "Hello", - "Cheval", - "La Mort", - "Dansons", - "Secrets", - "Edmond", - "Mon Amour", - "Melatonin", - "Films", - "Cinéma", - "Jeux", - "Développement", - "Programmation", - "Mathématiques", - "Physique", - "Chimie", - "Biologie", - "Géologie", - ] - ), - ), + Text(names.pop()), TextSize(25), DirectoryName(entity), )