大约有 16 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0021 秒)
...age = Laya.Stage; // 不支持WebGL时自动切换至Canvas Laya.init(700, 500, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createMap(); Laya.stage.on(Laya.Event.CLICK, this, ...
来源: Laya2.0_示例 发布时间: 20241124
...项目开发更高效。let mFactory, mArmature, mStartX = 400, mStartY = 500, mCurrIndex = 0; class Skeleton_MultiTexture { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth...
来源: Laya2.0_示例 发布时间: 20241124
...项目开发更高效。let mFactory, mArmature, mStartX = 200, mStartY = 500, mCurrIndex = 0; class Skeleton_SpineVine { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Sprite = Laya.Sprite; // 不支持WebGL时自动切换至Canvas Laya.init(...
来源: Laya2.0_示例 发布时间: 20241124
...项目开发更高效。let mFactory, mArmature, mStartX = 200, mStartY = 500, mCurrIndex = 0; class Skeleton_SpineStretchyman { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Sprite = Laya.Sprite; // 不支持WebGL时自动切换至Canvas Lay...
来源: Laya2.0_示例 发布时间: 20241124
...g = 10; } startShake() { const Shake = Laya.Shake; Shake.instance.start(5, 500); Shake.instance.on(Laya.Event.CHANGE, this, this.onShake); console.text = '开始接收设备摇动\n'; } onShake() { const Shake = Laya.Shake; shakeCount++; console.text += "设备摇晃了" + shakeCount + "次\n"; if (...
来源: Laya2.0_示例 发布时间: 20241124
...项目开发更高效。let mFactory, mArmature, mStartX = 200, mStartY = 500, mCurrIndex = 0, mSkinList = ["goblin","goblingirl"], mCurrSkinIndex = 0; class Skeleton_ChangeSkin { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Sprite = Laya.Sp...
来源: Laya2.0_示例 发布时间: 20241124
...tClip(assets[0]); var clipnum1 = new FontClip(assets[0]); clipnum.pos(240, 500); clipnum.size(250, 50); clipnum.sheet = "0123456789"; clipnum.value = "114499"; clipnum.spaceY = 10; TestClipNum.pos(200, 400); TestClipNum.sheet = "0123456789"; TestClipNum.value = "0123456789"; clipnum1.pos(150, 200); ...
来源: Laya2.0_示例 发布时间: 20241124
...aded: number = 0; private resAmount: number = 3; constructor() { Laya.init(500, 400); // 按序列加载 monkey2.png - monkey1.png - monkey0.png // 不开启缓存 // 关闭并发加载 Laya.loader.maxLoader = 1; Laya.loader.load("res/apes/monkey2.png", Handler.create(this, this.onAssetLoaded), null...
来源: Laya2.0_示例 发布时间: 20241124
...项目开发更高效。let mFactory, mArmature, mStartX = 400, mStartY = 500, mCurrIndex = 0, mLabelSprite; class Skeleton_SpineEvent { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Sprite = Laya.Sprite; // 不支持WebGL时自动切换至Ca...
来源: Laya2.0_示例 发布时间: 20241124
....Tween, Ease = Laya.Ease; Tween.to(this.ape, { "scaleX": 1, "scaleY": 1 }, 500, Ease.bounceOut); isApeHold = true; } /** 鼠标放开后停止hold */ onApeRelease() { const Tween = Laya.Tween, Event = Laya.Event; // 鼠标放开时,如果正在hold,则播放放开的效果 if (isApeHold) { isApe...
来源: Laya2.0_示例 发布时间: 20241124