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

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

21. 骨骼动画-藤蔓 [ 95%]

...{ mCurrIndex = 0; } mArmature.play(mCurrIndex,false); } })();module laya { import Skeleton = Laya.Skeleton; import Templet = Laya.Templet; import Event = Laya.Event; import Browser = Laya.Browser; import Stat = Laya.Stat; import WebGL = Laya.WebGL; export class Skeleton_SpineVine { private mAniPath:...

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

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

...x + dy * dy); } return distance; } } new Interaction_Scale();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Interaction_Scale { //上次记录的两个触模点之间距离 privat...

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

23. 骨骼动画-橡胶人 [ 95%]

...{ mCurrIndex = 0; } mArmature.play(mCurrIndex,false); } })();module laya { import Skeleton = Laya.Skeleton; import Templet = Laya.Templet; import Event = Laya.Event; import Browser = Laya.Browser; import Stat = Laya.Stat; import WebGL = Laya.WebGL; export class Skeleton_SpineStretchyman { private mA...

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

24. 鼠标交互-自定义事件 [ 95%]

...}, 1000, Ease.elasticOut); } } new Interaction_CustomEvent();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Browser = Laya.Browser; import Ease = Laya.Ease; import Tween = Laya.Tween; import WebGL = Laya.WebGL; export class Interaction_CustomE...

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

25. 区块地图-滚动地图 [ 95%]

...er.width, Laya.Browser.height); } } new TiledMap_ScrollMap();module laya { import Stage = Laya.Stage; import TiledMap = Laya.TiledMap; import Rectangle = Laya.Rectangle; import Browser = Laya.Browser; import Handler = Laya.Handler; import Stat = Laya.Stat; import WebGL = Laya.WebGL; export class Til...

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

26. 骨骼动画-多纹理 [ 95%]

...ure.play(mCurrIndex, false); } } new Skeleton_MultiTexture();module laya { import Skeleton = Laya.Skeleton; import Templet = Laya.Templet; import Event = Laya.Event; import Browser = Laya.Browser; import Stat = Laya.Stat; import WebGL = Laya.WebGL; export class MultiTexture { private mAniPath:string...

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

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

...ature.play(mCurrIndex, false); } } new Skeleton_ChangeSkin();module laya { import Skeleton = Laya.Skeleton; import Templet = Laya.Templet; import Event = Laya.Event; import Browser = Laya.Browser; import Stat = Laya.Stat; import WebGL = Laya.WebGL; export class ChangeSkin { private mAniPath:string; ...

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

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

...this.destoryJoint); } } new Physics_Physics_CollisionFiltering();package { import laya.display.Sprite; import laya.display.Stage; import laya.events.Event; import laya.physics.BoxCollider; import laya.physics.ChainCollider; import laya.physics.CircleCollider; import laya.physics.joint.MouseJoint; im...

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

29. 鼠标交互-Hold [ 95%]

...; Laya.stage.off(Event.MOUSE_UP, this, onApeRelease); } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Texture = Laya.Texture; import Browser = Laya.Browser; import Ease = Laya.Ease; import Handler = Laya.Handler; import Tween = Laya.Twee...

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

30. 网络和格式-POST [ 95%]

...lete(e) { logger.text += "收到数据:" + hr.data; } })();module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Event = Laya.Event; import HttpRequest = Laya.HttpRequest; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Network_POST { private hr: HttpReque...

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