Gameplay de la recherche dans les dossiers #44

Merged
CoCo_Sol merged 32 commits from directory-search into main 2023-10-30 00:49:00 +00:00
Showing only changes of commit b954b8c879 - Show all commits

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