mcpField
B
build-mobile-threejs-games

build-mobile-threejs-games

github.com/mengtoDevelopment7.1k1.3k installsUpdated 3d ago
Repository

About build-mobile-threejs-games

A development skill for building Three.js games with mobile controls, responsive HUDs, and device-aware performance in mind. It guides game developers through touch interaction and mobile-specific quality checks.

Key features

  1. 01Provide movement, action, target, and cancel controls
  2. 02Keep controls clear of unsafe screen areas
  3. 03Adapt HUD layouts to portrait and landscape
  4. 04Preserve gameplay state during orientation changes
  5. 05Test touch, multitouch, audio, background return, and performance

Use cases

  1. 01Design touch controls for a mobile Three.js game
  2. 02Fit gameplay information to phone-sized screens
  3. 03Check multi-touch and long-session behavior
  4. 04Verify pause, audio, and reduced-motion behavior on mobile

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/mengto/skills --skill build-mobile-threejs-games

After installing, type/build-mobile-threejs-gamesin Claude Code to confirm it loaded.

Bundled filesagents/openai.yaml

Details

From the project README

Build Mobile Three.js Games

Treat mobile as a primary control and performance surface.

Controls

Provide a clear movement control, reachable primary actions, target selection, cancel/reset paths, and non-drag alternatives for inventory. Keep controls out of unsafe areas, avoid overlapping action zones, and show feedback for held, unavailable, and queued actions.

Responsive HUD

Design for representative portrait and landscape viewports. Keep vital status, target data, inventory, tooltips, and dialogs legible without covering the playfield. Support orientation changes without resetting gameplay state.

Performance and QA

Use device-appropriate quality defaults and adaptive decorative effects. Test touch targets, multi-touch, long sessions, audio unlock, pause/background return, reduced motion, low-end quality, and actual mobile-size viewports in the repository-approved browser.

Comments

Markdown supported