【文件属性】:
文件名称:slick-ui:轻量级Phaser UI插件
文件大小:351KB
文件格式:ZIP
更新时间:2021-02-03 11:56:29
javascript library phaser user-interface game-library
作为公共领域发布-随时对自己喜欢的库代码做任何事情。 (这不包括资产和Phaser游戏引擎)
SlickUI
SlickUI克服了以面向对象的方式轻松创建用户界面的挑战。
试用一些预览
入门
使用git安装:
git clone https://github.com/Flaxis/slick-ui.git
使用凉亭安装:
bower install slick-ui
确保您的项目资产中具有并准备加载。
将以下内容添加到预加载功能的底部:
// You can use your own methods of making the plugin publicly available. Setting it as a global variable is the easiest solution.
slickUI = game . plugins . add ( Phaser . Plugin . SlickUI ) ;
slickUI . load ( 'assets/ui/kenney/kenney.json' ) ; // Use the path to your ken