Token导航 LogoToken导航TokenDH.com
前端设计操作浏览器github未标认证来源可访问clear审计通过

game-developer游戏开发商

Agent Skill

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

总安装

188

周安装

8

GitHub Stars

公开资料未说明

下载量

66
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:game-developer(游戏开发商)
来源仓库:https://github.com/johanruttens/paddle-battle
仓库路径:skills/game-developer
安装命令:
npx skills add https://github.com/johanruttens/paddle-battle --skill game-developer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/johanruttens/paddle-battle --skill game-developer

简介

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。

  • 适合生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构或定位布局问题。
  • 使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时应配合本地预览和构建检查。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装并使用该技能。
  • 安装前需确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。

SKILL.md

Game Developer & Designer Skill

Build complete, polished games with professional-grade mechanics, visuals, and player experience.

Core Workflow

  1. Analyze — Understand game type, platform, core loop, target audience
  2. Design — Define mechanics, progression, visual style, audio needs
  3. Architect — Plan component structure, state management, game loop
  4. Implement — Build iteratively: core → polish → juice
  5. Playtest — Test feel, balance, edge cases

Game Design Fundamentals

The Core Loop

Every game needs a satisfying core loop. Define it explicitly:

Action → Challenge → Reward → Progression → (repeat)

Example (Pong-style): Hit ball → Keep rally → Score point → Level up → Harder AI

Player Experience Pillars

  • Agency: Player actions feel meaningful and responsive
  • Challenge: Difficulty matches skill, with room to grow
  • Reward: Clear feedback for success (visual, audio, progression)
  • Flow: Minimize friction between player intent and game response

Platform-Specific Guidance

React Native Games: See references/react-native-games.md Web/HTML5 Games: See references/web-games.md Game Math & Physics: See references/game-physics.md

Implementation Patterns

Game Loop Architecture

// Core game loop pattern
const useGameLoop = (updateFn, isRunning) => {
  const frameRef = useRef();
  const lastTimeRef = useRef(0);

  useEffect(() => {
    if (!isRunning) return;

    const loop = (timestamp) => {
      const deltaTime = (timestamp - lastTimeRef.current) / 1000;
      lastTimeRef.current = timestamp;
      updateFn(deltaTime);
      frameRef.current = requestAnimationFrame(loop);
    };

    frameRef.current = requestAnimationFrame(loop);
    return () => cancelAnimationFrame(frameRef.current);
  }, [isRunning, updateFn]);
};

State Management

Separate concerns clearly:

  • Game State: Positions, scores, level, entities
  • UI State: Menus, modals, settings
  • Input State: Current touches, gestures, keys
  • Audio State: What's playing, volume levels

Collision Detection

Start simple, optimize only if needed:

// AABB collision (rectangles)
const checkCollision = (a, b) => (
  a.x < b.x + b.width &&
  a.x + a.width > b.x &&
  a.y < b.y + b.height &&
  a.y + a.height > b.y
);

// Circle collision
const circleCollision = (a, b) => {
  const dx = a.x - b.x;
  const dy = a.y - b.y;
  const distance = Math.sqrt(dx * dx + dy * dy);
  return distance < a.radius + b.radius;
};

Game Feel ("Juice")

Good games feel responsive and alive. Add juice through:

Visual Feedback

  • Screen shake on impacts (subtle: 2-5px, dramatic: 10-15px)
  • Particle effects for collisions, explosions, trails
  • Squash/stretch on bounces and impacts
  • Flash effects on damage or scoring
  • Trails behind fast-moving objects

Audio Feedback

  • Vary pitch slightly on repeated sounds (±10%)
  • Layer sounds for impact (hit + whoosh + bass)
  • Use rising tones for positive events, falling for negative
  • Add subtle ambient soundscape

Timing & Easing

  • Use easing functions, never linear motion
  • Add anticipation before actions (wind-up)
  • Add follow-through after actions (settle)
  • Hit-stop/freeze frames on important impacts (16-50ms)

AI Opponent Design

Difficulty Scaling

const AI_CONFIGS = {
  easy: {
    reactionDelay: 200,    // ms before responding
    predictionError: 0.3,  // randomness in targeting
    speedMultiplier: 0.7,  // movement speed
    mistakeChance: 0.15    // chance to miss intentionally
  },
  medium: {
    reactionDelay: 100,
    predictionError: 0.15,
    speedMultiplier: 0.9,
    mistakeChance: 0.05
  },
  hard: {
    reactionDelay: 50,
    predictionError: 0.05,
    speedMultiplier: 1.0,
    mistakeChance: 0.01
  }
};

AI Behavior Patterns

  • Reactive: Respond to current ball position
  • Predictive: Calculate where ball will arrive
  • Adaptive: Adjust strategy based on player patterns
  • Personality: Add quirks (aggressive, defensive, erratic)

Level Design & Progression

Difficulty Curve

Levels 1-10:   Tutorial zone — Teach mechanics gently
Levels 11-25:  Learning zone — Introduce variations
Levels 26-50:  Challenge zone — Test mastery
Levels 51-75:  Expert zone — Combine mechanics
Levels 76-100: Mastery zone — Peak difficulty

Progression Systems

  • Unlocks: New content as reward for progress
  • Upgrades: Permanent improvements
  • Achievements: Recognition for skill/exploration
  • Leaderboards: Social competition

Level Variation Techniques

  • Modify parameters (speed, size, count)
  • Add/remove elements
  • Change layouts
  • Introduce new mechanics
  • Combine existing mechanics

Visual Style Guidelines

Retro/Arcade (80s)

  • Neon colors: #ff00ff, #00ffff, #39ff14, #ff6b35
  • Scanline/CRT effects
  • Pixel fonts or bold geometric sans-serif
  • Grid backgrounds, glow effects
  • High contrast, dark backgrounds

Modern Minimal

  • Limited color palette (2-3 colors)
  • Clean geometric shapes
  • Generous whitespace
  • Subtle shadows and depth
  • Smooth animations

Pixel Art

  • Consistent pixel scale (don't mix sizes)
  • Limited palette per sprite
  • Clear silhouettes
  • Animation principles still apply

Sound Design Checklist

Essential sounds for most games:

  • Menu navigation (select, confirm, back)
  • Core action sounds (hit, collect, shoot)
  • Feedback sounds (success, failure, damage)
  • Ambient/background music
  • Transition sounds (level start, game over)

Implementation tips:

  • Preload all sounds before gameplay
  • Use audio sprites for web
  • Implement volume controls (music/SFX separate)
  • Support mute toggle
  • Vary sounds slightly to avoid repetition fatigue

Performance Optimization

Critical for Games

  • Target 60 FPS consistently
  • Minimize garbage collection (object pooling)
  • Use useMemo/useCallback for expensive calculations
  • Batch state updates
  • Profile before optimizing

React Native Specific

  • Use react-native-reanimated for animations
  • Avoid JS thread blocking during gameplay
  • Use native driver for animations when possible
  • Consider react-native-game-engine for complex games

Project Structure Template

game-name/
├── src/
│   ├── components/
│   │   ├── game/          # Game entities (Player, Ball, Enemy)
│   │   ├── ui/            # UI components (Button, Modal, Score)
│   │   └── effects/       # Visual effects (Particles, Glow)
│   ├── screens/           # Full screens (Menu, Game, Settings)
│   ├── hooks/             # Custom hooks (useGameLoop, useSound)
│   ├── context/           # State management
│   ├── utils/             # Helpers (physics, math, collision)
│   ├── config/            # Constants, level data, settings
│   ├── assets/
│   │   ├── sounds/
│   │   ├── images/
│   │   └── fonts/
│   └── types/             # TypeScript definitions
├── App.tsx
└── package.json

Quality Checklist

Before considering a game complete:

Gameplay

  • Core loop is satisfying
  • Controls feel responsive (<100ms latency)
  • Difficulty curve is smooth
  • Edge cases handled (pause, background, resume)

Polish

  • Visual feedback for all actions
  • Sound effects for key events
  • Smooth transitions between states
  • Loading states where needed

UX

  • Clear how to play (tutorial or intuitive)
  • Progress is saved
  • Settings are accessible
  • Pause functionality works

Technical

  • Consistent 60 FPS
  • No memory leaks
  • Handles interruptions gracefully
  • Works on target devices/browsers

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenCode

28.49%
按下载量换算19

Claude Code

23.77%
按下载量换算16

Antigravity

17.81%
按下载量换算12

Gemini CLI

13.04%
按下载量换算9

windsurf

8.77%
按下载量换算6

Codex

3.93%
按下载量换算3

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills