curves-and-paths

Create, render, and animate sprites along mathematical curves in Phaser 4.

Updated Apr 13, 2026
One-click install
npx skills add https://github.com/jallard-007/jallard-ca-server --skill curves-and-paths-jallard-007
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: curves-and-paths
Source: https://github.com/jallard-007/jallard-ca-server/tree/main/.github/skills/curves-and-paths
Command: npx skills add https://github.com/jallard-007/jallard-ca-server --skill curves-and-paths-jallard-007

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Creating, rendering, and animating along complex curves and paths in Phaser 4 can be verbose and error-prone without a cohesive API.

Core Features & Use Cases

  • Path creation and manipulation: build compound curves from Lines, Splines, Beziers, Ellipses, and more.
  • Rendering and sampling: draw paths with Graphics, sample points along paths, compute tangents, lengths, and bounds.
  • PathFollower support: attach a sprite to a path with automatic movement, rotation, and customization.

Quick Start

Create a path by adding curves, render it with Graphics, and start a PathFollower to traverse it.

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, attach it to a PathFollower component. This automatically handles movement, rotation, and customization as the sprite traverses the defined mathematical path.

What types of paths can I create for game development in Phaser?

You can create compound paths in Phaser by combining Lines, Splines, Beziers, and Ellipses. These curves can be manipulated to form complex trajectories for rendering graphics and animating sprites in game development.

How do I draw and sample points along a path in Phaser?

Draw paths using the Graphics API and sample points along them to compute tangents, lengths, and bounds. This allows precise rendering and point extraction for complex curves in Phaser 4.

What is the best way to build compound curves from multiple spline and ellipse segments?

The best way to build compound curves is using the path creation and manipulation APIs. This approach cohesively combines multiple curve types like splines and ellipses, avoiding the verbose and error-prone code of manual math.

Do I need any external dependencies to use pathfinding and curves in Phaser 4?

No external dependencies are required to create and manipulate paths in Phaser 4. The framework provides built-in APIs for curve generation, point sampling, and the PathFollower component without additional libraries.