Logo de Iphone Duo Games

Iphone Duo Games

Comunidade
mirzaaghazadeh
iphone-duo-games

Adapt a game to iPhone Duo — filling the screen across every device pose, orientation locking, aspect ratio versus letterboxing, keeping touch controls out of the fold, and consistent text and control sizing while resizing. Use when the project is a game or uses a game engine such as Unity, Unreal, Godot, SpriteKit or Metal.

Visão geral

Publicado pormirzaaghazadeh
Repositórioiphone-duo-skills
Nome da habilidadeiphone-duo-games
Estrelas
188
Forks
9
Arquivos incluídos
Somente instruções
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Sem arquivos extras

    Tudo de que o modelo precisa está nas instruções — sem arquivos extras para sincronizar.

  • Código aberto

    Publicada por mirzaaghazadeh no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Iphone Duo Games no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/mirzaaghazadeh/iphone-duo-skills/tree/main/skills/iphone-duo-games
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/mirzaaghazadeh/iphone-duo-skills.git /tmp/iphone-duo-skills
mkdir -p .claude/skills
cp -r /tmp/iphone-duo-skills/skills/iphone-duo-games .claude/skills/iphone-duo-games
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Iphone Duo Games em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Iphone Duo Games automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Iphone Duo Games não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

Games on iPhone Duo

Games get a carve-out from most of this device's UI guidance — no toolbars to send vertical, no split views to adapt. What they don't get a carve-out from is resizing. The screen changes size and shape underneath a running game every time someone opens, closes, folds or rotates the device, and a game that assumed a fixed viewport will letterbox, stretch, or drop controls off the edge.

You may lock orientation. You may not stop filling the screen.

Locking to portrait or landscape is fine and supported. What is not fine is treating that lock as permission to assume a fixed size.

Two reasons it doesn't hold here:

  1. The device has two displays with different dimensions, and your game moves between them mid-session.
  2. The inner display doesn't honor supported interface orientations. An orientation lock that has held on every previous iPhone stops holding on the inner display.

UIRequiresFullScreen behaves the same way — still honored, but your game still resizes when the device opens and closes. Plan for the resize regardless.

So: pick your orientation, then make sure the game fills the screen in every pose. That is the actual requirement.

Aspect ratio beats letterboxing

When the viewport shape changes, you have three options, in order of preference:

1. Change the aspect ratio. Show more or less of the world. This is the preferred answer: extend the camera frustum, widen the visible field, let the scene breathe into the space it has been given. The game stays full-bleed and feels native to whatever pose it's in.

2. Letterbox or pillarbox with artwork. If the design genuinely can't take a variable aspect ratio — a fixed puzzle grid, a precisely tuned platformer camera — then bars are acceptable, but fill them. Extend the background, continue the scene's artwork, or run themed framing into the padding. The goal is that it reads as a deliberate frame rather than a game that failed to fit.

3. Bare black bars. Avoid. This is what "didn't adapt" looks like.

Keep text and controls the same size

When the viewport resizes, resist the urge to scale the whole scene uniformly. Uniform scaling shrinks your HUD text and touch targets along with the world — so opening the device to the larger display can make text harder to read and buttons harder to hit, which is exactly backwards.

Scale the world; keep UI in its own layer sized in points. Text and controls should stay as close to a constant physical size as you can manage across every pose. On-screen touch controls in particular must not shrink below a comfortable target just because the aspect ratio changed.

The fold is a real problem for touch controls

This is the iPhone Duo-specific issue most likely to hurt a game.

When the device is partially folded, the inner display curves through the middle, and that region is genuinely harder to see and to tap. A virtual joystick, a fire button, or a drag target that lands in the curve becomes unreliable — not invisible, just worse, which is harder to diagnose from a bug report.

Games rarely use the system components that get fold avoidance for free, so this one is on you:

  • Query reserved regions and keep interactive controls out of the division region (the fold). See ../iphone-duo-adaptive-layout/SKILL.md for the API and the displacement patterns.
  • Anchor touch controls to the outer edges rather than centering them. Edge anchoring is more robust across every pose and costs nothing when flat.
  • Watch the occlusion regions too: the outer front camera is always present, and the inner camera appears whenever it activates.

Purely visual, non-interactive content can cross the fold. It's touch targets and critical readouts that need to move.

Poses worth designing for

You don't need a bespoke layout per pose, but two are worth a thought:

Tabletop / laptop. The device stands on a surface, half the display facing up and half facing the player. This is a genuinely new play position — the lower region is a stable touch surface and the upper region is a viewing surface. A game with a board-and-controls split maps onto it naturally.

Tent. Standing on its edges, hands-free. Good for idle, spectator, ambient or turn-based games.

Treat both as bonuses. Don't tie any functionality to a pose someone might never use.

Split View

Games participate in Split View multitasking like everything else — your game can end up in half the inner display. It will be smaller and a different shape than anything you designed for. Make sure it still renders correctly and doesn't drop controls off the edge; you are not obliged to make it a great play experience at that size, but it must not break.

The hinge as an input

The hinge angle is available as a live, continuous value — coarse status plus an angle — via onHingeChange in SwiftUI or UIHingeInteraction in UIKit. For a game engine, bridge it the way you'd bridge any other native sensor.

It is a genuine novelty input, and worth considering for effects, camera parallax, or a mechanic. Two cautions: guard for a nil hinge, since the same binary runs on every non-folding iPhone, and never make it the only way to perform an action. Details in ../iphone-duo-hinge-and-scenes/SKILL.md.

Engine notes

Most engines expose the viewport as a resize event and a safe-area inset query. Wire both, and treat resize as a first-class event rather than a startup value:

  • Unity — Screen.safeArea, and handle resolution changes at runtime rather than reading once in Start().
  • Unreal — safe zone / title safe values, and re-evaluate on viewport resize.
  • Godot — the safe area API plus a stretch mode that tolerates changing aspect ratios.
  • SpriteKit / Metal — you already get the resize through the view; the work is making the scene respond rather than assuming the initial drawable size.

Reserved regions and the hinge angle are iOS 27.1 APIs with no engine-level equivalent, so those need a native plugin. The bridging pattern is the same one described in ../iphone-duo-flutter/SKILL.md and ../iphone-duo-react-native/SKILL.md.

Checklist

  1. Handle viewport resize as a live event — not a value read at launch.
  2. Fill the screen in every pose, whatever your orientation lock.
  3. Prefer changing aspect ratio; if you letterbox, fill the bars with artwork.
  4. Keep HUD text and touch targets at a consistent physical size across poses.
  5. Anchor interactive controls to edges, and keep them out of the fold.
  6. Verify the game still renders correctly in Split View.
  7. Test every pose in the iPhone Duo simulator in Device Hub — open, closed, folded, rotated.

Perguntas frequentes

O que a habilidade de IA Iphone Duo Games faz?

Adapt a game to iPhone Duo — filling the screen across every device pose, orientation locking, aspect ratio versus letterboxing, keeping touch controls out of the fold, and consistent text and control sizing while resizing. Use when the project is a game or uses a game engine such as Unity, Unreal, Godot, SpriteKit or Metal.

Por que usar Iphone Duo Games no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Iphone Duo Games é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Iphone Duo Games no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/mirzaaghazadeh/iphone-duo-skills/tree/main/skills/iphone-duo-games. O TypingMind lê o arquivo SKILL.md e instala a habilidade para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Iphone Duo Games?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Iphone Duo Games?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Iphone Duo Games com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Iphone Duo Games é gratuita?

A habilidade é publicada no GitHub por mirzaaghazadeh. Consulte os termos de licenciamento no repositório. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇