• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 283 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0039 秒)

71. "Background is not defined"怎么会没定义呢???求救 [ 77%]

...ge.addChild(this.bg); })(); })();Background.js var Background = (function(_super){ function Background(){ Background.super(this); this.bg1 = new Laya.Sprite(); this.bg1.loadImage("res/background.png"); this.addChild(this.bg1); } Laya.class(Background,"Background",_super); window.Background=Backgroun...

来源: Laya_社区 发布时间: 20170420

72. 官方视频教程中飞机大战 "this.addChild is not a function" [ 77%]

...ddChild(this.bg); })(); })(); src/BackGround.jsvar BackGround = (function(_super){ function BackGround(){ BackGround.super(this); this.bg1 = new Laya.Sprite(); this.bg1.loadImage("war/background.png"); this.addChild(this.bg1); } Laya.class(BackGround,"BackGround",_super); return BackGround; })(Laya....

来源: Laya_社区 发布时间: 20181003

73. 关于环形进度条,进度不能重置问题 [ 77%]

...2 个回复 cuixueying 赞同来自: gls_laybox var IndexView = (function(_super){ this.angle; this.draw; this.box; this.circle; function IndexView(){ IndexView.super(this); this.angle = 0; Laya.timer.loop(200,this,this.loadProgress) var Sprite = Laya.Sprite; this.box = new Sprite(); this.box.cacheA...

来源: Laya_社区 发布时间: 20170807

74. 我实现内购的时候,通过ios原生已经成功购买,弹出alert [ 77%]

...么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 super1013 相关问题 微信关系链:LayaAir引擎针对微信小游戏好友关系链实现方案 如何实现微信登录? 有什么容器能够实现当子元素达到显示上限后自动滚屏,使得新添加的元...

来源: Laya_社区 发布时间: 20180205

75. 针对2.0.0 beta5 setLoadingPage 做增强 [ 77%]

.../loadPage' export default class page1 extends Laya.Scene { constructor() { super() } onEnable() { // 预加载loadPage let loadPage = new LoadPage() loadPage.preload() this.getChildByName('text').on(Laya.Event.CLICK, this, function () { // 切换打开场景方式 查看效果不同 loadPage.openSce...

来源: Laya_社区 发布时间: 20181124

76. sprite.drawToCanvas绘制纹理无法释放内存资源 [ 76%]

...c function destroy():void { _ctx && _ctx.destroy(); _ctx = null; + super.destroy(); } public function get context():Context {即  WebGL.as 注释掉265,266 WebGLCanvas.as 在 destroy()函数的最后加 super.destroy(); 2018-06-20 0 1 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: webg...

来源: Laya_社区 发布时间: 20180612

77. js继承模式 [ 76%]

...on() { Laya.class(Class, className, Laya.Sprite); function Class() { Class.super(this); // this定义.. this.init(); } Class.prototype.init = function() { console.log(this); }; return Class; })(); } var __extends = (this && this.__extends) || function(d, b) { for (var p in b) { (b.hasOwnProp...

来源: Laya_社区 发布时间: 20170619

78. 模仿教程里的打地鼠写的代码,运行报错 [ 76%]

...G); } })();在background.js里是这样写的 var background = (function (_super) { function background() { background.super(this); } Laya.class(background,"background",_super); return background; })(ui.backgroundUI);backgound.ui也在场景编辑器里编辑并导出了。   然后运行的时候...

来源: Laya_社区 发布时间: 20180129

79. js飞机大战报错 请大神看看 [ 76%]

...       this.infoLabel=null; GameInfo.js: var GameInfo = (function (_super) {     function GameInfo() {         GameInfo.super(this);         // this.infoLabel.text = "abc"; 这个也报异常应该是找不到infoLabel         // 注册按钮点击事件 点击后暂停游戏   ...

来源: Laya_社区 发布时间: 20171118

80. 打飞机点开始游戏加载飞机动画不出来,点重新开始,才出来,新手求助! [ 76%]

...ddChild(over); } hero类: (function() { function Hero(type, hp) { Hero.__super.call(this); this.fly(); } Laya.class(Hero,"Hero", Air); var _proto = Hero.prototype; _proto.fly = function() { this.playAction("fly") } })(); air类: (function() { function Air(type, hp) { this.hp = hp; this.type = ty...

来源: Laya_社区 发布时间: 20180911