大约有 427 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0042 秒)
...moveDownBall = function(){ this.ball.x -= this.vx; this.ball.y += this.vy; console.log("111111"); this.vy *= 0.99; this.vy += 0.25; console.log("222222"); if (this.ball.y + this.vy >= this.img1 ||this.ball.y + this.vy <= 0) { this.vy = -this.vy; console.log("33333"); } if (this.ball.x + this.v...
来源: Laya_社区 发布时间: 20171108
...息不一致: var player :Player = Laya.stage.getChildAt(i) as Player; console.log(player.x); 附:在Player中输出x的信息 一直为0 但是在Monster类中输出Player的x的数据一直是497,0,494,0,491,0,488,0.......这样的 2018-08-28 添加评论 免费帖 --> 分享 微...
来源: Laya_社区 发布时间: 20180828
...omplete(): void { this.wayPoints = Laya.loader.getRes("zxc.json") as JSON; console.log(this.wayPoints.name); //这里会报name 不存在 } 第二种方式 Laya.loader.load("zxc.json", Laya.Handler.create(this,function(){ this.wayPoints = Laya.loader.getRes("zxc.json") as JSON; console.log(this.wayP...
来源: Laya_社区 发布时间: 20180119
...s.bgimg.mvtoy=movetoy; this.bgimg.speedx=speedx; this.bgimg.speedy=speedy; console.log("funmovebg"+movetox); Laya.timer.frameLoop(speed, this, funbg); 2017-10-25 0 2 分享 微博 QZONE 微信 yinglei999 赞同来自: var Loader = Laya.Loader; var loaderHandler = Laya.Handler; ...
来源: Laya_社区 发布时间: 20171024
...Handler(this,this.onEaseComplete),1,null,true); function onEaseComplete(){ console.log("ease complete"); Laya.stage.addChild(letterText); } ``` 以上的代码主要存在三个问题: 1. from()中的duration和delay都是以毫秒为单位,所以3,1想表示3秒,1秒需要使用3000,1000作为参...
来源: Laya_社区 发布时间: 20180620
... onStart() { //@ts-ignore window.camera = this.camera; console.log("Game start", this.camera._up); console.log( "Game start", this.camera._up.x, this.camera._up.y, this.camera._up.z ); } } 附件 : --> testProject.zip 2024-10-29 ...
来源: Laya_社区 发布时间: 20241029
...放?需要用到ResourceManager吗?有没有例子? 如何在chrome console 里模拟canvas点击事件 如何把本地的svg文件读取到内存里,如何画在画布上 清理运行时不必要的内存问题 问题状态 最新活动: 2017-11-13 10:58 浏览: 783 关注: 2 人
来源: Laya_社区 发布时间: 20171113
...enceCount); if (this.bitmap.referenceCount===0){ this.bitmap.destroy(); // console.log("texture2d destory"); } this.bitmap=null; } if (this.url && this===Laya.loader.getRes(this.url)) Laya.loader.clearRes(this.url); } }增加的代码是 if (this.bitmap.referenceCount===0){ this.bitmap.dest...
来源: Laya_社区 发布时间: 20190320
...有完全展示数组数据,只展示了其中的图片部分,数组能console出,那个list中的数据也存在,但没渲染出。 请教下微信小游戏的内存和数据缓存? 创建动效模板 可能存在bug [Laya2.0 3D] 2.0正式版上存在某些骨骼动画无法播放,U3D...
来源: Laya_社区 发布时间: 20200114
..._proto.play = function () { // if (this.url.indexOf("music.d") != -1) { // console.log("play", this.url) // console.trace("play", this.url) // } Laya.SoundManager.addChannel(this); this.isStopped = false; this._clearBufferSource(); if (!this.audioBuffer) { // console.log("audioBuffer is null",this.u...
来源: Laya_社区 发布时间: 20201014