phaser3-transitions:一个Phaser 3插件,用于平滑的UI Enterexit过渡

时间:2021-02-03 12:06:45
【文件属性】:
文件名称:phaser3-transitions:一个Phaser 3插件,用于平滑的UI Enterexit过渡
文件大小:1.03MB
文件格式:ZIP
更新时间:2021-02-03 12:06:45
javascript phaser phaserjs phaser3 PhaserJavaScript phaser3转换 Phaser 3的UI转换插件。该插件本质上为一些复杂的补间提供了简单的包装,这些补间将UI组件移入或移出场景。 如果您不希望使用过多的插件来污染场景,则也可以声明性地使用每个过渡。 产品特点 用于在屏幕上和屏幕外移动UI组件的平滑过渡 用于灯光定制的简单配置选项 提取重复的和/或复杂的补间 通过BaseTransition类可以轻松扩展 安装 npm install --save phaser3-transitions 建立 import Phaser from 'phaser' ; import TransitionsPlugin from 'phaser3-transitions' ; const gameConfig = { type : Phaser . WEBGL , parent : 'game-container' , width : 400 , height : 600 , scene : [ Preload , DemoScene ] , plugins :
【文件预览】:
phaser3-transitions-master
----.gitignore(42B)
----package.json(674B)
----src()
--------defaults()
--------transitions-plugin.js(4KB)
--------phaser3-transitions.js(673B)
----webpack.config.js(348B)
----build()
--------phaser3-transitions.js(10KB)
----lib.webpack.config.js(763B)
----tests.webpack.config.js(678B)
----tests()
--------scenes()
--------dat-gui-data.js(4KB)
--------www()
--------game.js(987B)
--------dat-gui-controller.js(3KB)
----readme.md(17KB)

网友评论