
Godot Adapt Desktop To Mobile
This covers the full workflow of porting a desktop Godot game to mobile, from touch controls to performance management. You get production-ready scripts for dynamic virtual joysticks that spawn where fingers land, adaptive resolution scaling that drops render quality to hold 60fps, and gesture recognition for swipes and pinch-to-zoom. The battery saver script is critical: it hooks the app pause notification to throttle FPS and prevent the OS from killing your game in the background. Also includes safe area handling for notches, haptic feedback, and shader fallback systems that strip expensive materials on weak GPUs. Use this when you need more than just slapping TouchScreenButtons onto a desktop game and calling it mobile.
- skills.sh installs
- 220
- GitHub stars
- 464
- last updated
- Aug 21, 2026
Install
$ npx -y skills add thedivergentai/gd-agentic-skills --skill godot-adapt-desktop-to-mobile --agent claude-codeInstalls into .claude/skills of the current project.
Files
Adapt: Desktop to Mobile
Expert guidance for porting desktop games to mobile platforms.
NEVER Do
- NEVER use mouse position directly — Touch has no "hover" state. Replace mouse_motion with screen_drag and check InputEventScreenTouch.pressed.
- NEVER keep small UI elements — Apple HIG requires 44pt minimum touch targets. Android Material: 48dp. Scale up buttons 2-3x.
- NEVER forget finger occlusion — User's finger blocks 50-100px radius. Position critical info ABOVE touch controls, not below.
- NEVER run at full performance when backgrounded — Mobile OSs kill apps that drain battery in background. Pause physics, reduce FPS to 1-5 when app loses focus.
- NEVER use desktop-only features — Mouse hover, right-click, keyboard shortcuts, scroll wheel don't exist on mobile. Provide touch alternatives.
Available Scripts
MANDATORY: Read the appropriate script before implementing the corresponding pattern. Do not paste joystick/gesture/UI tutorials inline.
Sponsors
Details
- Repository
- github.com/thedivergentai/gd-agentic-skills
- Categories
- AI & Agent Building, Debugging, Mobile Development, Game Development
- First seen
- Jun 3, 2026
More from thedivergentai/gd-agentic-skills
All 51- Godot Genre Action Rpg218
- Godot Mcp Scene Builder134
- Godot Mcp Setup126
- Godot Master2.7K
- Godot Shaders Basics488
- Godot 2d Animation457
- Godot Particles370
- Godot Ui Theming363
- Godot Save Load Systems350
- Godot 2d Physics347
- Godot Gdscript Mastery338
- Godot 3d World Building332
- Godot Procedural Generation330
- Godot Testing Patterns329
- Godot Composition326
- Godot Audio Systems322
- Godot Characterbody 2d313
- Godot Camera Systems310
- Godot Input Handling305
- Godot Signal Architecture301
- Godot State Machine Advanced291
- Godot Rpg Stats287
- Godot Genre Roguelike285
- Godot Combat System281