Every premium and members-only resource for $9.99/month, as a no-commitment subscription. See the plans

PalateKit

Menu

Request a resource

Describe the resource you are missing in one sentence. We will email you when it is published.

0 / 280

Unlock PalateKit

Unlock everything

Plan

Paying means accepting our terms of sale.

Secure payment by Stripe. Receipts and invoices sent by email.

Welcome back

Sign in to install, download or save this resource. A free account is enough for free resources.

Useful geometry and math in Phaser 4 v1.0.0

Use this resource to compute intersections, distances, angles or random numbers in a Phaser 4 game

New

  • 549 downloads
  • 248 likes
  • 180 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install phaser-geometry-math-utilities

With no option, the skill goes to ~/.agents/skills/; add --agent claude-code (or codex, cursor…) to target an agent.

First time: connect the CLI with

npx --yes palatekit@latest login

The agent uses Phaser 4's geometry classes and math functions: containment and intersection tests, intersection points, angles, distances, interpolation and random draws. These objects are data, not drawn elements.

Mostly picked by

Updated November 2, 2026

Card for the “Useful geometry and math in Phaser 4” skill

Details

Generates with
Your agent's model
Licence
MIT

Similar resources

View all

What you get

  • SKILL.md: geometry classes and helper functions
  • SKILL.md: intersection tests and intersection points

Good fit for

  • An object must know whether it is inside a trigger zone
  • A shot must aim at an enemy from a given angle and distance

Not for

    Tags

    • phaser
    • geometry
    • mathematics

    About

    You say

    “Check whether the player is inside the healing circle, and give me the distance to its centre.”

    Card for the “Useful geometry and math in Phaser 4” skill

    Skill published by phaserjs under the MIT license, delivered in its original version.

    Show more

    How to use it

    1. Install the skill in your agent's skills folder
    2. Ask your agent to compute intersections, distances, angles or random numbers in a Phaser 4 game
    3. Review and adjust the result

    Content preview

    Files

    • LICENSE1.1 KB
    • NOTICE-PALATEKIT.md0.5 KB
    • SKILL.md23.5 KB

    Origin and licence

    Listed unmodified

    Author
    phaserjs
    Source
    github.com/phaserjs/phaser/tree/02d8931b626d9764c133cbb3fbf99966c03c757c/skills/geometry-and-math
    Licence
    MIT

    Notice

    « geometry-and-math » (phaserjs, MIT) livré dans sa version d'origine : fiche en français et en anglais par PalateKit.

    User reviews

    –

    No ratings yet

    Loading reviews…

    Delete your review?

    Your rating and comment will be removed from the page.