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 blocked vs touching contact rules, recycle pooled bullets, add tunnelling pitfall
Kiro Crew3444c458e962
diff --git a/skills/web-engines/phaser-arcade-physics/SKILL.md b/skills/web-engines/phaser-arcade-physics/SKILL.mdindex e5446bb..3b8a0f1 100644--- a/skills/web-engines/phaser-arcade-physics/SKILL.md+++ b/skills/web-engines/phaser-arcade-physics/SKILL.md@@ -137,11 +137,18 @@ this.bullets = this.physics.add.group({});fire(x, y) {- const bullet = this.bullets.get(x, y); // reuses a dead bullet if available- if (!bullet) return;+ const bullet = this.bullets.get(x, y); // reuses an inactive bullet if available+ if (!bullet) return; // pool is full: every bullet is activebullet.enableBody(true, x, y, true, true);bullet.setVelocityY(-500);}++update() {+ // Return off-screen bullets to the pool, or firing stops after 30 shots.+ this.bullets.getChildren().forEach((bullet) => {+ if (bullet.active && bullet.y < -32) bullet.disableBody(true, true);+ });+}```## Pitfalls@@ -156,10 +163,16 @@ fire(x, y) {`body.setImmovable(true)` on a dynamic platform.- **`onFloor()` is always false** → the body needs something to collide with; add the`collider` against the ground/platforms before checking, and ensure gravity is on.+ Standing on an ordinary dynamic body does not count as blocked; make platforms+ static, immovable, or non-pushable (`platform.setPushable(false)`).- **Moved a static body but collisions are stale** → static bodies don't auto-sync;call `body.updateFromGameObject()` (or `refreshBody()` on the game object).- **Collider added every frame** → register `collider`/`overlap` once in `create`,not in `update`.+- **Fast bullets pass through thin walls** → Arcade has no swept collision; a body+ that moves farther than a wall's thickness in one physics step skips it. Thicken+ the wall's body, cap speed with `setMaxVelocity`, or raise the step rate+ (`arcade: { fps: 120 }`, default 60) at extra CPU cost.- **Bodies pass through each other after adding collision categories** → a pair onlycollides when each side's mask includes the other's category, and untouched bodieskeep mask `1`. Widen the other side's mask too, and set groups and their membersdiff --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 3a44a83..f912810 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@@ -74,16 +74,20 @@ group, so one call can wire up "all bullets vs all enemies".After the physics step, each body exposes which sides are touching:```js-body.blocked.down // touching a tile or world boundary below+body.blocked.down // can't move down: bounds, tile, or a blocking body belowbody.touching.left // touching another body on the left this stepbody.onFloor() // shorthand for blocked.downbody.onWall() // blocked.left || blocked.rightbody.wasTouching // touching state from the previous step (edge detection)```-`blocked` is contact with the world bounds or tiles; `touching` is contact with-another body. Compare `touching` against `wasTouching` to detect the first frame-of a hit (e.g. play a sound once on landing).+`touching` is set for any body contact. `blocked` means the body cannot move further+that way: the world bounds, a colliding tile, an immovable, static or non-pushable+(`sprite.setPushable(false)`) body, or a body that is itself blocked (a crate resting+on the floor). That is why `blocked.down`/`onFloor()` works as a ground check on a+`staticGroup` platform but stays `false` when landing on an ordinary dynamic body in+mid-air. Compare `touching` against `wasTouching` to detect the first frame of a hit+(e.g. play a sound once on landing).## World bounds