• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 31 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0022 秒)

1. 动画-图集动画 [ 100%]

...种开发语言、LayaAirIDE让项目开发更高效。(function() { var Animation = Laya.Animation; var Stage = Laya.Stage; var Rectangle = Laya.Rectangle; var Loader = Laya.Loader; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var AniConfPath = "../../res/fighter/...

来源: Laya_示例 发布时间: 20241118

2. 性能测试-卡通人物2 [ 98%]

...ar Stat = Laya.Stat; var WebGL = Laya.WebGL; var Sprite = Laya.Sprite; var Animation = Laya.Animation; // Class Character function Character(images) { Character.super(this); Character.WIDTH = 110; Character.HEIGHT = 110; var bloodBar; var animation; var nameLabel; Character.prototype.createAnimation...

来源: Laya_示例 发布时间: 20241118

3. 灯光-方向光 [ 97%]

...OADED, this, function () { var aniSprite3d = layaMonkey.getChildAt(0); var animator = aniSprite3d.getComponentByType(Laya.Animator); animator.play(null, 1.0, 40, 70); }); var _quaternion = new Laya.Quaternion(); Laya.timer.frameLoop(1, null, function () { Laya.Quaternion.createFromYawPitchRoll(0.025...

来源: Laya_示例 发布时间: 20241118

4. 混合模式-Lighter [ 96%]

...种开发语言、LayaAirIDE让项目开发更高效。(function() { var Animation = Laya.Animation; var Stage = Laya.Stage; var Browser = Laya.Browser; var Handler = Laya.Handler; var Tween = Laya.Tween; var WebGL = Laya.WebGL; // 一只凤凰的分辨率是550 * 400 var phoenixWidth = 550; var pho...

来源: Laya_示例 发布时间: 20241118

5. 灯光-点光 [ 96%]

...OADED, this, function () { var aniSprite3d = layaMonkey.getChildAt(0); var animator = aniSprite3d.getComponentByType(Laya.Animator); animator.play(null, 1.0, 75, 110); }); var _position = new Laya.Vector3(); var _quaternion = new Laya.Quaternion(); Laya.timer.frameLoop(1, null, function () { Laya.Qu...

来源: Laya_示例 发布时间: 20241118

6. 灯光-聚光 [ 95%]

...OADED, this, function () { var aniSprite3d = layaMonkey.getChildAt(0); var animator = aniSprite3d.getComponentByType(Laya.Animator); animator.play(null, 1.0, 115, 150); }); var _quaternion = new Laya.Quaternion(); var _position = new Laya.Vector3(); Laya.timer.frameLoop(1, null, function () { Laya.Q...

来源: Laya_示例 发布时间: 20241118

7. 高级应用-寻路导航 [ 92%]

...")); this.layaMonkey.transform.localScale = new Laya.Vector3(5, 5, 5); var animator = (this.layaMonkey.getChildAt(0)).getComponentByType(Laya.Animator); var totalAnimationClip = animator.getClip("Take_001"); animator.addClip(totalAnimationClip, "walk", 40, 70); animator.play("walk", 2.5); //初始...

来源: Laya_示例 发布时间: 20241118

8. 动画-新版骨骼动画 [ 90%]

...h")); zombie.once(Laya.Event.HIERARCHY_LOADED, this, function () { //获取Animator动画组件 zombieAnimator = zombie.getChildAt(0).getComponentByType(Laya.Animator); loadUI(); }); function loadUI() { var clipName = ["walk","attack","left_fall","right_fall","back_fall"]; var curStateIndex = 0; Lay...

来源: Laya_示例 发布时间: 20241118

9. Sprite-旋转缩放 [ 90%]

...ge.width / 2; ape.y = Laya.stage.height / 2; Laya.timer.frameLoop(1, this, animate); } function animate(e) { ape.rotation += 2; //心跳缩放 scaleDelta += 0.02; var scaleValue = Math.sin(scaleDelta); ape.scale(scaleValue, scaleValue); } })();module laya { import Sprite = Laya.Sprite; import Stage ...

来源: Laya_示例 发布时间: 20241118

10. 加载-销毁Texture使用的图片资源 [ 90%]

...高效。var leo; (function (leo) { var Sprite = laya.display.Sprite; var Animation = laya.display.Animation; var Text = laya.display.Text; var Stage = laya.display.Stage; var Browser = laya.utils.Browser; var Stat = laya.utils.Stat; var WebGL = laya.webgl.WebGL; var Event = laya.events.Event; /** *...

来源: Laya_示例 发布时间: 20241118