game-feel
БесплатноБез исполняемых скриптовНе проверенAdds engine-neutral juice to a working mechanic: trauma-based screen shake, hit-stop, eased tweens, squash and stretch, and knockback. Use when the game feels…
от gamedev-skills★ 12 656 звёзд на GitHubОб этом скилле
Game feel (juice)
Feedback sells an action: several small, brief, exaggerated responses fired together on one event. This skill adds that layer on top of a working mechanic. It never changes the simulation, so shake moves the camera and hit-stop scales time; neither moves bodies or stalls gameplay logic.
When to use
- A hit, jump, landing, dash, pickup, death or button press works but feels weak.
- Adding or tuning shake, hit-stop, easing, squash and stretch, flash, knockback, number pops.
- Deciding how much juice is enough, and adding reduce-shake and reduce-flash options.
Not this skill: jump controller math (platformer), generic input buffering and rebinding
(input-systems), camera follow, deadzones and look-ahead (camera-systems, which exposes the
offset this skill writes), mixing and ducking (audio-design), shader dissolves
(shader-programming), tween and particle node APIs (godot-animation, unity-animation).
Workflow
- Find the event hooks. Juice attaches to discrete events (
hit,landed,picked_up,died). If the mechanic emits none, add signals or C# events first; never poll for them. - Assign each event a tier (table below), then fire that tier's bundle from one
feedback(tier, pos)call so the whole game stays proportional. - Start with 2-3 channels per event (sound, particles, shake), play, and add channels until the event reads. Hit-stop and shake are the strongest and most abused; keep them for impacts.
- Ease everything that moves. Overshoot (
back) for pops, ease-out for settling, ease-in only for anticipation. - Decide what runs during hit-stop. Time scale slows timers, tweens and
_process/Updatedelta. Shake decay and UI tweens should usually use real time; the frozen pose should not. - Ship accessibility toggles: shake strength 0-100 %, reduce flashing, reduce camera motion.
- Verify with a headless check, then by eye. Fire the event twice 30 ms apart and assert
time scale is back to 1.0 after the longer stop, trauma reaches 0 within
1 / decayseconds, and every scale tween ends at exactly its rest value. Then ask the user to play it and report whether the hit reads, whether anything feels nauseating and whether input still registers during the freeze.
Tiers
| Tier | Trauma | Hit-stop | Particles | Extra | Example events |
|---|---|---|---|---|---|
| small | 0.10-0.20 | none | 0-4 | tick SFX | footstep, coin, UI hover |
| medium | 0.30-0.50 | 0.04-0.06 s | 6-12 | flash | normal hit, landing, pickup |
| large | 0.70-1.00 | 0.10-0.15 s | 20-40 | flash, zoom, number | crit, boss hit, death, explosion |
Patterns
1. Screen shake from decaying trauma
# Godot 4.7 Camera2D script. Shake = trauma^2, so light hits barely move and heavy hits punch.
# Writes the camera OFFSET (visual only). Uses real time so the shake keeps decaying during
# hit-stop instead of freezing the camera off-centre.
# Camera2D.ignore_rotation defaults to true; set it false or the roll does nothing.
extends Camera2D
@export var decay := 1.2 # trauma lost per real second
@export var max_offset := Vector2(12, 8)
@export var max_roll := 0.1 # radians
@export var strength := 1.0 # player setting, 0..1
var trauma := 0.0
var _t := 0.0
func add_trauma(amount: float) -> void:
trauma = clampf(trauma + amount, 0.0, 1.0) # hits add; they don't reset
func _process(dt: float) -> void:
if trauma <= 0.0:
return
var real_dt := dt / maxf(Engine.time_scale, 0.0001)
trauma = maxf(trauma - decay * real_dt, 0.0)
var shake := trauma * trauma * strength
_t += real_dt * 30.0
# Summed sines at unrelated rates: smooth, never a per-frame random buzz.
offset = Vector2(max_offset.x * shake * sin(_t * 1.7), max_offset.y * shake * sin(_t * 2.3))
rotation = max_roll * shake * sin(_t * 1.1)
if trauma == 0.0:
offset = Vector2.ZERO
rotation = 0.0
Unity: drive CinemachineBasicMultiChannelPerlin AmplitudeGain/FrequencyGain from
trauma * trauma, decaying with Time.unscaledDeltaTime; for one-off hits use a
CinemachineImpulseSource on the hitter and a CinemachineImpulseListener on the camera.
2. Hit-stop that survives overlapping hits
# Godot 4.7. Slow time, restore after a REAL-TIME delay; only the newest call restores.
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 slowed.
await get_tree().create_timer(duration, true, false, true).timeout
if my_id == _hit_stop_id: # a newer hit-stop owns the restore
Engine.time_scale = 1.0
// Unity. WaitForSecondsRealtime ignores Time.timeScale; WaitForSeconds never finishes at 0.
int _hitStopId;
IEnumerator
Установить game-feel в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл game-feel?
Adds engine-neutral juice to a working mechanic: trauma-based screen shake, hit-stop, eased tweens, squash and stretch, and knockback. Use when the game feels flat, weightless or not punchy, or hits and jumps should feel satisfying. Not for coyote time (`platformer`), input buffering (`input-systems`), camera follow (`camera-systems`) or HUD layout (`game-ui-ux`).
Как установить скилл game-feel?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл game-feel запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic