大约有 341 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0043 秒)
....scrollY += prevY - nowY; prevX = nowX; prevY = nowY; } })();module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Event = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Text_Scroll { private txt: Text; private prevX: number = 0; private prevY: ...
来源: Laya_示例 发布时间: 20241117
...载失败: " + err); } } new Loader_ProgressAndErrorHandle();module laya { import Event = Laya.Event; import Loader = Laya.Loader; import Texture = Laya.Texture; import Handler = Laya.Handler; export class Loader_ProgressAndErrorHandle { constructor() { Laya.init(550, 400); // 无加载失败重试 ...
来源: Laya2.0_示例 发布时间: 20241117
...{ //spBtn2的透明度减少0.5 button2.alpha -= 0.5; } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Timer_DelayExcute { private button1: Sprite; private button2: Sprite; c...
来源: Laya_示例 发布时间: 20241117
...is.txt.text = "恢复"; } } } new Loader_ClearTextureRes();namespace leo { import Sprite = laya.display.Sprite; import Animation = laya.display.Animation; import Text = laya.display.Text; import Stage = laya.display.Stage; import Browser = laya.utils.Browser; import Stat = laya.utils.Stat; import We...
来源: Laya2.0_示例 发布时间: 20241117
...turn GameMain; }()); new GameMain(); })(leo || (leo = {}));namespace leo { import Sprite = laya.display.Sprite; import Animation = laya.display.Animation; import Text = laya.display.Text; import Stage = laya.display.Stage; import Browser = laya.utils.Browser; import Stat = laya.utils.Stat; import We...
来源: Laya_示例 发布时间: 20241117
...可以在舞台上显示多个动画。 代码示例: ```java package { import laya.ani.bone.Skeleton; import laya.ani.bone.Templet; import laya.events.Event; import laya.webgl.WebGL; /** * ... * @author ww */ public class SkeletonTempletSample { public var templet:Templet; public function Skeleto...
来源: Laya2.0_文档 发布时间: 20210715
...this._translate; }); }); } } new OrthographicCamera;package cameraModule { import laya.ani.AnimationTemplet; import laya.d3.component.animation.SkinAnimations; import laya.d3.core.Camera; import laya.d3.core.MeshSprite3D; import laya.d3.core.Sprite3D; import laya.d3.core.light.DirectionLight; import...
来源: Laya_示例 发布时间: 20241117
....preSwfAssets方法,通过预加载方式解决这个问题。 package { import flash.display.Loader; import flash.display.LoaderInfo; import flash.display.Sprite; import fash.display.StageAlign; import flash.display.StageScaleMode; import flash.events.Event; import flash.net.URLRequest; public cl...
来源: Laya_社区 发布时间: 20151123
...pt); this.debug = false; } } } } new ColiderDemo();package physicsModule { import common.CameraMoveScript; import common.DrawBoxColliderScript; import laya.d3.component.Rigidbody; import laya.d3.component.physics.BoxCollider; import laya.d3.component.physics.MeshCollider; import laya.d3.component.ph...
来源: Laya_示例 发布时间: 20241117
...mate); } function animate(e) { apesCtn.rotation += 1; } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Sprite_Container { // 该容器用于装载4张猩猩图片 private ape...
来源: Laya_示例 发布时间: 20241117