phaser component health:Phaser 3的健康方法和事件 源码

上传:qqcontrol23205 浏览: 4 推荐: 0 文件:ZIP 大小:396.01KB 上传时间:2021-02-17 03:47:49 版权申诉
阶段3健康组件 灵活的基于数据的健康组件。 例子 // Add component to *one* game object and assign health=1, minHealth=0, maxHealth=2 PhaserHealth . AddTo ( sprite , 1 , 0 , 2 ) ; // Same, in two calls: PhaserHealth . AddTo ( sprite ) . setHealth ( 1 , 0 , 2 ) ; // Add component to Sprite class PhaserHealth . MixinTo ( Phas
上传资源
用户评论