mcpField
B
build-game-camera-controls

build-game-camera-controls

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

About build-game-camera-controls

A game-development skill for implementing readable camera controls. It covers target smoothing, bounds, occlusion, temporary camera effects, touch controls, and scenario-based testing.

Key features

  1. 01Independent target smoothing
  2. 02Orbit, pitch, and zoom limits
  3. 03Occlusion handling
  4. 04Layered lock-on and camera effects
  5. 05Touch gesture and control separation
  6. 06Camera scenario testing

Use cases

  1. 01Keeping the player visible near walls
  2. 02Framing threats and objectives
  3. 03Adding lock-on or scripted camera moments
  4. 04Testing touch and reduced-motion behavior

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/mengto/skills --skill build-game-camera-controls

After installing, type/build-game-camera-controlsin Claude Code to confirm it loaded.

Bundled filesagents/openai.yaml

Details

From the project README

Build Game Camera Controls

Keep gameplay readable before making the camera cinematic. Define one authoritative target, camera bounds, zoom range, collision/occlusion policy, and reduced-motion behavior.

Implement

  • Smooth position and look-at targets independently; never bind the camera directly to jittery render state.
  • Preserve player, immediate threat, objective, and interaction cues in frame at the intended distance.
  • Clamp orbit, pitch, and zoom; prevent walls or props from hiding the player without making geometry invisible globally.
  • Treat lock-on, scripted moments, and shake as temporary modifiers layered over the base camera.
  • On touch, separate camera gesture zones from movement/action controls and provide reset framing.

Verify

Test corners, tall props, tunnels, multiple enemies, lock-on switching, pause, reduced motion, portrait, and landscape. Confirm no camera behavior breaks targeting, UI, or performance.

Comments

Markdown supported