Skillpedia
برمجة عامة6.6k · #13808

fps-shooter

ما الذي تفعله

ترشد هذه المهارة بناء لعبة تصويب من منظور الشخص الأول، من الحركة ونظر الفأرة إلى الإطلاق وإحساس القتال. وهي لمطوري الألعاب الذين يريدون تصويبًا دقيقًا وإصابات مرضية.

متى تستخدمها

  • ✓عندما تبني لعبة تصويب من منظور الشخص الأول يكون التصويب والإطلاق فعلها الرئيسي.
  • ✓عندما تحتاج إلى الاختيار بين السلاح الفوري وسلاح المقذوفات.
  • ✓عندما لا تبدو الأسلحة صحيحة وتحتاج إلى ضبط الانتشار والارتداد أو زمن القتل.

رابط المهارة

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

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/gamedev-skills/awesome-gamedev-agent-skills/blob/main/skills/genres/fps-shooter/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“أصنع لعبة تصويب من منظور الشخص الأول. هل تجهز نظر الفأرة وبندقية فورية وعدوًا بسيطًا يحتاج إلى عدة إصابات لهزيمته؟”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

يبني الوكيل متحكمًا بالشخص الأول فيه حركة ونظر بالفأرة، ويضيف نموذجًا للإطلاق بالفوري أو بالمقذوفات، ويجهز الصحة وسلوك العدو. ثم يضبط الإحساس بقيم زمن القتل والارتداد والانتشار.

المحتوى التقني (ملف 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
الأسئلة الشائعة

ما الإطلاق الفوري (hitscan)؟

هو طلقة تتحقق من الإصابة فورًا على طول خط، بدل أن تطير مقذوفًا.

ما زمن القتل (time-to-kill)؟

هو الوقت اللازم لهزيمة العدو، وتستعمله المهارة لضبط إحساس القتال.

هل تغطي ألعاب التصويب من الشخص الثالث؟

يمكن إعادة استعمال نموذج التصويب، لكن الكاميرا والمتحكم يجب أن يأتيا من مهارة الشخص الثالث.

التفاصيل

الوصف الأصلي من المؤلف

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
آخر تحديث
28‏/10‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة