Dragon Fusion — Guia Técnico Master para Unity 6

Guia completo de produção: arquitetura, JSON, regras de negócio/liberação, implementação de UI (Canvas/Panel), prefabs por tela, pipeline e sprints.

1) Stack e padrões obrigatórios

2) Estrutura de projeto Unity (pastas)

Assets/_Game/
  Art/{Sprites,VFX,UIAtlases}
  Audio/{Music,SFX}
  Prefabs/
    Core/
    UI/
    Gameplay/
    Meta/
  Scenes/
    Boot.unity
    Home.unity
    Map.unity
    Battle.unity
    Meta.unity
  Scripts/
    Core/{Bootstrap,StateMachine,EventBus,Config}
    Data/{Save,DTO,Migrations}
    Services/{Economy,Inventory,Missions,Ads,IAP,Leaderboard,CloudSave}
    Features/
      Home/
      Map/
      Battle/
      Rewards/
      Missions/
      Collection/
      Hatchery/
      Evolution/
      Ranking/
      Offers/
      Support/
    UI/{Views,Presenters,Widgets}
  Data/ScriptableObjects/
    Balance/
    Levels/
    Missions/
    Rewards/
    Offers/
Addressables/

3) Contratos JSON canônicos

3.1 SaveGame.json (cliente)

{
  "schemaVersion": 4,
  "playerId": "uuid",
  "profile": {"name": "Player", "level": 12, "xp": 18450},
  "economy": {
    "gold": 25430,
    "gems": 320,
    "energy": {"current": 20, "max": 20, "regenSec": 900, "lastTickUtc": 1773087000}
  },
  "progress": {
    "world": 3,
    "stage": 18,
    "starsByStage": {"W1-S1":3, "W2-S16":2},
    "lockedRulesState": {"world4Unlocked": false}
  },
  "inventory": {"boosters": {"shuffle": 1, "mix": 2, "undo": 5, "hint": 3}},
  "hatchery": {
    "slots": [
      {"slotId":1,"eggId":"egg_common_green","startUtc":1773086500,"endUtc":1773093700,"speed":2}
    ]
  },
  "collection": {"found": ["creature_001","creature_002"], "progress": {"total":34,"max":36}},
  "missions": {
    "daily": [{"id":"d_play_20m","progress":8,"target":20,"claimed":false}],
    "weekly": [{"id":"w_open_2_chests","progress":1,"target":2,"claimed":false}]
  },
  "season": {"seasonId":"S01","rank":59,"score":2450,"claimed":false},
  "settings": {"music":0.6,"sfx":0.8,"vibration":"medium","quality":"low","language":"pt-BR"},
  "consent": {"termsAccepted":true,"adsPersonalized":false,"termsVersion":"2026-03"},
  "meta": {"updatedAtUtc":"2026-03-09T22:30:00Z","serverNonce":"abc123"}
}

3.2 Regras de sincronização

4) Regras de negócio globais (liberação/bloqueio)

RegraCondiçãoAção
Entrada no jogotermsAccepted == truePermitir Home
Jogar faseenergy.current >= costConsumir energia e abrir Battle
Mundo 4starsTotal >= 45Unlock world4
Claim diárionot claimedTodayConceder reward diário
Claim seasonseasonClosed && !claimedConceder payout por faixa
ReviveradAvailable || itemAvailable+3 moves, retomar board

5) UI técnica — Canvas / Panels / Prefabs

5.1 Padrão de cenas

SceneRoot
  Canvas_Root (ScreenSpace-Camera)
    Panel_Background
    Panel_HUD
    Panel_Content
    Panel_PopupLayer
    Panel_ToastLayer
  EventSystem

5.2 Prefabs base reutilizáveis

6) Implementação por tela (enviadas no ZIP)

Para cada tela: Objetivo, Hierarquia de UI, Componentes, Regras, Scripts Unity.

6.1 01 Carregamento

6.2 02 Consentimento

6.3 03 Home

6.4 04 Mapa

6.5 05/06 Battle

6.6 07 Vitória / 08 Derrota

6.7 09 Missões, 11 Diário

6.8 12/12a/13/14b Ranking e premiações

6.9 13a Ofertas, 14/14a Challenge

6.10 15/15a Coleção, 16 Chocagem, 17 Evoluir, 20 Modais

7) Esqueleto de scripts (Unity C#)

public interface IGameService { void Initialize(); }

public sealed class EconomyService : IGameService {
  public event Action OnBalanceChanged;
  public int Gold { get; private set; }
  public bool TrySpendGold(int value, string txnId) { /* valida + idempotência */ }
  public void AddGold(int value, string reason) { /* ... */ }
}

public sealed class UnlockRulesService {
  public bool IsWorldUnlocked(int worldId, int stars) => worldId switch {
    1 => true,
    2 => stars >= 15,
    3 => stars >= 30,
    4 => stars >= 45,
    _ => false
  };
}

8) Backlog técnico por sprint (12 semanas)

SprintFocoEntregáveisPrioridade
1-2FundaçãoBoot, Consent, Home, Save v4, serviços baseP0
3-4Core gameplayBoard match/cascade, map unlock, vitória/derrotaP0
5-6Meta loopMissões, diário, coleção v1, chocagemP0
7-8Progressão avançadaEvolução, season pass, ranking baseP1
9-10MonetizaçãoOfertas, reviver, IAP validation, rewarded adsP1
11-12Competitivo + polimentoMirror/ghost, premiação final, otimização mobile QAP1

9) Checklist de pronto para soft launch