ecs #58
|
@ -3,12 +3,12 @@ La scène du menu principal du jeu.
|
|||
|
||||
Dans cette scène nous pouvons choisir le mode de jeu.
|
||||
"""
|
||||
from scenes import basic_game
|
||||
from scenes import base_game
|
||||
from engine import CurrentScene, Scene
|
||||
from engine.ecs import Entity, World
|
||||
from engine.math import Vec2
|
||||
from plugins import render
|
||||
from plugins import assets
|
||||
from plugins import assets as plugin_assets
|
||||
from plugins.assets import Assets
|
||||
from plugins.click import Clickable
|
||||
from plugins.hover import HoveredTexture
|
||||
|
@ -42,11 +42,11 @@ def __on_click_butons(world: World, _entity: Entity, name: str):
|
|||
world.new_entity().set(Sound(world[Assets].get_sound("click")))
|
||||
match name:
|
||||
case "classique":
|
||||
world[CurrentScene] = basic_game.CLASSIC
|
||||
world[CurrentScene] = base_game.CLASSIC
|
||||
case "menteur":
|
||||
world[CurrentScene] = basic_game.LIAR
|
||||
world[CurrentScene] = base_game.LIAR
|
||||
case "tricheur":
|
||||
world[CurrentScene] = basic_game.CHEATER
|
||||
world[CurrentScene] = base_game.CHEATER
|
||||
case "histoire":
|
||||
pass # TODO
|
||||
case _:
|
||||
|
@ -64,7 +64,7 @@ def __spawn_elements(world: World):
|
|||
__create_button(world, assets, i, name)
|
||||
|
||||
|
||||
SCENE = assets.loading_scene(
|
||||
SCENE = plugin_assets.loading_scene(
|
||||
Scene(
|
||||
[__spawn_elements],
|
||||
[],
|
||||
|
|
Loading…
Reference in a new issue