playground/README.md
A local development sandbox for testing PixiJS code during development.
From the project root, run:
npm run dev
This starts both the PixiJS watch mode and the playground Vite server.
Open http://localhost:5173 in your browser.
The default.playground.ts will load automatically, showing a bunny sprite.
Duplicate src/default.playground.ts to create a new file:
cp src/default.playground.ts src/my-test.playground.ts
Edit your new file with your test code.
Refresh the browser - your new playground appears in the dropdown.
Select it from the dropdown to run it.
playground/
├── src/
│ ├── main.tsx # Selector UI (don't edit)
│ ├── default.playground.ts # Example template
│ └── *.playground.ts # Your test files (gitignored)
└── assets/
└── bunny.png # Test asset
The playground shows a status indicator in the top-right corner:
When compilation completes, the playground automatically reloads to pick up the changes.
*.playground.ts files are gitignored except default.playground.ts../lib/index.mjs