---
name: godot-genre-shooter-fps
description: "Expert blueprint for First-Person Shooters: fps_camera_look, fps_movement_logic, hitscan_weapon_query, weapon_bobbing_system, procedural recoil, and FPS NEVER rules. Shared TPS/cover theory links to godot-genre-shooter. Keywords: FPS, movement physics, weapon bobbing, camera sway, hitscan, viewmodel, air control."
title: godot-genre-shooter-fps
canonical_url: https://skilld.dev/gh/thedivergentai/game-dev-agentic-skills/godot-genre-shooter-fps
last_updated: 2026-09-29T08:32:57.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> Supporting files, fetch one when the Skill refers to it: [references/fps-weapon-theory.md](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/godot-genre-shooter-fps/references/fps-weapon-theory.md), [references/migration-notes.md](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/godot-genre-shooter-fps/references/migration-notes.md), [scripts/advanced_fps_controller.gd](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/godot-genre-shooter-fps/scripts/advanced_fps_controller.gd), [scripts/advanced_weapon_controller.gd](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/godot-genre-shooter-fps/scripts/advanced_weapon_controller.gd), [scripts/aim_assist.gd](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/godot-genre-shooter-fps/scripts/aim_assist.gd), [scripts/bullet_decal_spawner.gd](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/godot-genre-shooter-fps/scripts/bullet_decal_spawner.gd), [scripts/fps_camera_look.gd](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/godot-genre-shooter-fps/scripts/fps_camera_look.gd), [scripts/fps_movement_logic.gd](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/godot-genre-shooter-fps/scripts/fps_movement_logic.gd), [scripts/frame_perfect_input.gd](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/godot-genre-shooter-fps/scripts/frame_perfect_input.gd), [scripts/hitscan_weapon_logic.gd](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/godot-genre-shooter-fps/scripts/hitscan_weapon_logic.gd), [scripts/hitscan_weapon_query.gd](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/godot-genre-shooter-fps/scripts/hitscan_weapon_query.gd), [scripts/player_anim_bridge.gd](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/godot-genre-shooter-fps/scripts/player_anim_bridge.gd), [scripts/procedural_recoil_handler.gd](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/godot-genre-shooter-fps/scripts/procedural_recoil_handler.gd), [scripts/recoil_system.gd](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/godot-genre-shooter-fps/scripts/recoil_system.gd), [scripts/server_projectile_instance.gd](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/godot-genre-shooter-fps/scripts/server_projectile_instance.gd), [scripts/weapon_bobbing_system.gd](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/godot-genre-shooter-fps/scripts/weapon_bobbing_system.gd), [scripts/weapon_spread_calc.gd](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/godot-genre-shooter-fps/scripts/weapon_spread_calc.gd), [scripts/weapon_state_machine.gd](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/godot-genre-shooter-fps/scripts/weapon_state_machine.gd).
>
> If the user asked to install this Skill, run `npx skilld install thedivergentai/game-dev-agentic-skills/godot-genre-shooter-fps`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/godot-genre-shooter-fps`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/thedivergentai/game-dev-agentic-skills/godot-genre-shooter-fps) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/godot-genre-shooter-fps`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/godot-genre-shooter-fps --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/godot-genre-shooter-fps --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

## MANDATORY script reads (start here)

1. [fps_camera_look.gd](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/godot-genre-shooter-fps/scripts/fps_camera_look.gd) — raw `_input` mouse look (yaw/pitch)  
2. [fps_movement_logic.gd](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/godot-genre-shooter-fps/scripts/fps_movement_logic.gd) — accel/friction/air control  
3. [hitscan_weapon_query.gd](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/godot-genre-shooter-fps/scripts/hitscan_weapon_query.gd) — space-state hitscan  
4. [weapon_bobbing_system.gd](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/godot-genre-shooter-fps/scripts/weapon_bobbing_system.gd) — viewmodel bob/sway  

Also: [procedural_recoil_handler.gd](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/godot-genre-shooter-fps/scripts/procedural_recoil_handler.gd), [hitscan_weapon_logic.gd](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/godot-genre-shooter-fps/scripts/hitscan_weapon_logic.gd), [advanced_fps_controller.gd](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/godot-genre-shooter-fps/scripts/advanced_fps_controller.gd), [weapon_state_machine.gd](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/godot-genre-shooter-fps/scripts/weapon_state_machine.gd), [frame_perfect_input.gd](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/godot-genre-shooter-fps/scripts/frame_perfect_input.gd), [bullet_decal_spawner.gd](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/godot-genre-shooter-fps/scripts/bullet_decal_spawner.gd), [weapon_spread_calc.gd](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/godot-genre-shooter-fps/scripts/weapon_spread_calc.gd), [server_projectile_instance.gd](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/godot-genre-shooter-fps/scripts/server_projectile_instance.gd), [player_anim_bridge.gd](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/godot-genre-shooter-fps/scripts/player_anim_bridge.gd), [recoil_system.gd](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/godot-genre-shooter-fps/scripts/recoil_system.gd) (pattern + bloom), [aim_assist.gd](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/godot-genre-shooter-fps/scripts/aim_assist.gd) (controller friction/magnetism).  
`advanced_weapon_controller.gd` is shared theory — keep FPS feel in the scripts above; genre routing for TPS → sibling skill.

## Core Loop

`Move/Look → Aim → Fire (hitscan) → Recoil recover → Acquire`

## NEVER Do (FPS)

### Gunplay & registration
- **NEVER** hit-detect in `_process` — use `_physics_process` + `intersect_ray`.
- **NEVER** apply recoil only to the gun mesh — kick **camera** + bloom/spread.
- **NEVER** trust client damage — server authority + lag compensation.
- **NEVER** forget `exclude` / `add_exception` for the player RID.
- **NEVER** use `==` on float cooldowns — `is_equal_approx`.

### Input & movement
- **NEVER** poll mouse in `_physics_process` — `_input` / `_unhandled_input` for look.
- **NEVER** accumulate look on a raw `Transform3D` — store yaw/pitch floats.
- **NEVER** multiply velocity by `delta` before `move_and_slide()`.
- **NEVER** use `Transform3D.looking_at` for muzzle forward — use `-transform.basis.z`.

### Polish
- **NEVER** single `AudioStreamPlayer` for gunfire — layer mechanical + shot + tail.
- **NEVER** leave decals forever — fade/pool ([bullet_decal_spawner.gd](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/godot-genre-shooter-fps/scripts/bullet_decal_spawner.gd)).
- **NEVER** hardcode weapon stats — WeaponData Resources.
- **NEVER** use plain Strings for hot weapon states — `StringName`.

## Advanced FPS (keep)

### Viewmodel sway / bob
Procedural sine bob + look sway — [weapon_bobbing_system.gd](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/godot-genre-shooter-fps/scripts/weapon_bobbing_system.gd).

### Step-up
Ray forward/down from `step_height` when `is_on_wall()` after `move_and_slide()`; lift to step top for stairs.

### Tactical lean
Roll camera Z + local X offset from `Input.get_axis("lean_left","lean_right")` with lerp.

## Shared weapon theory

Hitscan vs projectile, spray patterns, and net prediction details that are not FPS-rig specific → [godot-genre-shooter](https://github.com/thedivergentai/gd-agentic-skills/blob/main/skills/godot-genre-shooter/SKILL.md) + combat/multiplayer complements. Implement FPS fire path via [hitscan_weapon_query.gd](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/godot-genre-shooter-fps/scripts/hitscan_weapon_query.gd) + [procedural_recoil_handler.gd](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/godot-genre-shooter-fps/scripts/procedural_recoil_handler.gd) + [recoil_system.gd](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/godot-genre-shooter-fps/scripts/recoil_system.gd).

> **MANDATORY** for hitscan/projectile tradeoffs, three-layer recoil, aim assist, weapon balance matrices, and client prediction: [fps-weapon-theory.md](https://skilld.dev/api/skills-raw/thedivergentai/game-dev-agentic-skills/godot-genre-shooter-fps/references/fps-weapon-theory.md). **Do NOT Load** after MANDATORY script reads unless extending beyond bob/step/lean.

## Reference

> Progressive disclosure: open Official Documentation links only when researching a specific API; load Related Skills when routing to a peer domain — do not preload the whole lattice.

### Official Documentation
- [Ray-casting](https://docs.godotengine.org/en/stable/tutorials/physics/ray-casting.html) — PhysicsDirectSpaceState3D `intersect_ray` patterns for hitscan registration without Area3D ballistics.
- [Physics introduction](https://docs.godotengine.org/en/stable/tutorials/physics/physics_introduction.html) — collision layers/masks, layers for player exclude, and physics tick vs visual frame for gunplay.
- [Using 3D transforms](https://docs.godotengine.org/en/stable/tutorials/3d/using_transforms.html) — basis axes and `-transform.basis.z` forward vectors for aim, recoil, and muzzle direction.
- [Using InputEvent](https://docs.godotengine.org/en/stable/tutorials/inputs/inputevent.html) — `_input` vs `_physics_process` so mouse look stays zero-latency while movement stays physics-synced.
- [Mouse and input coordinates](https://docs.godotengine.org/en/stable/tutorials/inputs/mouse_and_input_coordinates.html) — relative mouse motion, capture, and screen-center projection for aim rays.
- [Controllers, gamepads, and joysticks](https://docs.godotengine.org/en/stable/tutorials/inputs/controllers_gamepads_joysticks.html) — analog look axes and deadzones that aim-assist friction/magnetism build on.
- [Using decals](https://docs.godotengine.org/en/stable/tutorials/3d/using_decals.html) — Decal node projection for bullet impacts instead of Sprite3D/QuadMesh stickers.
- [High-level multiplayer](https://docs.godotengine.org/en/stable/tutorials/networking/high_level_multiplayer.html) — RPC authority and fire-event patterns for server-validated hitscan without syncing every bullet.
- [Using AnimationTree](https://docs.godotengine.org/en/stable/tutorials/animation/animation_tree.html) — blend/state machines for idle/aim/fire/reload without `!` in expressions.
- [Resources](https://docs.godotengine.org/en/stable/tutorials/scripting/resources.html) — WeaponData Resource stats (damage, recoil, spread) instead of hardcoded class constants.
- [Audio streams](https://docs.godotengine.org/en/stable/tutorials/audio/audio_streams.html) — layered mechanical/shot/tail streams for gunfire weight.
- [Optimization using Servers](https://docs.godotengine.org/en/stable/tutorials/performance/using_servers.html) — RenderingServer RID paths for high-volume visual projectiles without SceneTree spam.

### Related Skills

#### Prerequisites
- [godot-project-foundations](https://github.com/thedivergentai/gd-agentic-skills/blob/main/skills/godot-project-foundations/SKILL.md) — scene tree, InputMap actions, and Resource import basics before FPS controllers and WeaponData wiring.
- [godot-input-handling](https://github.com/thedivergentai/gd-agentic-skills/blob/main/skills/godot-input-handling/SKILL.md) — mouse capture, action buffering, and look vs move split that frame-perfect fire and camera look depend on.
- [godot-raycasting-queries](https://github.com/thedivergentai/gd-agentic-skills/blob/main/skills/godot-raycasting-queries/SKILL.md) — physics-synced ray/shape queries and exclude RIDs that hitscan registration builds on.

#### Complements
- [godot-camera-systems](https://github.com/thedivergentai/gd-agentic-skills/blob/main/skills/godot-camera-systems/SKILL.md) — FOV punch, lean pivots, and shake stacks that compose with procedural recoil and weapon bob.
- [godot-combat-system](https://github.com/thedivergentai/gd-agentic-skills/blob/main/skills/godot-combat-system/SKILL.md) — duck-typed damage application and hit-zone multipliers shared with hitscan/projectile confirm paths.
- [godot-audio-systems](https://github.com/thedivergentai/gd-agentic-skills/blob/main/skills/godot-audio-systems/SKILL.md) — bus routing and pooled one-shots for layered gunfire without a single shared AudioStreamPlayer.
- [godot-multiplayer-networking](https://github.com/thedivergentai/gd-agentic-skills/blob/main/skills/godot-multiplayer-networking/SKILL.md) — authoritative fire RPCs and unreliable movement transfer modes for competitive hit validation.
- [godot-adapt-single-to-multiplayer](https://github.com/thedivergentai/gd-agentic-skills/blob/main/skills/godot-adapt-single-to-multiplayer/SKILL.md) — client prediction / server reconciliation shells before lag-compensated shot validation.
- [godot-state-machine-advanced](https://github.com/thedivergentai/gd-agentic-skills/blob/main/skills/godot-state-machine-advanced/SKILL.md) — StringName fire/reload/idle machines without stringly-typed weapon states.
- [godot-animation-tree-mastery](https://github.com/thedivergentai/gd-agentic-skills/blob/main/skills/godot-animation-tree-mastery/SKILL.md) — AnimationTree parameters and blend spaces driven by local velocity bridges.
- [godot-performance-optimization](https://github.com/thedivergentai/gd-agentic-skills/blob/main/skills/godot-performance-optimization/SKILL.md) — pooling, Decal budgets, and RenderingServer RID density for bullet visuals and impacts.
- [godot-genre-shooter](https://github.com/thedivergentai/gd-agentic-skills/blob/main/skills/godot-genre-shooter/SKILL.md) — broader TPS/hybrid shooter architecture when the project is not FPS-first.

#### Downstream / consumers
- [godot-monte-carlo-balancer](https://github.com/thedivergentai/gd-agentic-skills/blob/main/skills/godot-monte-carlo-balancer/SKILL.md) — simulate weapon asymmetry matrices, TTK bands, and bloom/recoil knobs before shipping balance tables.
- [godot-genre-battle-royale](https://github.com/thedivergentai/gd-agentic-skills/blob/main/skills/godot-genre-battle-royale/SKILL.md) — large-scale relevancy and lag-compensated combat that reuses FPS hitscan/recoil feel inside BR matches.

#### Master
- [godot-master](https://github.com/thedivergentai/gd-agentic-skills/blob/main/skills/godot-master/SKILL.md) — library router and mirrored module entry; open when discovering which Domain Skill owns a cross-cutting FPS concern.
