All skills
thedivergentai avatar

/godot-adapt-desktop-to-mobile

@9d6e91e

Expert patterns for porting desktop games to mobile including touch control schemes (virtual joystick, gesture detection), UI scaling for small screens, performance optimization for mobile GPUs, battery life management, and platform-specific features. Use when creating mobile ports or cross-platform mobile builds. Trigger keywords: TouchScreenButton, virtual_joystick, gesture_detector, InputEventScreenTouch, InputEventScreenDrag, mobile_optimization, battery_saving, adaptive_performance, MOBILE_ENABLED.

Use this Skill: https://skilld.dev/gh/thedivergentai/gd-agentic-skills/godot-adapt-desktop-to-mobile

This session only. Nothing lands on disk.

referencesmobile-port-checklist.md

≈360 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Mobile Port Checklist (load on demand)

MANDATORY at step 1 of the Desktop→Mobile port procedure — confirm each gate before deeper platform work.

Pre-port inventory

  • List every desktop-only input path (hover, right-click, scroll, keyboard shortcuts)
  • List every LineEdit/TextEdit that needs OSK handling
  • Note genre control scheme from SKILL.md decision matrix
  • Confirm save hooks exist for pause/kill (not WM_CLOSE-only)

Control remap gates

  • Touch actions replace mouse position / hover assumptions
  • Genre stick/gesture script chosen (dynamic_joystick_spawner, gesture_combo_system, or tap-only)
  • Dual-stick index conflicts reviewed if using two virtual sticks
  • Critical HUD placed above finger occlusion zone

UI & safe area

  • ui_safe_area_margins.gd applied to root HUD
  • mobile_ui_adapter.gd scales Controls to 44–48dp minimum targets
  • Text fields use on_screen_keyboard_handler.gd (not mobile_ui_adapter alone)

Lifecycle & perf

  • battery_saver_mode.gd on NOTIFICATION_APPLICATION_PAUSED
  • offline_save_sync.gd persists on pause/resume
  • resolution_scaler.gd + mobile_shader_fallback.gd until device FPS holds

Do NOT Load

  • Full Android/iOS platform APIs — route to godot-platform-mobile after the gates above pass
  • Deep dual-stick recipes — see mobile-port-deep.md only when matrix + scripts are insufficient

Source: SKILL.md on GitHub

1 alert16d5 checks · Risk HIGH
  • Gen Agent Trust Hub16d

    The skill provides Godot scripts for porting desktop games to mobile but contains a high-severity security finding due to a hardcoded encryption key in the save synchronization logic. This undermines the security of user data. Additionally, it identifies a low-risk attack surface for indirect prompt injection via unvalidated input events.

  • Socket16d

    No alerts

  • Snyk16d

    Risk: LOW · No issues

  • Runlayer7mo

    3/3 files flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 9d6e91e. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 weeks ago.

Activeupdated 2 months ago

README badge

README badge for thedivergentai/gd-agentic-skills/godot-adapt-desktop-to-mobile