大约有 520 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0038 秒)
...的位置,可是圆移动过去不再继续向前飞,直接自由落体,if(this.ball.position.x<1) { this.ball.position={x:790,y:this.ball.position.y} } if(this.ball.position.x>799) { this.ball.position={x:10,y:this.ball.position.y} } 请问谁有什么刚好的办法实现我需要的这个...
来源: Laya_社区 发布时间: 20180620
...function playbgm() { SoundManager.playMusic("comp/bgm.mp3", 1, new Handler(this, bgmComplete)); } function bgmComplete() { console.log("播放完成"); } 附件 : --> 2018-03-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...
来源: Laya_社区 发布时间: 20180306
... Laya.Event; // 创建TestPageUI的子类 function TestUI() { TestUI.super(this); //btn是编辑器界面设定的,代码里面能直接使用,并且有代码提示 this.btn.on(Event.CLICK, this, onBtnClick); this.btn2.on(Event.CLICK, this, onBtn2Click); function onBtnClick() { //手动控制组...
来源: Laya_示例 发布时间: 20251130
... Laya.Event; // 创建TestPageUI的子类 function TestUI() { TestUI.super(this); //btn是编辑器界面设定的,代码里面能直接使用,并且有代码提示 this.btn.on(Event.CLICK, this, onBtnClick); this.btn2.on(Event.CLICK, this, onBtn2Click); function onBtnClick() { //手动控制组...
来源: Laya2.0_示例 发布时间: 20200319
...ge.bgColor = "#232628"; Stat.show(); Laya.loader.load(skin, Handler.create(this, this.onLoadComplete)); } onLoadComplete() { const TextArea = Laya.TextArea; let ta = new TextArea(""); ta.skin = skin; ta.font = "Arial"; ta.fontSize = 18; ta.bold = true; ta.color = "#3d3d3d"; ta.pos(100, 15); ta.size(...
来源: Laya2.0_示例 发布时间: 20251130
...e.bgColor = "#232628"; Stat.show(); Laya.loader.load(skins, Handler.create(this, this.onSkinLoaded)); } onSkinLoaded() { let tabA = this.createTab(skins[0]); tabA.pos(40, 120); tabA.labelColors = "#000000,#d3d3d3,#333333"; let tabB =this. createTab(skins[1]); tabB.pos(40, 220); tabB.labelColors = "#...
来源: Laya2.0_示例 发布时间: 20251130
...L; Laya.stage.bgColor = "#232628"; Laya.loader.load(assets, Handler.create(this, this.onSkinLoadComplete)); } onSkinLoadComplete() { const Dialog = Laya.Dialog, Image = Laya.Image, Button = Laya.Button; let dialog = new Dialog(); let bg = new Image(assets[0]); dialog.addChild(bg); let button = new B...
来源: Laya2.0_示例 发布时间: 20251130
...a(video); hls.on(HLS.Events.MEDIA_ATTACHED, () => { video.muted = true; this.playVideo(); }); hls.on(HLS.Events.ERROR, (event, data) => { console.log("HLS加载失败"); }); hlsxx = hls;//方便销毁用hlsxx.destroy(); }else if(videoTexture.canPlayType("m3u8")){ this.playVideo(); videoTexture...
来源: Laya_社区 发布时间: 20250908
...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createMovieClip(); } createMovieClip() { const MovieClip = Laya.MovieClip; const SWFPath = "res/swf/dragon.swf"; let MCWidth = 318, MCHeight = 406; let mc = new MovieClip(); Laya.stage.addChild(mc); mc.x = (Laya.stage.wi...
来源: Laya2.0_示例 发布时间: 20251130
...; Laya.stage.bgColor = "#232628"; Laya.loader.load(apePath, Handler.create(this, createApe)); })(); function createApe() { var ape = new Sprite(); ape.loadImage(apePath); ape.x = (Laya.stage.width - ape.width) / 2; ape.y = (Laya.stage.height - ape.height) / 2; Laya.stage.addChild(ape); applayFilter(...
来源: Laya_示例 发布时间: 20251130