Godot 4.3 JRPG Tutorial – Classic JRPG Menu Screen: Items, Stats, Equipment, Quit | Ep. 23
Автор: AdaptEd Labs
Загружено: 2025-09-20
Просмотров: 123
Описание:
In this episode we add the classic in-game Menu Screen you know from retro JRPGs. The menu lives in a persistent UIRoot so you can access it from the overworld at any time. Buttons include Items (opens our existing Inventory UI), Stats (reads the player’s StatsResource), Equipment (placeholder for unequipping gear), Return to Game, Quit Game, and Save/Load placeholders. We also cover auto-finding the Player when it’s spawned, pausing/unpausing the game when the menu opens/closes, and safely handling the Inventory UI so it doesn’t overlap or duplicate.
What you’ll learn:
Building a persistent UIRoot to host global UI like menus
Creating a CanvasLayer menu with a dimmer overlay, VBox layout, and buttons
Wiring button signals to open Inventory, Stats, and Equipment panels
Auto-finding the Player instance (even when spawned at runtime) and reading its StatsResource
Cleanly pausing/unpausing the game while the menu is open
Handling Inventory UI properly so it opens/closes without duplicates
Adding Quit Game and Save/Load placeholders for future episodes
Files & paths used:
Menu: res://ui/menu_screen/MenuScreen.gd
UIRoot: res://ui/UIRoot.gd
Inventory UI: res://Scenes/UI/Inventory/inventory_ui.tscn
Player: res://Scenes/Characters/player.tscn
Test checklist:
Press Esc → menu opens, game pauses, dim background shows
Items → Inventory opens, menu hides, no duplicate UIs
Stats → shows player stats from StatsResource
Return to Game → menu and inventory close, game resumes
Quit Game → exits to desktop
#Godot #Godot4 #JRPG #GDScript #GameDev #Tutorial #UI #Menu #IndieGameDev
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: