Changement de la manière de charger les noms

This commit is contained in:
Tipragot 2023-10-29 21:06:29 +01:00
parent 57b3159a2f
commit b954b8c879

View file

@ -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),
)