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.mdCopy 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
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
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
- First-person controller β move (WASD/stick) + mouse/stick look, gravity, jump/crouch.
- Camera β eye-height view, configurable FOV and sensitivity, recoil kick.
- Shooting model β hitscan raycast and/or projectile spawn; one impact path for feedback.
- Weapons + ammo β damage, fire rate, magazine, reload, switching.
- Health + damage β HP, hit/headshot multipliers, death; player and enemy share the model.
- Enemy AI β perceive β alert β attack β search; cover and reaction delays (
game-ai). - Feedback β hitmarkers, impact decals/particles, hit sounds, screen shake, kill confirms.
- 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 bydt); movement integration usesdt(seephysics-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.
Popularity
- GitHub stars
- 6.6k
- Ranking position
- #13808
- License
- Apache-2.0
- Updated
- 10/28/2026
Comments
- β¦
More skills from this repository
router
6.6kHelps your agent pick the right game development skill for a request by detecting your engine and the kind of task you need.
ai-behavior-trees-utility-ai
6.6kHelps your agent build a behavior tree and utility AI system for game enemies and characters that choose actions by priority and score.
audio-design
6.6kTeaches your agent game audio mixing: buses, decibel volume, ducking under dialogue, adaptive music and sound effect variation.
camera-systems
6.6kHelps your agent build game cameras that follow smoothly, stay inside the level, and orbit or look around in 3D.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.