-
Notifications
You must be signed in to change notification settings - Fork 0
Main Menu
This scene holds three distinct but connected parts. The Main Menu Screen, New Level Overlay, and Load Level Overlay.
Connecting Systems: None
- None
Root Page. Three main parts. The title section which displays the name of the game, the left button panel, and the level panel. The Left button panel has 3 buttons; New Level, Load Level, and Quit. The level panel has an item list to display all loaded levels and allow users to enter a level by selecting it there. Links to New Level Overlay and Load Level Overlay through the buttons.
Allows you to name a level and set the height and width of the new level. Two buttons to create the level which brings you to the editor state with that level loaded. The cancel button closes the overlay and brings you back to the main menu.
Allows you to import a level through a filepath. A button allows you to open file explorer to select a file to import in. Open brings you to the editor state of the loaded level. Cancel closes the overlay and returns to the main menu
Name the most important variables, their type, and what their purpose is
-
buttonNewLevel : Button= An example of all references to buttons in the script. -
overlayNewLevel : ColorRect= A reference to the overlay for creating a new level. Hidden by default. -
fieldNewLevelName : LineEdit= A reference to the input field for creating a new level. -
spinBoxNewLevelX : SpinBox= A reference to the input field for setting a new level's horizontal size. Minimum is 2. Also has a Y equivalent.
Name of the most important functions, their parameters, and what they do.
-
func _ready() -> void: Connects all buttons to functions through their pressing signals. -
func create_new_level() -> void: Sends the level name and world size to Master Manager to create a new level. Creates an error popup if the user doesn't set a world name.
Future Work:
- Fill the "load level" panel with levels on the user's machine.
- Make the "import level" button functional.
Risks: None
- This is the root page and the project will need to open it first when program is run.
Resources
Known Issues
Future Work
Globals
Managers
- Main Menu Manager
- Master Manager
- Camera Manager
- Hotkey Manager
- Import Export Manager
- Audio Manager
- Animation Manager
- PopUp Manager
UI
Managers
- Editor Manager
- Tile Manager
- Entity Manager
- Icon Manager
- Preview Manager
- Tool Manager
- Asset Manager
- Custom Cursor Manager
Tiles & Entities
- Grid Lines
- Preview Line
- Tiles & Entities
- Enemies
- Patrolling Enemy
- Flying Enemy
- Shooting Enemy
- Stationary Enemy
- Moving Platform
- Property Editing
Asset Swapping
UI
Managers
Player