feat(progression): XP, niveaux et popups flottants (+N XP)

Nouvel autoload PlayerProgress qui gagne de l'XP sur:
- cassage de blocs (gain variable selon le type: perle, épave, coral > sand)
- collecte de perles (+25)
- crafting (+10)
- paliers de profondeur atteints (+20 à 10/25/50/75/100m)

HUD: barre XP + label niveau en bas centre, bannière "NIVEAU X" au level-up
(son bulle + fade). Popup 3D "+N XP" spawn au point d'action.

Boucle court-terme dopamine: chaque action = feedback visuel immédiat.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-20 18:08:26 +00:00
parent 982a4ec23d
commit 984754183f
7 changed files with 260 additions and 2 deletions

View File

@@ -98,6 +98,7 @@ BlockDatabase="*res://scripts/world/BlockDatabase.gd"
AudioManager="*res://scripts/ambience/AudioManager.gd"
ItemDatabase="*res://scripts/inventory/ItemDatabase.gd"
NetworkManager="*res://scripts/net/NetworkManager.gd"
PlayerProgress="*res://scripts/progression/PlayerProgress.gd"
[rendering]
environment/defaults/default_clear_color=Color(0.05, 0.15, 0.25, 1)