physics-arcade

Configure Arcade Physics for Phaser 4 sprites, groups, and collisions.

Updated Jun 21, 2021
One-click install
npx skills add https://github.com/mahirocoko/mahirocoko --skill physics-arcade-mahirocoko
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: physics-arcade
Source: https://github.com/mahirocoko/mahirocoko/tree/main/plugins/phaser/skills/physics-arcade
Command: npx skills add https://github.com/mahirocoko/mahirocoko --skill physics-arcade-mahirocoko

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Arcade Physics often requires verbose setup to enable physics, apply gravity, handle velocity, and implement collisions, which can slow development.

Core Features & Use Cases

  • Enable and configure Phaser Arcade Physics in GameConfig and scenes for both dynamic and static bodies.
  • Create and manage physics-enabled sprites, images, and groups with velocity, acceleration, gravity, bounce, and collision detection.
  • Use collide and overlap to implement gameplay mechanics like platforms, pickups, and triggers in 2D games.

Quick Start

Initialize arcade physics in your Phaser 4 scene and observe velocity, gravity, and collisions.

Frequently Asked Questions about physics-arcade

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

FAQPage Schema
How do I enable Arcade Physics in a Phaser 4 scene?

To enable Arcade Physics in Phaser 4, configure it within the GameConfig and scenes to manage dynamic and static bodies, applying velocity, gravity, and collision detection for 2D game mechanics.

How do I handle sprite collisions and overlaps in Phaser 4?

Handle sprite collisions and overlaps in Phaser 4 by using the Arcade Physics API's collide and overlap functions, allowing you to implement gameplay mechanics like platforms, pickups, and triggers.

Can I apply velocity and gravity to groups in Phaser 4?

Yes, you can apply velocity, acceleration, gravity, and bounce to physics-enabled sprites, images, and groups in Phaser 4 by configuring their dynamic bodies through the Arcade Physics API.

What is the best way to set world bounds and collision categories for 2D arcade physics?

The best way to set world bounds and collision categories for 2D arcade physics is by configuring these properties directly through the Phaser 4 Arcade Physics API to ensure reliable motion and collision interactions.

Does this Arcade Physics setup support both dynamic and static bodies?

Yes, the Arcade Physics setup supports both dynamic and static bodies, allowing you to configure physics-enabled sprites, images, and groups with reliable 2D motion and collision interactions across game scenes.

Why are my physics bodies not colliding properly in Phaser 4?

Physics bodies may not collide properly if Arcade Physics is not fully enabled in the GameConfig or if collision categories and world bounds are misconfigured, so verify your API setup for dynamic and static bodies.