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

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

21. 骨骼动画-换装 [ 95%]

...ineRes2/goblins.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, parseComplete); mFactory.on(Event.ERROR, this, onError); mFactory.loadAni(mAniPath); } function onError() { trace("error"); } function parseComplete() { //创建模式为1,可以启用换装 mArmature = mFactory.build...

来源: Laya_示例 发布时间: 20241117

22. socket.sent [ 95%]

...e: Laya.Loader.ATLAS}, ]; Laya.loader.load (uiResArr , Laya.Handler.create(this,this.onLoded));      //加载图片 this.byte = new Laya.Byte(); //这里我们采用小端 this.byte.endian = Laya.Byte.LITTLE_ENDIAN; this.socket = new Laya.Socket(); //这里我们采用小端 this.socket.endian =...

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

23. this.btClose1.on(Laya.Event.CLICK,null,this.close);报错 [ 95%]

this.btClose1.on(Laya.Event.CLICK,null,this.close);报错 this.btClose1.on(Laya.Event.CLICK,null,this.close); 这句代码报错  附件 : --> 2017-06-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueyin...

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

24. 鼠标交互-双指缩放(多点触控) [ 95%]

...leMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } setup() { const Event = Laya.Event; this.createSprite(); Laya.stage.on(Event.MOUSE_UP, this, this.onMouseUp); Laya.stage.on(Event.MOUSE_OUT, this, this.onMouseUp); } createSprite() { const Sprite = Laya.Sprite...

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

25. 鼠标交互-双指旋转(多点触控) [ 95%]

...(); })(); function setup() { createSprite(); Laya.stage.on(Event.MOUSE_UP, this, onMouseUp); Laya.stage.on(Event.MOUSE_OUT, this, onMouseUp); } function createSprite() { sp = new Sprite(); var w = 200, h = 300; sp.graphics.drawRect(0, 0, w, h, "#FF7F50"); sp.size(w, h); sp.pivot(w / 2, h / 2); sp.po...

来源: Laya_示例 发布时间: 20241117

26. socket报错,on: reserved1 = 1, reserved2 = 1, reserved3 = 0 [ 95%]

... private var byte:Byte; public function SocketSample() { //初始化引擎 this.byte = new Byte(); this.byte.endian = Byte.LITTLE_ENDIAN;//这里我们采用小端; this.socket = new Socket(); this.socket.endian = Byte.LITTLE_ENDIAN;//这里我们采用小端; this.socket.on(Event.OPEN,this,open...

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

27. 骨骼动画-换装 [ 95%]

...leMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#ffffff"; Stat.show(); this.startFun(); } startFun() { const Templet = Laya.Templet, Event = Laya.Event; const mAniPath = "res/spine/spineRes2/goblins.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, this.parseComplete); mFactory.on...

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

28. 2D物理-碰撞过滤器 [ 95%]

...{ 'use strict'; class Physics_Physics_CollisionFiltering { constructor() { this.preMovementX = 0; this.preMovementY = 0; Laya.Config.isAntialias = true; Laya.Laya.init(1200, 700, Laya.WebGL); Laya.Stat.show(); Laya.Physics.enable(); Laya.PhysicsDebugDraw.enable(); Laya.Laya.stage.alignV = Laya.Stage...

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

29. 鼠标交互-双指缩放(多点触控) [ 95%]

...(); })(); function setup() { createSprite(); Laya.stage.on(Event.MOUSE_UP, this, onMouseUp); Laya.stage.on(Event.MOUSE_OUT, this, onMouseUp); } function createSprite() { sp = new Sprite(); var w = 300, h = 300; sp.graphics.drawRect(0, 0, w, h, "#FF7F50"); sp.size(w, h); sp.pivot(w / 2, h / 2); sp.po...

来源: Laya_示例 发布时间: 20241117

30. 鼠标交互-滑动 [ 95%]

...leMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } setup() { this.createSprite(); this.drawTrack(); } createSprite() { const Sprite = Laya.Sprite, Event = Laya.Event; const w = 50; const h = 30; this.button = new Sprite(); this.button.graphics.drawRect(0, 0, w...

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