curves-and-paths

Coordinate curves and path following for Phaser 4 scenes.

Updated Apr 20, 2026
One-click install
npx skills add https://github.com/Raphe-dev/phaser-cozy-mmo --skill curves-and-paths
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: curves-and-paths
Source: https://github.com/Raphe-dev/phaser-cozy-mmo/tree/main/skills/curves-and-paths
Command: npx skills add https://github.com/Raphe-dev/phaser-cozy-mmo --skill curves-and-paths

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Create and manage complex curves and paths in Phaser 4, enabling precise point sampling, drawing, and smooth sprite movement along curves such as lines, splines, and Bezier/Ellipse shapes.

Core Features & Use Cases

  • Supports multiple curve types (Line, Spline, CubicBezier, QuadraticBezier, Ellipse) and composite Path.
  • Provides utilities to get points, tangents, lengths, bounds, and to render curves with Graphics; supports PathFollower to move sprites along paths.
  • Use cases include level design, AI patrol routes, cinematic camera paths, and dynamic path-based animation.

Quick Start

Create a Path at a starting point, add curves or standalone curves, draw it with Graphics, and drive a PathFollower along the path.

Frequently Asked Questions about curves-and-paths

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

FAQPage Schema
How do I animate a sprite along a Bezier curve in Phaser 4?

To animate a sprite along a Bezier curve in Phaser 4, create a Path, add CubicBezier or QuadraticBezier curves, and drive a PathFollower along the composite path for smooth movement.

What types of curves can I use for path following in Phaser 4?

Phaser 4 path following supports Line, Spline, CubicBezier, QuadraticBezier, and Ellipse curve types. These can be composed into a single Path for complex routes.

How do I get points and tangents from a spline path in Phaser 4?

You can get points and tangents from a spline path in Phaser 4 using the Skill's math-based utilities, which provide precise point retrieval, tangents, lengths, and bounds for curves.

Can I draw composite paths and elliptical arcs with Phaser 4 Graphics?

Yes, you can draw composite paths and elliptical arcs with Phaser 4 Graphics. The Skill supports rendering curves with Graphics after composing multiple curve types into a single Path.

Does this Phaser 4 path utility require any external dependencies?

No, this Phaser 4 path utility requires no external dependencies to implement coordinate curves, path following, and math-based point retrieval for game design workflows.