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

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

1. 输入设备-贪吃蛇(重力感应) [ 100%]

...gments:Array = []; private foods:Array = []; private initialSegmentsAmount:number = 5; private vx:number = 0 private vy:number = 0; private targetPosition:Point; constructor() { Laya.init(Browser.width, Browser.height, WebGL); // 初始化蛇 this.initSnake(); // 监视加速器状态 Accelerator.in...

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

2. 性能测试-骨骼 [ 92%]

...(tTexture, arraybuffer, 10); } private parseComplete(): void { for (var i: number = 0; i = tAnimNum) { this.mActionIndex = 0; } for (var i: number = 0, n: number = this.mAnimationArray.length; i = tAnimNum) { mActionIndex = 0; } for (var i:int = 0, n:int = mAnimationArray.length; i < n; i++) { mAnim...

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

3. 性能测试-虫子(慎入) [ 91%]

...{ private texturePath:string = "../../res/tinyMaggot.png"; private padding:number = 100; private maggotAmount:number = 5000; private tick:number = 0; private maggots:Array = []; private wrapBounds:Rectangle; private maggotTexture:any; constructor() { Laya.init(Browser.width,Browser.height, WebGL); L...

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

4. 骨骼动画-多纹理 [ 89%]

...ebGL; export class MultiTexture { private mAniPath:string; private mStartX:number = 400; private mStartY:number = 500; private mFactory:Templet; private mActionIndex:number = 0; private mCurrIndex:number = 0; private mArmature:Skeleton; private mCurrSkinIndex:number = 0; constructor() { WebGL.enable...

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

5. 骨骼动画-藤蔓 [ 89%]

...export class Skeleton_SpineVine { private mAniPath:string; private mStartX:number = 200; private mStartY:number = 500; private mFactory:Templet; private mActionIndex:number = 0; private mCurrIndex:number = 0; private mArmature:Skeleton; private mCurrSkinIndex:number = 0; private mFactory2:Templet; c...

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

6. 骨骼动画-橡胶人 [ 89%]

...class Skeleton_SpineStretchyman { private mAniPath:string; private mStartX:number = 200; private mStartY:number = 500; private mFactory:Templet; private mActionIndex:number = 0; private mCurrIndex:number = 0; private mArmature:Skeleton; private mCurrSkinIndex:number = 0; private mFactory2:Templet; c...

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

7. 其他引擎的Demo-Example_04 [ 88%]

....x h) { stars[i].y = stars[i].y - h; } else if (stars[i].y = []; private w:number = Browser.width; private h:number = Browser.height; private slideX:number = this.w / 2; private slideY:number = this.h / 2; private speedInfo:Text; constructor() { Laya.init(this.w, this.h, WebGL); this.createText(); t...

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

8. Sprite-旋转缩放 [ 88%]

...port class Sprite_RoateAndScale { private ape: Sprite; private scaleDelta: number = 0; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.sca...

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

9. 骨骼动画-换装 [ 87%]

....WebGL; export class ChangeSkin { private mAniPath:string; private mStartX:number = 400; private mStartY:number = 500; private mFactory:Templet; private mActionIndex:number = 0; private mCurrIndex:number = 0; private mArmature:Skeleton; private mCurrSkinIndex:number = 0; private mSkinList:any = ["go...

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

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

...Scale { //上次记录的两个触模点之间距离 private lastDistance: number = 0; private sp: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CE...

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