curves-and-paths
A reference skill published in the Phaser game framework's own repository for building and using curves and paths in Phaser 4.
スキルの内容
A reference skill published in the Phaser game framework's own repository for building and using curves and paths in Phaser 4. It explains that a path joins several curves, which need not touch, and covers lines, Catmull-Rom splines, cubic and quadratic Bezier curves and ellipse arcs, the shared methods for sampling points, lengths, bounds and tangents, the builder methods such as lineTo, splineTo and moveTo, and drawing a path with Graphics. It also covers path followers, sprites that move along a path through an internal tween, with rotation and offset options. A list of pitfalls covers uneven spacing from getPoint, mixed angle units on ellipses and lengths that go stale after edits.
できること
- Build paths from lines, splines and Bezier curves
- Sample evenly spaced points along a curve
- Make sprites follow a path
- Draw paths with Graphics
概要
- 公開元
- Phaser
インストール
プロジェクトのドキュメントに、確認できるインストール手順がありません。 プロジェクトの手順を見る
MCPサーバーやスキルは、お使いのコンピューターでコードを実行したり、データを操作したりできます。インストールする前にソースを確認してください。
詳細
出典
- スキルファイル(SKILL.md)github.com/phaserjs/phaser · 根拠となる項目:スクリプトを含む2026年11月10日
- GitHubリポジトリgithub.com/phaserjs/phaser · 根拠となる項目:公開元, 活動状況, ライセンス2026年11月11日
- リポジトリ内のフォルダ(curves-and-paths)github.com/phaserjs/phaser · 根拠となる項目:スクリプトを含む2026年11月10日