phaser3 particle editor
1.0.0
该工具旨在使用移相器进行交互性创建粒子发射器
在此处查看编辑器。
关键功能:
首先,您想通过编辑器将项目导出。您可以通过单击项目名称旁边的菜单按钮来做到这一点。
出口项目结构:
var config = {
type : Phaser . WEBGL ,
width : 800 ,
height : 600 ,
backgroundColor : '#262626' ,
parent : 'phaser-example' ,
scene : {
preload : preload ,
create : create ,
} ,
} ;
var game = new Phaser . Game ( config ) ;
function preload ( ) {
this . load . atlas ( 'shapes' , 'assets/shapes.png' , 'assets/shapes.json' ) ;
this . load . text ( 'particle-effect' , 'assets/particle-effect.json' ) ;
}
function create ( ) {
this . add . particles ( 'shapes' , new Function ( 'return ' + this . cache . text . get ( 'particle-effect' ) ) ( ) ) ;
} 该存储库的主要目的是继续发展相位器,使其更易于使用。编辑器的开发发生在Github的公开场合中,我们感谢社区为错误的修正和改进做出贡献。请阅读下面的内容以了解如何参与改进编辑器。
该行为守则适用于贡献者盟约1.4版,可在http://contributor-covenant.org/version/1/4获得。请阅读全文,以便您可以理解哪些行动将被容忍。
阅读我们的贡献指南,以了解我们的开发过程,如何提出错误编组和改进以及如何构建和测试您对编辑器的更改。
编辑已获得MIT许可。