ecs #58
|
@ -3,11 +3,8 @@ Module d'exemple de l'utilisation du moteur de jeu.
|
|||
"""
|
||||
|
||||
from engine import start_game
|
||||
from plugins import assets, defaults
|
||||
from plugins import defaults
|
||||
from scenes import menu
|
||||
|
||||
|
||||
start_game(
|
||||
defaults.PLUGIN,
|
||||
assets.loading_scene(menu.SCENE, "menu"),
|
||||
)
|
||||
start_game(defaults.PLUGIN, menu.SCENE)
|
||||
|
|
|
@ -8,6 +8,7 @@ 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.assets import Assets
|
||||
from plugins.click import Clickable
|
||||
from plugins.hover import HoveredTexture
|
||||
|
@ -62,8 +63,11 @@ def __spawn_elements(world: World):
|
|||
__create_button(world, assets, i, name)
|
||||
|
||||
|
||||
SCENE = Scene(
|
||||
[__spawn_elements],
|
||||
[],
|
||||
[],
|
||||
SCENE = assets.loading_scene(
|
||||
Scene(
|
||||
[__spawn_elements],
|
||||
[],
|
||||
[],
|
||||
),
|
||||
"menu",
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue