77 game-dev skills for AI coding agents — Godot, Unity, Unreal, Phaser, PixiJS, three.js, Bevy, pygame, LÖVE, Roblox. Portable SKILL.md Agent Skills (the format Anthropic launched as Claude Skills), with a router that loads the right skill for your engine and task. Runs in Claude Code, Cursor, Kiro, Codex, Copilot, Gemini CLI and more.
Python agent-skillsai-agentsantigravityawesome-listclaude-codeclinecodexcursorgame-devgame-developmentgamedevgemini-cligithub-copilotgodotkirooh-my-piskillsunityunrealwindsurf
fix(game-feel): working Unity ease-out-back pop, Camera2D roll and overlapping hit-stop fixes, flash threshold
Kiro Crew919d72723c3b
diff --git a/skills/disciplines/game-feel/SKILL.md b/skills/disciplines/game-feel/SKILL.mdindex 54eba4a..3dafb5b 100644--- a/skills/disciplines/game-feel/SKILL.md+++ b/skills/disciplines/game-feel/SKILL.md@@ -65,6 +65,7 @@ state); **(2)** scale juice to event importance — a footstep is not a boss dea```gdscript# Godot 4.7. Store trauma 0..1; shake = trauma^2 so small hits barely move, big hits punch.# Drives a Camera2D OFFSET (the visual), never the player body. Decays every frame.+# Camera2D.ignore_rotation defaults to true, so set it false or the roll does nothing.@export var decay := 1.2 # trauma lost per second@export var max_offset := Vector2(12, 8)@export var max_roll := 0.1 # radians@@ -84,24 +85,30 @@ func _process(dt: float) -> void:max_offset.y * shake * sin(_t * 2.3))rotation = max_roll * shake * sin(_t * 1.1)# Unity 6.3 LTS: identical model on a CinemachineCamera via CinemachineBasicMultiChannelPerlin-# (set AmplitudeGain/FrequencyGain from trauma^2) — see camera-systems.+# (set AmplitudeGain/FrequencyGain from trauma^2); for one-off impacts, CinemachineImpulseSource+# on the hitter + CinemachineImpulseListener on the camera — see camera-systems.```### 2. Hit-stop / freeze frame (sell impact by briefly stopping time)```gdscript# Godot 4.7. Drop time scale, then restore after a REAL-TIME delay (unaffected by time_scale).-func hit_stop(duration := 0.08, scale := 0.05) -> void:- Engine.time_scale = scale+var _hit_stop_id := 0++func hit_stop(duration := 0.08, slow := 0.05) -> void:+ _hit_stop_id += 1+ var my_id := _hit_stop_id+ Engine.time_scale = slow# 4th arg ignore_time_scale=true → the timer still fires while the game is frozen.await get_tree().create_timer(duration, true, false, true).timeout- Engine.time_scale = 1.0+ if my_id == _hit_stop_id: # a newer hit-stop owns the restore; don't cut it short+ Engine.time_scale = 1.0``````csharp// Unity 6.3 LTS (C#). WaitForSecondsRealtime ignores Time.timeScale, so the timer still elapses.-IEnumerator HitStop(float duration = 0.08f, float scale = 0.05f) {- Time.timeScale = scale;+IEnumerator HitStop(float duration = 0.08f, float slow = 0.05f) {+ Time.timeScale = slow;yield return new WaitForSecondsRealtime(duration);Time.timeScale = 1f; // RIGHT: real-time wait. WRONG: WaitForSeconds (never resumes at scale 0)}@@ -140,6 +147,8 @@ func feedback(event_pos: Vector2, tier: String) -> void:never advances). Use a real-time wait (`WaitForSecondsRealtime`, or Godot's`ignore_time_scale` timer).- **Hit-stop on every frame of a held attack** locks the game. Trigger it once per impact.+- **Overlapping hit-stops** (two hits 30 ms apart) let the first timer restore time scale in+ the middle of the second freeze. Let only the newest call restore it, as above.- **Linear tweens everywhere** feel robotic. Ease almost everything; reserve overshoot(BACK/ELASTIC) for "pop" and ease-out for "settle".- **Permanent exaggeration** (scale never returns, shake never decays) becomes the new normaldiff --git a/skills/disciplines/game-feel/references/feedback-recipes.md b/skills/disciplines/game-feel/references/feedback-recipes.mdindex 3ebcc3d..6abb720 100644--- a/skills/disciplines/game-feel/references/feedback-recipes.md+++ b/skills/disciplines/game-feel/references/feedback-recipes.md@@ -41,13 +41,18 @@ or a third-party tween package if the project already uses one. Keep the *curvesame regardless of tool.```csharp-// Unity 6.3 LTS: a minimal eased scale "pop" in a coroutine (no external deps).+// Unity 6.3 LTS: an eased scale "pop" in a coroutine (no external deps).+static float EaseOutBack(float k) { // 0 -> 1, peaks ~10% past 1+ const float c1 = 1.70158f, c3 = c1 + 1f;+ float m = k - 1f;+ return 1f + c3 * m * m * m + c1 * m * m;+}+IEnumerator Pop(Transform t, float dur = 0.18f) {- t.localScale = new Vector3(1.3f, 0.7f, 1f); // squash on the event- for (float e = 0; e < dur; e += Time.deltaTime) {- float k = e / dur;- float back = 1f + 2.7f * Mathf.Pow(1 - k, 2) * (k - 0); // overshoot-ish- t.localScale = Vector3.Lerp(t.localScale, Vector3.one, k * k);+ var squash = new Vector3(1.3f, 0.7f, 1f); // squash on the event+ for (float e = 0f; e < dur; e += Time.deltaTime) {+ // Unclamped, so the overshoot past Vector3.one survives the lerp.+ t.localScale = Vector3.LerpUnclamped(squash, Vector3.one, EaseOutBack(e / dur));yield return null;}t.localScale = Vector3.one;@@ -68,7 +73,7 @@ IEnumerator Pop(Transform t, float dur = 0.18f) {0.15 s heavy). Optionally freeze only the attacker+target, not the whole world.- **Anticipation & follow-through:** a tiny wind-up before a big action and a settle after readas weight; this is animation, not code (engine animation skill).-- **Chromatic/▒vignette/zoom punch:** post-process nudges for big moments; keep brief.+- **Chromatic/vignette/zoom punch:** post-process nudges for big moments; keep brief.## 4. Importance tiers (keep the whole game proportional)@@ -85,6 +90,8 @@ feeling either dead (under-juiced) or exhausting (everything maxed).- **Reduce screen shake** (scale trauma output by a 0–100% setting, default ~60–80%).- **Reduce/disable flashing** (photosensitivity) — replace white flashes with a static tint.+ Even with flashing on, keep any large-area flash at or under three flashes in any one-second+ window (WCAG 2.3.1 general flash threshold; Xbox Accessibility Guideline 118, Photosensitivity).- **Reduce camera motion** — cut shake roll and zoom punches.These pair with `game-ui-ux` (settings menu) and `input-systems` (accessibility section).@@ -95,6 +102,7 @@ These pair with `game-ui-ux` (settings menu) and `input-systems` (accessibilityone-shot; `Engine.time_scale` + `ignore_time_scale` timer; shake on `Camera2D.offset`.- **Unity 6.3 LTS:** coroutines + `SmoothDamp`/curves (or a tween package); `ParticleSystem.Play()`;`Time.timeScale` + `WaitForSecondsRealtime`; shake via `CinemachineBasicMultiChannelPerlin`- amplitude/frequency driven by `trauma^2` (see `camera-systems`).+ amplitude/frequency driven by `trauma^2`, or `CinemachineImpulseSource.GenerateImpulse()` for+ one-off hits (see `camera-systems`).- **Web (Phaser/Pixi/three):** tween via the engine/library tween; `this.cameras.main.shake()`in Phaser; `requestAnimationFrame`-driven eases elsewhere.