Skip to content
Back to skills

Phaserjs Build Scenes

ASecurity

Build Phaser scene, loader, camera, scale and world lifecycles with explicit ownership of shared game resources.

  • 4 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 7, 2026
testing

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 7, 2026

npx -y skills add TimothyMeadows/Hephaera --skill phaserjs-build-scenes --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Phaserjs Build Scenes?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Phaserjs Build Scenes
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/timothymeadows-phaserjs-build-scenes/badge)](https://www.skillsdirectory.com/skills/timothymeadows-phaserjs-build-scenes)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: phaserjs-build-scenes
description: Build Phaser scene, loader, camera, scale and world lifecycles with explicit ownership of shared game resources.
engines: [PHASERJS]
---

# Build Phaser Scenes

## When to use

Create or refactor Phaser boot/preload/gameplay scenes, world loading or scene transitions.

## Engine and dependencies

Before edits or tool launches, run `resolve-engine.sh` and `resolve-skill.sh phaserjs-build-scenes`; require compatibility and honor task override scope. Read the host's locked Phaser major/revision, renderer, plugins, world contract and budgets. Respect Phaser 3 or 4 as selected: renderer internals differ. Do not use Phaser 2/CE recipes, upgrade implicitly, install packages or inject CDN scripts.

## Workflow

1. Own one `Phaser.Game` per intended runtime; centralize renderer, parent, scale, physics and plugin configuration. Avoid duplicate game instances during remount/hot reload. Permanent unmount destroys the owning game.
2. Separate boot, loading, gameplay and persistent services where their lifetimes differ. Use `init`, `preload`, `create`, `update` and Scene events deliberately. Shutdown permits restart; destroy ends scene ownership. Install restart-scoped listeners anew and release them on shutdown.
3. Use `LoaderPlugin`, cache and texture keys through an asset manifest. Define missing/failed asset behavior and transition cancellation. Game-level caches, animation definitions and sound resources can outlive scenes: remove them only when their final user leaves.
4. Configure Scale Manager and cameras with explicit logical size, viewport, safe areas and world bounds. Bound per-frame work after tab resume and separate gameplay state from display objects.
5. Convert validated map/spawn/content IDs into runtime instances. Keep navigation, enemy decisions and versioned saves in project systems; Phaser scene objects and the global registry are not automatically a persistence schema or AI framework.
6. Own timers, tweens, camera effects, event subscriptions and asynchronous completions. Late results must verify the scene activation token before mutation; stop scene-owned work without cancelling shared services.

## Output and verification

Deliver lifecycle/configuration changes, asset ownership and world adapters. Test boot failure, restart, scene replacement during loading, shared textures, resize/orientation, pause/sleep/wake and repeated teardown. Measure load/frame/memory budgets in the actual renderer. Structural tests cannot prove visual readiness. Check the [scene lifecycle](https://docs.phaser.io/phaser/concepts/scenes) and the [Phaser 3/4 migration boundaries](https://phaser.io/news/2026/05/phaser-3-vs-phaser-4).

Files in this skill

  • SKILL.md2.6 KB
  • agents/openai.yaml252 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in testing →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.