본문으로 건너뛰기
Skillpedia
일반 코딩6.6k · #13808

fps-shooter

하는 일

이동과 마우스 시점부터 사격과 전투 감각까지, 1인칭 슈터를 만드는 과정을 안내합니다. 정확한 조준과 만족스러운 명중을 원하는 게임 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓조준과 사격이 핵심 동작인 1인칭 슈터를 만들고 있을 때.
  • ✓히트스캔과 발사체 무기 중 하나를 골라야 할 때.
  • ✓총이 제대로 느껴지지 않아 탄 퍼짐, 반동, 처치 시간을 조정해야 할 때.

스킬 링크

https://github.com/gamedev-skills/awesome-gamedev-agent-skills/blob/main/skills/genres/fps-shooter/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/gamedev-skills/awesome-gamedev-agent-skills/blob/main/skills/genres/fps-shooter/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“1인칭 슈터를 만들고 있습니다. 마우스 시점, 히트스캔 소총, 몇 번 맞아야 쓰러지는 간단한 적을 설정해 주시겠어요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 이동과 마우스 시점을 갖춘 1인칭 컨트롤러를 만들고, 히트스캔이나 발사체를 쓰는 사격 모델을 추가하며, 체력과 적의 행동을 설정합니다. 처치 시간, 반동, 퍼짐 값을 이용해 전투감을 조정합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

FPS Shooter

A playbook for first-person shooters — the look/move controller, the shooting model, weapon feel, and combat. This is a compositional skill: it wires a 3D controller, input, and AI into a shooter. It does not re-teach 3D nodes or raycasts; it defines the shooting model and the feel knobs (TTK, recoil, spread) that decide whether the guns feel good.

When to use

  • Use when building a first-person game whose core verb is aim and shoot — arena shooter, tactical FPS, PvE shooter, boomer-shooter.
  • Use when deciding hitscan vs. projectile, tuning time-to-kill, recoil, spread, or aim feel.

When not to use: third-person/2D shooting → reuse the shooting model here but build the camera/controller from the relevant genre. Wave survival with towers → tower-defense. For the camera/character body itself, use godot-3d-essentials / unreal-cpp-gameplay.

Core loop

Scan → acquire a target → aim and fire → confirm the kill (feedback) → reposition / reload / advance. The whole experience rests on the aim-and-fire micro-loop feeling crisp: responsive look, clear hit feedback, and a death that reads instantly.

Must-have systems

  1. First-person controller — move (WASD/stick) + mouse/stick look, gravity, jump/crouch.
  2. Camera — eye-height view, configurable FOV and sensitivity, recoil kick.
  3. Shooting model — hitscan raycast and/or projectile spawn; one impact path for feedback.
  4. Weapons + ammo — damage, fire rate, magazine, reload, switching.
  5. Health + damage — HP, hit/headshot multipliers, death; player and enemy share the model.
  6. Enemy AI — perceive → alert → attack → search; cover and reaction delays (game-ai).
  7. Feedback — hitmarkers, impact decals/particles, hit sounds, screen shake, kill confirms.
  8. Objectives — what you do besides shoot: clear, capture, survive, escort.

Design knobs

Knob Effect Sane default
Time-to-kill (TTK) lethality, forgiveness Tune dmg × fire-rate × HP together (refs).
Hitscan vs projectile aim skill type Hitscan = flick; projectile = lead/dodge.
Damage falloff range limiting Full to ~20 m, floor by ~60 m.
Headshot multiplier skill reward ~1.5–2.0×.
Recoil pattern learnable kick Fixed pattern > pure random.
Spread (bloom) suppress laser-accuracy First shot accurate; grows while firing.
Fire rate / magazine / reload rhythm, downtime Reload = vulnerability window.
Mouse sensitivity / FOV comfort, readability Always expose both as options.
Aim assist (pad) controller parity Magnetism/slowdown near targets.

Patterns

1. Hitscan shot (instant ray, the workhorse)

# Pseudocode. Cast from the camera; first hit takes damage scaled by range + headshot.
direction = apply_spread(camera.forward, current_spread)   # cone sample, see refs §4
hit = raycast(camera.world_position, direction, max_dist=RANGE, mask=SHOOTABLE, exclude=[shooter])
if hit:
    dmg = base_damage * falloff(hit.distance)
    if hit.is_head: dmg *= HEADSHOT_MULT
    hit.actor.take_damage(dmg)
    spawn_impact_fx(hit.point, hit.normal)        # decal + sound + hitmarker

2. Projectile shot (dodgeable, leads the target)

# Pseudocode. Spawn a moving body; it deals damage on its own collision.
p = spawn(projectile_scene, at=muzzle.world_position)
p.velocity = camera.forward * PROJECTILE_SPEED
p.on_hit   = lambda other, point: (other.take_damage(base_damage), explode_fx(point))
p.lifetime = RANGE / PROJECTILE_SPEED             # despawn so shots don't live forever

3. Time-to-kill (balance the trio together)

# Pseudocode. TTK falls out of HP, per-shot damage, and fire rate — tune as one system.
shots_to_kill = ceil(target_hp / damage_per_shot)
ttk_seconds   = (shots_to_kill - 1) / fire_rate_per_second   # first shot at t=0

Pitfalls / failure modes

  • Look tied to frame rate or unscaled by dt → sensitivity changes with FPS. Look should be driven by raw mouse delta (never multiplied by dt); movement integration uses dt (see physics-tuning). Clamp pitch to about ±89° so the view cannot flip over.
  • Shots that "do nothing" → the ray hits the shooter's own collider, misses hitboxes built from trigger/area volumes, or stops on an invisible trigger zone. Exclude the shooter and set the trigger rule explicitly per engine (refs §2 table).
  • **Recoil recovery fights t
자주 묻는 질문

히트스캔이란 무엇인가요?

발사체를 날리는 대신, 선을 따라 즉시 명중을 판정하는 사격입니다.

처치 시간이란 무엇인가요?

적을 쓰러뜨리는 데 걸리는 시간입니다. 스킬은 이것으로 전투감을 조정합니다.

3인칭 슈터도 다루나요?

사격 모델은 재사용할 수 있지만, 카메라와 컨트롤러는 3인칭 스킬에서 가져와야 합니다.

상세 정보

작성자의 원본 설명

Build a first-person shooter: move+mouse-look controller, hitscan or projectile shooting, weapons, health, and enemy AI. Use for an FPS, or tuning aim feel, time-to-kill, recoil, or spread.

repo: gamedev-skills/awesome-gamedev-agent-skills

인기도

GitHub 스타
6.6k
순위
#13808
라이선스
Apache-2.0
업데이트
2026. 10. 28.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬