大约有 5 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0019 秒)
...oader.retryNum = 0; var urls = ["do not exist", "../../res/fighter/fighter.png", "../../res/legend/map.jpg"]; Laya.loader.load(urls, Handler.create(this, onAssetLoaded), Handler.create(this, onLoading, null, false), Loader.TEXT); // 侦听加载失败 Laya.loader.on(Event.ERROR, this, onError); })()...
来源: Laya_示例 发布时间: 20241117
... bloodBar = new Sprite(); bloodBar.loadImage("../../res/cartoon2/blood_1_r.png"); bloodBar.x = 20; this.addChild(bloodBar); } Character.prototype.createNameLabel = function() { nameLabel = new Text(); nameLabel.color = "#FFFFFF"; nameLabel.text = "Default"; nameLabel.fontSize = 13; nameLabel.width =...
来源: Laya_示例 发布时间: 20241117
...布局 var boy1 = new Image(); boy1.skin = "../../res/cartoonCharacters/1.png"; boy1.top = 0; boy1.right = 0; boy1.on("click", this, onBoyClick); Laya.stage.addChild(boy1); //实例一个小人,放到右下角,并相对布局 var boy2 = new Image(); boy2.skin = "../../res/cartoonCharacters/2.png...
来源: Laya_示例 发布时间: 20241117
...w Sprite(); laser.loadImage("../../res/pixi/laser0" + ((type % 5) + 1) + ".png"); type++; laser.life = 0; var pos1; var pos2; if (type % 2) { pos1 = new Point(-20, Math.random() * viewHeight); pos2 = new Point(viewWidth, Math.random() * viewHeight + 20); } else { pos1 = new Point(Math.random() * vie...
来源: Laya_示例 发布时间: 20241117
...ya.Texture2D.load("../../res/threeDimen/scene/terrain/terrain/splatalpha 0.png")); customMaterial.setLightMapTexture(Laya.Texture2D.load("../../res/threeDimen/scene/terrain/Assets/Scenes/Level/XunLongShi/Lightmap-0_comp_light.png")); customMaterial.setDiffuseTexture1(Laya.Texture2D.load("../../res/t...
来源: Laya_示例 发布时间: 20241117