大约有 520 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0053 秒)
....clear(); graphics.save(); graphics.alpha(0.6); graphics.drawRect(0,0,Laya.stage.width,Laya.stage.height,'#000000'); graphics.restore(); sprite.graphics=graphics; 2018-12-19 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 dz5566 相关问...
来源: Laya_社区 发布时间: 20181218
...将btn.fitlers = null,这时舞台绘画的消失了???? */ Laya.stage.graphics.drawRect(200, 200, Laya.stage.width / 2, Laya.stage.height / 2, "#ffff00"); var btn:Sprite = new Sprite(); btn.size(200, 100); btn.graphics.drawRect(0, 0, btn.width, btn.height, "#ff00ff"); Laya.stage.addChild(bt...
来源: Laya_社区 发布时间: 20181221
...a.timer.clear(this, this.onLoop); //移除舞台的鼠标移动事件 Laya.stage.off(Laya.Event.MOUSE_MOVE); } //恢复 GameEx.prototype.resume = function () { //在循环中创建敌人 Laya.timer.frameLoop(1,this,this.onLoop); console.log("恢复播放音乐") Laya.SoundManager.stopMusic(); Laya...
来源: Laya_社区 发布时间: 20180514
...uctor() { this.init(); } init() { Laya.stage.bgColor='#ffffff'; Laya.stage.addChild(new Laya.Image('comp/img/img1.png')); Laya.timer.once(1000, this, this.delayShow); } delayShow() { let canvas = Laya.stage.drawToCan...
来源: Laya_社区 发布时间: 20230419
...处于底部,这个是什么问题 Laya.init(640,960,Laya.WebGL); Laya.stage.scaleMode = "exactfit"; Laya.stage.alignH = "center"; var Sprite = laya.display.Sprite; var Bg = new Sprite(); Bg.loadImage("../laya/assets/bg_back.png"); Laya.stage.addChild(Bg); Bg.on(Laya.Event.MOUSE_DOWN, this, functi...
来源: Laya_社区 发布时间: 20180119
...Sprite(); bgSprite.loadImage("war/background.png"); bgSprite.scaleX = Laya.stage.width / 480; bgSprite.scaleY = Laya.stage.height / 852; Laya.stage.addChild(bgSprite); 在安卓和其他的ios设备上都正常,但是在iphone xr上就遇到了显示不全的问题。 有问题的设备的相...
来源: Laya_社区 发布时间: 20190525
...s.lastClientWidth); if(Laya.stage.scaleMode != Laya.Stage.SCALE_SHOWALL){ Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; } ...
来源: Laya_社区 发布时间: 20190514
...th.random() * 500, Math.random() * 800, 50, "#666666", "#555555", 5); Laya.stage.addChild(Sprite) } 其他: Laya.init(Laya.Browser.width, Laya.Browser.height, Laya.WebGL);//Laya.WebGL Laya.stage.scaleMode = "showall"; Laya.stage.alignH = "center"; Laya.stage.alignV = "center"; Laya.stage.useHDRender...
来源: Laya_社区 发布时间: 20171005
... mainCan = new Sprite(); Laya.stage.addChild(mainCan); dialogCan = new Sprite(); Laya.stage.addChild(dialogCan); tipCan = new Sprite(...
来源: Laya_社区 发布时间: 20180306
...决游戏最小化退到后台后浏览器会强制1秒执行一次ILaya.stage._loop() ILaya.m_worker = new Worker("libs/sleepThread.js"); ILaya.m_worker.onmessage = function () { if (!ILaya.stage.isVisibility) { // console.log("_e...
来源: Laya_社区 发布时间: 20201201