项目作者: flowforfrank

项目描述 :
🔘 UI Toolkit for Phaser 3
高级语言: JavaScript
项目地址: git://github.com/flowforfrank/phaser-ui.git
创建时间: 2021-01-03T21:20:43Z
项目社区:https://github.com/flowforfrank/phaser-ui

开源协议:

下载



UI library for Phaser

A UI library for the Phaser game framework.

🏃‍♂️ Getting Started

After running the following command:

  • npm i phaser-uikit

You can import all available modules to your project with:

  1. import * as UI from 'phaser-uikit'

Or just the ones you need:

  1. import { Button, Layout } from 'phaser-uikit'

Components

Currently, the following components are supported:

Component Description
Button Trigger a user action
Checkbox Toggle a state on and off, or toggle multiple values from several options
Radio Select a single value from several options
Layout Order multiple elements into a layout

🚀 How to Start the Project Locally

Run the following commands, to start the project locally and play around with some demo components:

  • git clone https://github.com/flowforfrank/phaser-ui.git
  • npm i
  • npm run start

🏗️ How to Build the Project Locally

Run npm run build. This will create a dist folder with a minified version of all the available components.

📚 Further Documentation

You can find documentation about the API and examples for all available components in the docs.