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 65a83eb9a1 - Show all commits

View file

@ -3,7 +3,6 @@ Scène du jeu dans lequel on se cache de Edmond dans les dossiers.
""" """
from enum import Enum from enum import Enum
import random
from engine import ( from engine import (
Centered, Centered,
Display, Display,
@ -76,6 +75,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,20 +107,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",
"Dada",
"Melatonin",
]
),
),
TextSize(25), TextSize(25),
DirectoryName(entity), DirectoryName(entity),
) )