geometry-and-math

Provide geometry and math functions for Phaser 4 game development.

Updated Jun 23, 2026
One-click install
npx skills add https://github.com/Joshua-Allen/stake-engine-game-dev --skill geometry-and-math-joshua-allen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: geometry-and-math
Source: https://github.com/Joshua-Allen/stake-engine-game-dev/tree/main/skills/geometry-and-math
Command: npx skills add https://github.com/Joshua-Allen/stake-engine-game-dev --skill geometry-and-math-joshua-allen

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a comprehensive suite of geometry and mathematical utilities for Phaser 4 game development, simplifying the process of working with shapes, vectors, and calculations.

Core Features & Use Cases

  • Geometry Objects: Create and manipulate geometric shapes like circles, rectangles, and polygons.
  • Math Utilities: Perform calculations such as distance, angle, and interpolation.
  • Use Case: Use this Skill to implement complex physics interactions or graphical effects in your Phaser 4 games, such as collision detection or smooth animations.

Quick Start

Use the geometry-and-math skill to create a rectangle with a width of 100 and height of 50 at position (50, 50).

Frequently Asked Questions about geometry-and-math

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

FAQPage Schema
How do I calculate distance and angle between geometric shapes in Phaser 4?

This Skill provides math utilities to calculate distance, angle, and interpolation between geometric shapes in Phaser 4. It simplifies complex physics calculations by offering built-in functions for these common operations.

What geometric objects can I create and manipulate for Phaser 4 game development?

This Skill provides geometry objects for creating and manipulating circles, rectangles, and polygons in Phaser 4 game development. These classes support the shape manipulation needed for graphical effects and collision detection.

Does this Skill support collision detection and smooth animations in Phaser 4?

Yes, this Skill supports collision detection and smooth animations in Phaser 4 by providing geometric shape classes and mathematical utilities. You can use these tools to implement complex physics interactions and graphical effects.

How do I create a rectangle at a specific position and size in Phaser 4?

Use this Skill to instantiate a rectangle with defined width, height, and x/y coordinates in Phaser 4. For example, you can create a 100x50 rectangle positioned at (50, 50) to start building game geometry.

Can I use these math and geometry utilities without additional Phaser 4 dependencies?

Yes, you can use these math and geometry utilities without additional dependencies since this Skill has no listed requirements. It provides a standalone collection of geometric shape classes and mathematical functions for Phaser 4.

What's the best way to implement vector calculations and interpolation for game physics?

Use this Skill's math utilities to implement vector calculations and interpolation for game physics, handling distance, angle, and interpolation operations. These functions are designed specifically for Phaser 4 game development scenarios.