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許可。