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

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

1. 2D物理-碰撞事件与传感器 [ 100%]

...rue; Laya.Laya.init(1200, 700, Laya.WebGL); Laya.Stat.show(); Laya.Physics.enable(); Laya.PhysicsDebugDraw.enable(); Laya.Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; Laya.Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.Laya.stage.scaleMode = Laya.Stage.SCALE_FIXED_AUTO; Laya.Laya.stage.bgColor = ...

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

2. 骨骼动画-多纹理 [ 87%]

...rmature:Skeleton; private mCurrSkinIndex:number = 0; constructor() { WebGL.enable(); Laya.init(Browser.width, Browser.height); Laya.stage.bgColor = "#ffffff"; Stat.show(); this.startFun(); } public startFun():void { this.mAniPath = "res/spine/spineRes1/dragon.sk"; this.mFactory = new Templet(); this...

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

3. 骨骼动画-换装 [ 85%]

... 0; private mSkinList:any = ["goblin","goblingirl"]; constructor() { WebGL.enable(); Laya.init(Browser.width, Browser.height); Laya.stage.bgColor = "#ffffff"; Stat.show(); this.startFun(); } public startFun():void { this.mAniPath = "res/spine/spineRes2/goblins.sk"; this.mFactory = new Templet(); thi...

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

4. 骨骼动画-藤蔓 [ 71%]

...rivate var mFactory2:Templet; public function Skeleton_SpineVine() { WebGL.enable(); Laya.init(Browser.width, Browser.height); Laya.stage.bgColor = "#ffffff"; Stat.show(); startFun(); } public function startFun():void { mAniPath = "../../res/spine/spineRes5/vine.sk"; mFactory = new Templet(); mFacto...

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

5. 骨骼动画-橡胶人 [ 71%]

...var mFactory2:Templet; public function Skeleton_SpineStretchyman() { WebGL.enable(); Laya.init(Browser.width, Browser.height); Laya.stage.bgColor = "#ffffff"; Stat.show(); startFun(); } public function startFun():void { mAniPath = "../../res/spine/spineRes4/stretchyman.sk"; mFactory = new Templet();...

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

6. 骨骼动画-Spine事件 [ 63%]

...ate var mLabelSprite:Sprite; public function Skeleton_SpineEvent() { WebGL.enable(); Laya.init(Browser.width, Browser.height); Laya.stage.bgColor = "#ffffff"; Stat.show(); mLabelSprite = new Sprite(); startFun(); } public function startFun():void { mAniPath = "../../res/spine/spineRes6/alien.sk"; mF...

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