Phaser arcade physics
Sets up Phaser 4 movement, gravity and collisions for platformers, so sprites stop passing through walls.
Claude's review
8/10 Practical Phaser Arcade physics workflow with gotchas and a verification probe.
We asked Claude the question you would ask: would I be glad I installed this? Two separate reviews, the second blind to the first, must both rate a skill 7 or higher before we sell it.
In detail
Phaser 4 Arcade Physics movement and collision: bodies, velocity, gravity, colliders vs overlaps, groups and bullet pools. Use for a Phaser platformer or top-down controller, or a sprite that ignores physics, onFloor() always false or bodies passing through walls. Not for scenes and the loader (`phaser-core`), coyote time (`platformer`) or tunnelling theory (`physics-tuning`).
How you use it
- Add it to your pack, then download your pack (1 credit).
- In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
- Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide
Safety check
Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.
An automated scan lowers risk but cannot promise zero risk. How we check skills
Preview
The first lines of SKILL.md
---
name: phaser-arcade-physics
description: >
Phaser 4 Arcade Physics movement and collision: bodies, velocity, gravity, colliders vs
overlaps, groups and bullet pools. Use for a Phaser platformer or top-down controller, or a
sprite that ignores physics, onFloor() always false or bodies passing through walls. Not for
scenes and the loader (`phaser-core`), coyote time (`platformer`) or tunnelling theory
(`physics-tuning`).
---
# Phaser 4 Arcade Physics
Moves and collides sprites with Phaser's Arcade engine: axis-aligned rectangles and circles,
no rotation in collision, no joints. That is enough for most platformers, shooters and
top-down games, and it is fast. New projects target **Phaser 4.2**; check the installed major
before editing an existing project. If the game needs hinges, springs, slopes or rotated
polygons, Matter physics is the separate engine for that, and its bodies never collide with
Arcade bodies.
## When to use
- Platformer or top-down movement, gravity, bouncing, world bounds, and collision or overlap
between sprites, groups and tilemap layers.
- The config has `physics: { default: 'arcade' }`, or code calls `this.physics.add.*`,
`body.setVelocity` or `this.physics.add.collider`.
- Not for scene structure and loading (`phaser-core`), jump-feel rules such as coyote time
(`platformer`), or fixed timestep and tunnelling in general (`physics-tuning`).
## Workflow
1. **Enable the world with debug drawing on**: `physics: { default: 'arcade', arcade: {
gravity: { x: 0, y: 600 }, debug: true } }`. Body outlines and velocity lines answer most
"why didn't it collide" questions at a glance. Turn debug off before release.
2. **Create bodies through the physics factory**: `this.physics.add.sprite` (dynamic),
`this.physics.add.staticImage` or `staticGroup` (walls and ground), or
`this.physics.add.existing(obj)` for an object you already made.
3. **Move dynamic bodies through the body** with velocity, acceleration and gravity. Writing
`x`/`y` directly teleports the body past colliders.
4. **Register each `collider` and `overlap` once in `create`.** A collider separates bodies;
an overlap only reports contact (pickups, triggers, hurtboxes).
...From gamedev-skills's repository, Apache-2.0 licence.
Related skills
-
Checked
Game Audio Mixing
Sets up game audio buses, volume sliders, music ducking and adaptive music for Godot, Unity or FMOD.
8/101 credit -
Checked
Game camera tuning
Builds and tunes follow, orbit and first person game cameras in Godot or Cinemachine so they stop jittering.
8/101 credit -
Checked
Game Enemy AI
Designs enemy AI with perception, pathfinding and steering so enemies chase fairly and never get stuck.
8/101 credit -
Checked
Game Loop and Timing
Makes movement, timers and physics behave the same at any frame rate in Unity, Godot, Bevy and web games.
7/101 credit -
Checked
Godot Game Testing
Writes and runs Godot tests with gdUnit4 or GUT, including scene tests and headless runs that report real results.
7/101 credit -
Checked
Game Security Review
Reviews Unity, Godot and Unreal code for cheats that hurt other players, purchase exploits and unsafe save files.
7/101 credit