1.5 KiB
1.5 KiB
How Parts Work
This page features snippets of extra documentation on key pieces of the plugin. It was previously included in the README.
scene_loader.tscnis an autoloaded scene. It can load scenes in the background or with a loading screen (loading_screen.tscnby default).opening.tscnis a simple scene for fading in/out a few images at the start of the game. It then loads the next scene (main_menu.tscn).main_menu.tscnis where a player can start the game, change settings, watch credits, or quit. It can link to the path of a game scene to play, and the packed scene of an options menu to use.option_control.tscnand its inherited scenes are used for most configurable options in the menus. They work withplayer_config.gdto keep settings persistent between runs.- The
PauseMenuControllercan be set to loadpause_menu.tscnwhen triggeringui-cancel. pause_menu.tscnis a type ofOverlaidMenuwith thepauses_gameflag set to true. It will store the previously focused UI element, and return focus to it when closed.capture_focus.gdis attached to container nodes throughout the UI. It focuses onto UI elements when they are shown, allowing for easier navigation without a mouse.game_ui.tscnis a demo game scene that displays recognized action inputs, and features thePauseMenuControllernode, theLevelLoadernode to load levels into a container, andLevelManagerto manage level progress and show menus in case of a win or loss.