curves-and-paths

Create and manipulate curves and paths in Phaser 4.

Updated May 24, 2026
One-click install
npx skills add https://github.com/simon-tanna/pip-maze-v-2 --skill curves-and-paths-simon-tanna
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: curves-and-paths
Source: https://github.com/simon-tanna/pip-maze-v-2/tree/main/.claude/skills/curves-and-paths
Command: npx skills add https://github.com/simon-tanna/pip-maze-v-2 --skill curves-and-paths-simon-tanna

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires phaser, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill streamlines the process of working with curves and paths in Phaser 4, allowing for the creation and manipulation of complex shapes and paths with ease.

Core Features & Use Cases

  • Curve Creation: Supports a variety of curve types including lines, Bezier curves, splines, ellipses, and circles.
  • Path Management: Combine multiple curves into a single path for continuous shapes.
  • PathFollower: Automate sprite movement along paths with the PathFollower component.
  • Use Case: Ideal for game development, particularly for creating smooth and dynamic paths for game objects.

Quick Start

Create a path with curves and follow it with a sprite: add.path(50, 300).lineTo(200, 100).splineTo([300, 400, 500, 200]).follower('ship', 50, 300).startFollow({ duration: 5000 })

Frequently Asked Questions about curves-and-paths

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

FAQPage Schema
How do I create complex paths with Bezier curves and splines in Phaser 4?

You can create complex paths in Phaser 4 by combining multiple curve types such as Bezier curves, splines, lines, ellipses, and circles into a single continuous path. This enables the construction of smooth, dynamic shapes for game objects.

How do I make a sprite follow a custom path in Phaser 4?

To make a sprite follow a custom path in Phaser 4, use the PathFollower component to automate movement. You can initiate this by chaining path creation methods with the follower function and startFollow, specifying a duration.

Can I combine multiple line and spline curves into one continuous path in Phaser?

Yes, you can combine multiple line and spline curves into one continuous path in Phaser. The path management features allow you to merge various curve types together, enabling the formation of continuous and complex shapes for game development.

Does Phaser 4 support automating sprite movement along elliptical curves?

Phaser 4 does support automating sprite movement along elliptical curves through the PathFollower component. You can define an ellipse as part of your path and configure the follower to move sprites along it automatically.

Do I need additional libraries to manage curves and paths in Phaser 4?

You need the Phaser library and related dependencies installed to fully manage curves and paths in Phaser 4. The curve creation and path follower functionalities require these foundational libraries to operate correctly within your game development environment.