大约有 291 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0080 秒)
...环 if(this.hero.hp < 1){ Laya.timer.clear(this,onLoop); } // 每隔30帧创建新的敌机 if(Laya.timer.currFrame%60 === 0){ createEnemy(2); } } function lostHp(role,lostHp){ // 减血 role.hp -= lostHp; if(role.heroType === 2){ // 每吃一个子弹升级道具,子弹升级+1 this.bulletLeve...
来源: Laya_社区 发布时间: 20170525
...= null, coverBefore:Boolean = true):void 定时重复执行某函数(基于帧率)。功能同Laya.timer.frameLoop()。 Node frameOnce(delay:int, caller:*, method:Function, args:Array = null, coverBefore:Boolean = true):void 定时执行一次某函数(基于帧率)。功能同Laya.timer.frameOnce(...
来源: Laya2.0_api 发布时间: 20190513
....stage.on(laya.events.Event.MOUSE_UP, this, this.onMouseUp); //创建一个帧循环处理函数 Laya.timer.frameLoop(1, this, this.onLoop); } _proto.onLoop = function(){ // 检测人物是否踩在地板上面了 for(var i = this.mapFloor.numChildren - 1; i > -1; i--){ var floor = this.mapFloor....
来源: Laya_社区 发布时间: 20160803
...from Component.onLateUpdate Defined in laya/components/Component.ts:297 每帧更新时执行,在update之后执行,尽量不要在这里写大循环逻辑或者使用getComponent方法 Returns void Optional onPostRender onPostRender(): void Inherited from Component.onPostRender Defined in laya/...
来源: Laya3.0_api 发布时间: 20231115
...立索引文件(m3u8)。更深层次的原理,比如视频解码,视频帧数据,开发者可以参考如下: https://developer.apple.com/streaming/。 https://developer.mozilla.org/zh_CN/docs/Web/API/MediaSource。 https://github.com/nickdesaulniers/netfix https://developer.mozilla.org/en-U...
来源: Laya3.0_文档 发布时间: 20251010
...= null, coverBefore:Boolean = true):void 定时重复执行某函数(基于帧率)。功能同Laya.timer.frameLoop()。 Node frameOnce(delay:int, caller:*, method:Function, args:Array = null, coverBefore:Boolean = true):void 定时执行一次某函数(基于帧率)。功能同Laya.timer.frameOnce(...
来源: Laya2.0_api 发布时间: 20190513
...的问题是如何解决的? 微信小游戏如何竖屏 Layaair IDE的帧属性面板不见了 关于微信7.0.3版本之后的版本,微信小游戏 Android 端调整 “在屏 Canvas” 的放缩策略 微信小游戏:HTMLDivElement的使用 如何实现微信登录? 有什么容器能够...
来源: Laya_社区 发布时间: 20180525
...= null, coverBefore:Boolean = true):void 定时重复执行某函数(基于帧率)。功能同Laya.timer.frameLoop()。 Node frameOnce(delay:int, caller:*, method:Function, args:Array = null, coverBefore:Boolean = true):void 定时执行一次某函数(基于帧率)。功能同Laya.timer.frameOnce(...
来源: Laya2.0_api 发布时间: 20190513
...Loop Defined in laya/display/Node.ts:588 定时重复执行某函数(基于帧率)。功能同Laya.timer.frameLoop()。 Parameters delay: number 间隔几帧(单位为帧)。 caller: any 执行域(this)。 method: Function 结束时的回调方法。 Default value args: any[] = null (可选)回...
来源: Laya3.0_api 发布时间: 20231115
...= null, coverBefore:Boolean = true):void 定时重复执行某函数(基于帧率)。功能同Laya.timer.frameLoop()。 Node frameOnce(delay:int, caller:*, method:Function, args:Array = null, coverBefore:Boolean = true):void 定时执行一次某函数(基于帧率)。功能同Laya.timer.frameOnce(...
来源: Laya2.0_api 发布时间: 20190513