Gameplay de la recherche dans les dossiers #44
|
@ -76,6 +76,23 @@ def __initialize_world(world: World):
|
||||||
Initialise le monde de la scène.
|
Initialise le monde de la scène.
|
||||||
"""
|
"""
|
||||||
world[State] = State.WAITING
|
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 y in range(__LINES):
|
||||||
for x in range(__COLUMNS):
|
for x in range(__COLUMNS):
|
||||||
entity = world.create_entity(
|
entity = world.create_entity(
|
||||||
|
@ -91,35 +108,7 @@ def __initialize_world(world: World):
|
||||||
Position(0, 0),
|
Position(0, 0),
|
||||||
Order(1),
|
Order(1),
|
||||||
Centered(),
|
Centered(),
|
||||||
Text(
|
Text(names.pop()),
|
||||||
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",
|
|
||||||
]
|
|
||||||
),
|
|
||||||
),
|
|
||||||
TextSize(25),
|
TextSize(25),
|
||||||
DirectoryName(entity),
|
DirectoryName(entity),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue