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(phaser): correct arcade collision category and drag guidance
Kiro Crew4ff901163743
diff --git a/skills/web-engines/phaser-arcade-physics/SKILL.md b/skills/web-engines/phaser-arcade-physics/SKILL.mdindex 63d2b46..e5446bb 100644--- a/skills/web-engines/phaser-arcade-physics/SKILL.md+++ b/skills/web-engines/phaser-arcade-physics/SKILL.md@@ -160,6 +160,12 @@ fire(x, y) {call `body.updateFromGameObject()` (or `refreshBody()` on the game object).- **Collider added every frame** → register `collider`/`overlap` once in `create`,not in `update`.+- **Bodies pass through each other after adding collision categories** → a pair only+ collides when each side's mask includes the other's category, and untouched bodies+ keep mask `1`. Widen the other side's mask too, and set groups and their members+ separately (see the reference).+- **Drag does nothing while a key is held** → Arcade applies drag only on an axis+ with zero acceleration; set the acceleration to 0 when input stops.## Referencesdiff --git a/skills/web-engines/phaser-arcade-physics/references/bodies-and-collision.md b/skills/web-engines/phaser-arcade-physics/references/bodies-and-collision.mdindex 9652138..3a44a83 100644--- a/skills/web-engines/phaser-arcade-physics/references/bodies-and-collision.md+++ b/skills/web-engines/phaser-arcade-physics/references/bodies-and-collision.md@@ -23,7 +23,7 @@ exists in the simulation but won't be displaced by collisions.| velocity | `setVelocity(x, y)` / `setVelocityX/Y` | pixels per second || acceleration | `setAcceleration(x, y)` | pixels/sec²; accumulates into velocity || gravity | `setGravity(x, y)` | added on top of world gravity |-| drag | `setDrag(x, y)` | velocity lost per second (or per-frame if `useDamping`) |+| drag | `setDrag(x, y)` | px/sec² of slowdown, applied only while that axis has no acceleration; with `setDamping(true)` it is the share of velocity kept per second (e.g. `0.05`) || max velocity | `setMaxVelocity(x, y)` | clamp speed || bounce | `setBounce(x, y)` | 0 = stop on hit, 1 = full rebound || friction | `setFriction(x, y)` | share of motion passed to a riding body |@@ -96,19 +96,37 @@ this.physics.world.on('worldbounds', (b, up, down, left, right) => { /* ... */ }## Collision categories & masks-By default every body collides with every other. To control which bodies interact,-use a bitmask (each category a unique power of two):+Every body starts in category `1` with a mask of `1`, so everything collides with+everything. A pair is tested only when **each** side's mask contains the other side's+category. Moving a body into a new category therefore also cuts it off from every+body you have not touched, because their mask is still `1`:```js-const PLAYER = 1 << 0, ENEMY = 1 << 1, PICKUP = 1 << 2;-player.body.setCollisionCategory(PLAYER);-player.body.setCollidesWith([ENEMY, PICKUP]); // ignore other players-enemy.body.setCollisionCategory(ENEMY);-enemy.body.setCollidesWith([PLAYER]);+const WORLD = 1; // the default category+const PLAYER = this.physics.nextCategory(); // 2, 4, 8, ... (max 32 categories)+const ENEMY = this.physics.nextCategory();++player.setCollisionCategory(PLAYER);+player.setCollidesWith([WORLD, ENEMY]); // keep the untouched ground++// The ground still has mask 1, so it would now ignore PLAYER: widen it too.+ground.setCollidesWith([WORLD, PLAYER, ENEMY]); // or ground.resetCollisionCategory()+```++When one side of a collider is a group, the group's own category and mask are checked+**and** each member's. The group's values are not copied to its members, so set both:++```js+enemies.setCollisionCategory(ENEMY).setCollidesWith([WORLD, PLAYER]);+const enemy = enemies.create(600, 400, 'enemy'); // and every other member+enemy.setCollisionCategory(ENEMY).setCollidesWith([WORLD, PLAYER]);```-Call `body.resetCollisionCategory()` to return a body to the default-"collides with everything" behaviour.+A dynamic physics group starts with a mask of all bits; a static group and every+body start with mask `1`. `resetCollisionCategory()` sets category `1` and a mask of+all bits ("collides with everything"), which is wider than a new body's default.+If you only need to skip a few pairs, a `processCallback` that returns `false` is+simpler than categories.## Debugging