万象云档 本次搜索耗时 2.870 秒,为您找到 521 个相关结果.
  • 九宫格 NinePatch

    九宫格 NinePatch 我们经常会遇到一些尺寸不固定,但是周围或四遍样式不变形的图片,也就是 .9 图,例如消息气泡,如果直接设置宽高会将整个气泡图片拉变形。 下图中,第二个是通过九宫格创建的气泡,最后一个是直接把图片拉伸创建的,前两个明显符合预期。Demo 安装 使用 NPM npm i @eva / plugin - renderer ...
  • 平铺精灵 TilingSprite

    平铺精灵 TilingSprite 在一些无限背景的游戏中可以通过平铺精灵来实现背景的无缝衔接,类似 css 中的 background-repeat: repeat; 功能,使用前需要安装渲染器。 Demo 安装 使用 NPM npm i @eva / plugin - renderer @eva / plugin - renderer -...
  • 遮挡排序与透明度

    遮挡排序与透明度 使用前需要安装渲染器 透明度 Demo 排序 Demo 安装 使用 NPM npm i @eva / plugin - renderer @eva / plugin - renderer - render 在浏览器中 <script src = "https://unpkg.com/@eva/plugin-ren...
  • 过渡动画

    过渡动画 对 Component 上的属性做线性变化,实现过渡动画。 https://eva.js.org/playground/#/transition https://eva.js.org/playground/#/transition2 安装 使用 NPM npm i @eva / plugin - transition 在浏...
  • Sound 音频系统

    Sound 音频系统 为 Game Object 添加音频控制的能力,使用 Web Audio API 播放。 安装 使用 NPM npm install @eva / plugin - sound 在浏览器中 <script src = "https://unpkg.com/@eva/plugin-sound@1.1.x/dist/E...
  • A11y 无障碍插件

    A11y 无障碍插件 介绍 Eva.js 无障碍插件,用于为游戏对象添加无障碍的能力。插件通过定位游戏对象的位置,自动化地添加辅助 DOM,使得游戏对象能被聚焦,游戏拥有无障碍能力。 安装 使用 NPM npm install @eva / plugin - a11y 在浏览器中 <script src = "https://unpk...
  • Quick start

    Quick start Demo project Demo project created based on webpack: https://github.com/eva-engine/start-demo Demo project created based on webpack with cdn: https://github.com/eva-...
  • Custom component

    Custom component Introduce In daily business development, we need to customize some business logic. Each game object may need a separate logic or “data driver”. We develop busine...
  • Resource Management

    Resource Management All resources used in the game will be managed by the resource manager. Before using the resource, you need to add the resource to the resource manager, and se...
  • Graphics Graphics

    Graphics Graphics The Graphics component provides GameObject with the ability to draw graphics. Demo Install With NPM npm i @eva / plugin - renderer @eva / plugin - renderer...