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

大约有 4,373 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0135 秒)

1691. 飞机大战js源码中判断语句问题 [ 72%]

飞机大战js源码中判断语句问题 (function Game() { var Sprite = laya.display.Sprite; //定义背景容器 var box; //定义背景1 var bg1; //定义背景2 var bg2; (function () { //初始化引擎,设置游戏的宽高 Laya.init(480, 852); //创建一个容器,用于存放背景图...

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

1692. 文本-滚动文本 [ 72%]

...t:Text; private var prevX:Number = 0; private var prevY:Number = 0; public function Text_Scroll() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Stat.show(); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya...

来源: Laya2.0_示例 发布时间: 20260303

1693. 引擎示例中的新手引导自己写了一次,不知道为什么无法实现点击。 [ 72%]

...新手引导自己写了一次,不知道为什么无法实现点击。 (function() { var guideSteps = [ { x: 151, y: 575, radius: 150, tip: "../../res/guide/help6.png", tipx: 200, tipy: 250 }, { x: 883, y: 620, radius: 100, tip: "../../res/guide/help4.png", tipx: 730, tipy: 380 }, { x: 1128, y: 58...

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

1694. 我在Layasample主类中,检测键盘按下并输出一切正常,可是放到其他类里面则能检测到按键按下,却一直输出undefined [ 72%]

...面则能检测到按键按下,却一直输出undefined var GameStart = (function (_super) {     function GameStart() {         GameStart.super(this);         Laya.stage.on(Laya.Event.KEY_DOWN,LayaSample,Test);     }     function Test(e){         console.log(e.keycode...

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

1695. 无法清除指定定时器 [ 72%]

...复 w1114367261 赞同来自: Laya.timer.loop(100, this, looppp); private function looppp():void          {             trace("______________________");         } this.stage.on(Event.MOUSE_UP, this, onB); private function onB():void          {             Laya.t...

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

1696. 读取文件编码问题 [ 72%]

...scii的格式,为什么要这么做?       MiniAdpter.getUrlEncode=function(url,type){         if(url.indexOf(".fnt")!=-1)             return "utf8";         else if(type=="arraybuffer")         return "";         return "ascii";     } 2018-05-10 添加评...

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

1697. gps定位获取当前城市名字 [ 72%]

...bleHighAccuracy = true; Geolocation.getCurrentPosition(Handler.create(this,function(pos):void { alert("pos:"+pos.coords.longitude+","+pos.coords.latitude); }),Handler.create(this,function(error):void { switch (error.code) { case Geolocation.PERMISSION_DENIED: alert("位置服务被拒绝,请检查...

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

1698. laya.ui.Radio_API3.0 [ 72%]

....ui.Button; import laya.utils.Handler; public class Button_toggle { public function Button_toggle() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/button.png", Handler.create(this,onLoad...

来源: Laya3.0_api 发布时间: 20231115

1699. laya.d3.core.Vector3Keyframe [ 72%]

...blic var value:Vector3Constructor DetailVector3Keyframe()Constructorpublic function Vector3Keyframe() 创建一个 Vector3Keyframe 实例。 Method DetailcloneTo()methodoverride public function cloneTo(dest:*):void 克隆。 Parameters dest:* — 克隆源。 Mon May 13 2019, 02:40 PM +08:00

来源: Laya2.0_api 发布时间: 20190513

1700. laya.display.AnimationBase_API3.0 [ 72%]

...s type: string Optional data: any Returns void callLater callLater(method: Function, args?: any[]): void Inherited from Node.callLater Defined in laya/display/Node.ts:621 延迟运行指定的函数。 在控件被显示在屏幕之前调用,一般用于延迟计算数据。 see #runCallLater() Pa...

来源: Laya3.0_api 发布时间: 20231115