1. 首页
  2. 数据库
  3. 其它
  4. phaser plugin debug draw:Phaser 3的调试显示 源码

phaser plugin debug draw:Phaser 3的调试显示 源码

上传者: 2021-03-14 01:21:19上传 ZIP文件 601KB 热度 8次
Phaser 3调试绘图插件 | 表明: 游戏对象(原点,边界,旋转,输入) 位图遮罩 输入指针 摄像机边界,死区并跟随目标 灯火 它不显示: 容器中的游戏对象 击球手 粒子发射器 利用 new Phaser . Game ( { plugins : { scene : [ { key : 'DebugDrawPlugin' , plugin : PhaserDebugDrawPlugin , mapping : 'debugDraw' } ] } } ) ; 浏览器/ UMD < script src =' path/to/phaser-plugin-debug-draw.umd.js ' > </ script > 然后使用全局PhaserDebugDrawPlugin 。 ES模块 import DebugDrawPlugin from 'phaser-plugin-debug-draw' ; 选件 在插件实例上设置属性,例如 // Scene `init()` or `create()` this . debugDraw . sh
下载地址
用户评论