Gameplay de la recherche dans les dossiers #44
|
@ -3,7 +3,6 @@ Scène du jeu dans lequel on se cache de Edmond dans les dossiers.
|
|||
"""
|
||||
|
||||
from enum import Enum
|
||||
import random
|
||||
from engine import (
|
||||
Centered,
|
||||
Display,
|
||||
|
@ -76,6 +75,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,20 +107,7 @@ def __initialize_world(world: World):
|
|||
Position(0, 0),
|
||||
Order(1),
|
||||
Centered(),
|
||||
Text(
|
||||
random.choice(
|
||||
[
|
||||
"Classique",
|
||||
"Menteur",
|
||||
"Tricheur",
|
||||
"Histoire",
|
||||
"Je t'aime",
|
||||
"Hello",
|
||||
"Dada",
|
||||
"Melatonin",
|
||||
]
|
||||
),
|
||||
),
|
||||
Text(names.pop()),
|
||||
TextSize(25),
|
||||
DirectoryName(entity),
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue