data-manager

Manage game data with event-driven key-value storage in Phaser.

3|Updated Apr 18, 2026
One-click install
npx skills add https://github.com/Autinhorse/levelcraft --skill data-manager-autinhorse
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: data-manager
Source: https://github.com/Autinhorse/levelcraft/tree/main/games/docs/phaser-skills/data-manager
Command: npx skills add https://github.com/Autinhorse/levelcraft --skill data-manager-autinhorse

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

It simplifies the storage, retrieval, and management of custom key-value data on game objects, enabling dynamic and reactive game behavior.

Core Features & Use Cases

  • Key-Value Storage: Store and organize custom data on game objects, scene-level, or globally across the game.
  • Event-Driven Updates: Listen for data changes and trigger game logic seamlessly.
  • Use Case: Update a player's health value during gameplay and react immediately with visual effects or game over logic.

Quick Start

Use this skill to assign a score to a scene and listen for score updates to display the current score.

Frequently Asked Questions about data-manager

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

FAQPage Schema
How do I manage game object data with Phaser's DataManager?

You can manage game object data with Phaser's DataManager by using an event-driven key-value storage system to easily store, retrieve, and organize custom data on objects, scene-level, or globally across your game.

How does event-driven key-value storage work for reactive gameplay mechanics?

Event-driven key-value storage works by allowing you to listen for specific data changes and automatically trigger game logic in response, enabling reactive gameplay mechanics like updating visual effects when a player's health value changes.

Can I store and retrieve custom data globally across Phaser game scenes?

Yes, you can store and retrieve custom data globally across Phaser game scenes. This system supports scene-level and global data management, allowing easy access and modification functions for dynamic game behavior.

What is the best way to update a player's health value and trigger game over logic?

The best way to update a player's health value and trigger game logic is to use event-driven key-value storage, which allows you to modify the value during gameplay and react immediately with game over logic or visual effects.

Do I need Phaser's core event handling to use event-driven game data management?

Yes, you need Phaser's core event handling to use this event-driven game data management system. It requires the core event handling mechanism to listen for data changes and trigger reactive gameplay mechanics seamlessly.

What are the limitations of using key-value storage for game state management?

A limitation of using key-value storage for game state management is that it primarily simplifies custom data storage and retrieval, meaning you must manually structure complex relational data and handle optional script dependencies for extended functionality.