Merge branch 'directory-search' of https://git.tipragot.fr/raphael/gtn into directory-search

This commit is contained in:
Rapahel Lauray 2023-10-29 21:16:10 +01:00
commit 65a83eb9a1

View file

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