phaser-pixui
v0.2.1
Published
A UI library for Phaser game engine that provides responsive and customizable UI components, tailored specifically for pixel art games
Maintainers
Readme
Phaser PixUI
A UI library for the Phaser game engine that provides responsive and customizable UI components, tailored specifically for pixel art games.
Features
- Responsive UI components that adapt to different screen sizes
- Ensures integer scaling to keep pixel art crisp
- Customizable themes and styling
- Support for buttons, progress bars, text areas, and more
- Built-in positioning helpers for common screen locations
- Written in TypeScript with full type definitions
Installation and usage
npm install phaser-pixuiSince this library requires Phaser 4 as a peer dependency, make sure you have it installed in your project as well:
npm install phaser@^4.0.0-rc.6For a usage example, see the bundled example project and its corresponding demo page on itch.io.
Development
Building the library
npm run buildRunning the example
First, build the library:
npm run buildThen run the example:
npm run exampleOr install example dependencies first if needed:
npm run example:install
npm run exampleContributing
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Make your changes
- Commit your changes (
git commit -am 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Create a Pull Request
License
Code
Copyright (c) 2026 Sergei Khoroshavin
The source code in this repository is licensed under the MIT License. See the file LICENSE for the full license text.
Example art assets
The example project included in this repository uses pixel art assets created by Gabriel Lima aka tiopalada. Big thanks to him for creating beautiful pixel art and putting it into the public domain. Asset pages (Mana Soul GUI, Tiny RPG Font Kit II and demo version of Tiny RPG Battle Kit I, the latter was the source of the backgound image) state these assets are CC0 and may be used for any purpose; attribution to the author is appreciated. See the file example/public/assets/LICENSE for additional details.
