mini_arcade_core.engine.game ============================ .. py:module:: mini_arcade_core.engine.game .. autoapi-nested-parse:: Game core module defining the Game class and configuration. Classes ------- .. autoapisummary:: mini_arcade_core.engine.game.Game Module Contents --------------- .. py:class:: Game(config: mini_arcade_core.engine.game_config.GameConfig, scene_registry: mini_arcade_core.scenes.registry.SceneRegistry | None = None) Core game object responsible for managing the main loop and active scene. .. py:attribute:: config .. py:attribute:: backend :type: mini_arcade_core.backend.Backend .. py:attribute:: settings .. py:attribute:: managers .. py:attribute:: services .. py:property:: running :type: bool Check if the game is currently running. .. py:method:: quit() Request that the main loop stops. .. py:method:: run() Run the main loop starting with the given scene. This is intentionally left abstract so you can plug pygame, pyglet, or another backend. :param initial_scene_id: The scene id to start the game with (must be registered). :type initial_scene_id: str .. py:method:: resolve_world() -> object | None Resolve and return the current gameplay world. :return: The current gameplay world, or None if not found. :rtype: object | None