physics-arcade

Configure Arcade Physics in Phaser 4 games with velocity, gravity, and collisions.

Updated Jun 5, 2026
One-click install
npx skills add https://github.com/diegolinhares/lightlabs_arena --skill physics-arcade-diegolinhares
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: physics-arcade
Source: https://github.com/diegolinhares/lightlabs_arena/tree/main/skills/physics-arcade
Command: npx skills add https://github.com/diegolinhares/lightlabs_arena --skill physics-arcade-diegolinhares

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies the integration of Arcade Physics into Phaser 4 games, making it easy to implement physics-based interactions without complex calculations.

Core Features & Use Cases

  • Physics Configuration: Set up physics with ease using the provided template.
  • Dynamic Bodies: Create and manage dynamic bodies with velocity, acceleration, and gravity.
  • Static Bodies: Implement immovable objects for platforms and barriers.
  • Collisions and Overlaps: Handle collisions and overlaps with ease, enabling interactions like bouncing and friction.
  • Use Case: Integrate Arcade Physics into your game to create platforms, add gravity, and implement realistic interactions between objects.

Quick Start

To enable Arcade Physics for your game, run the following code:

const config = {
    type: Phaser.AUTO,
    width: 800,
    height: 600,
    physics: {
        default: 'arcade',
        arcade: {
            gravity: { y: 300 },
            debug: false
        }
    },
    scene: GameScene
};
const game = new Phaser.Game(config);

Frequently Asked Questions about physics-arcade

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I integrate Arcade Physics into a Phaser 4 game?

Integrate Arcade Physics into Phaser 4 by configuring the physics property in your game config with default set to arcade, applying gravity, and passing the config to Phaser.Game. This enables basic physics interactions using minimal code.

What is Arcade Physics used for in game development?

Arcade Physics is used for basic physics interactions in game development, such as applying velocity, acceleration, and gravity to dynamic bodies. It handles collisions and overlap detection to enable realistic interactions between game objects.

How do I handle collisions and overlaps in Phaser 4?

Handle collisions and overlaps in Phaser 4 by utilizing the Arcade Physics engine to detect interactions between dynamic and static bodies. This enables gameplay mechanics like bouncing, friction, and object overlaps with minimal configuration.

Can I use Arcade Physics for static bodies and platforms in Phaser?

Yes, you can use Arcade Physics to implement immovable static bodies in Phaser. These static bodies are designed specifically to create barriers and platforms that interact dynamically with moving objects in your game.

Does this Arcade Physics Skill support complex physics calculations?

No, this Skill focuses on basic physics interactions like velocity, acceleration, gravity, and collisions. It is designed for game developers who want to add physics to their games with minimal code, avoiding complex calculations.