大约有 4 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0014 秒)
...目开发更高效。let aniConfPath = "res/fighter/fighter.atlas"; class Animation_Altas { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.alignV = Stage.ALIGN...
来源: Laya2.0_示例 发布时间: 20241124
...#232628"; Stat.show(); this.init(); } init() { const Sprite = Laya.Sprite, Animation = Laya.Animation, Text = Laya.Text, Event = Laya.Event; // 创建背景 this.spBg = Sprite.fromImage(PathBg); Laya.stage.addChild(this.spBg); // 创建动画 this.aniFly = new Animation(); this.aniFly.loadAtlas(Path...
来源: Laya2.0_示例 发布时间: 20241124
...prite { constructor(images) { super(); this.speed = 5; this.bloodBar; this.animation; this.nameLabel; this.createAnimation(images); this.createBloodBar(); this.createNameLabel(); } createAnimation(images) { const Animation = Laya.Animation; this.animation = new Animation(); this.animation.loadImages...
来源: Laya2.0_示例 发布时间: 20241124
.../ phoenixHeight); // 混合模式的凤凰 let blendedPhoenix = this.createAnimation(); blendedPhoenix.blendMode = Laya.BlendMode.LIGHTER; // 指定要使用的混合模式 blendedPhoenix.scale(scaleFactor, scaleFactor); blendedPhoenix.y = (Laya.stage.height - phoenixHeight * scaleFactor) / 2; // ...
来源: Laya2.0_示例 发布时间: 20241124