Overview
Nyuron uses consistent UI patterns across all minigames to provide a familiar player experience. This guide documents the common UI components and their implementation.Intro Panel
Every minigame starts with an intro panel that explains the game and provides a play button.Structure
Implementation
Example from food_catch
Location:minigames/food_catch/main.gd:106-127
Game Over Panel
Displays when the game ends, showing score, coins earned, and navigation options.Structure
Implementation
Example from turtle_run
Location:minigames/turtle_run/scripts/Main.gd:190-197
Pause Menu
The same GameOverPanel is reused for pause functionality with different text.Implementation
HUD Elements
Score Label
Persistent score display during gameplay.Lives/Health Display
For games with lives:Flash Effects
Provide visual feedback on score or damage:minigames/food_catch/main.gd:61-71
Back Button
A persistent button that toggles pause.Touch Controls
For mobile input, use transparent touch areas.Structure
Implementation
minigames/food_catch/main.gd:375-384
Floating Text
Score feedback that floats and fades out.Scene Structure
Script Template
Usage
minigames/food_catch/main.gd:253-259
Difficulty Label
Displays difficulty progression messages.minigames/food_catch/main.gd:268-280
UI Best Practices
Always use PROCESS_MODE_ALWAYS for pause UI
Always use PROCESS_MODE_ALWAYS for pause UI
Set GameOverPanel and its buttons to
PROCESS_MODE_ALWAYS so they remain interactive during pause:Set mouse_filter correctly
Set mouse_filter correctly
Ensure buttons can receive input:
Hide non-essential UI during intro
Hide non-essential UI during intro
During the intro panel, hide gameplay UI:
Use tweens for smooth transitions
Use tweens for smooth transitions
Animate UI changes with tweens for a polished feel:
Consistent text formatting
Consistent text formatting
Use consistent Spanish text across all games:
- “Puntos: X”
- “Vidas: X”
- “Monedas obtenidas: +X”
- “¡Fin del Juego!”
- “Pausa”
Color Palette
Common colors used in Nyuron UI:CanvasLayer Configuration
For HUD elements, use a CanvasLayer with follow viewport:minigames/food_catch/main.gd:78
Next Steps
Creating a Minigame
Build a new minigame with these UI components
Mobile Adaptation
Optimize UI for mobile devices