Skip to content
Skillpedia
General coding6.6k Β· #13808

fps-shooter

What it does

This skill guides building a first-person shooter, from the movement and mouse look to shooting and combat feel. It is for game developers who want crisp aiming and satisfying hits.

When to use it

  • βœ“When you are building a first-person shooter where aiming and shooting is the main action.
  • βœ“When you need to choose between hitscan and projectile weapons.
  • βœ“When guns do not feel right and you need to tune spread, recoil, or time-to-kill.

Skill link

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

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

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.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œI am making a first-person shooter. Can you set up the mouse look, a hitscan rifle, and a simple enemy that takes a few hits to defeat?”

5 new skills a week. 1 minute to read.

How it works

The agent builds a first-person controller with movement and mouse look, adds a shooting model with hitscan or projectiles, and sets up health and enemy behavior. It then tunes the feel using time-to-kill, recoil, and spread values.

Technical content (original SKILL.md)

Original text by the author, straight from 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
FAQ

What is hitscan?

It is a shot that checks for a hit instantly along a line, rather than flying a projectile.

What is time-to-kill?

It is how long it takes to defeat an enemy, and the skill uses it to tune combat feel.

Does it cover third-person shooters?

The shooting model can be reused, but the camera and controller must come from a third-person skill.

Details

Original description by the author

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

Popularity

GitHub stars
6.6k
Ranking position
#13808
License
Apache-2.0
Updated
10/28/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills