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

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

521. 缓动-简单的Tween [ 45%]

...gColor = "#232628"; this.setup(); } private setup(): void { var terminalX: number = 200; var characterA: Sprite = this.createCharacter("../../res/cartoonCharacters/1.png"); characterA.pivot(46.5, 50); characterA.y = 100; var characterB: Sprite = this.createCharacter("../../res/cartoonCharacters/2.pn...

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

522. 缓动-简单的Tween [ 45%]

...gColor = "#232628"; this.setup(); } private setup(): void { var terminalX: number = 200; var characterA: Sprite = this.createCharacter("res/cartoonCharacters/1.png"); characterA.pivot(46.5, 50); characterA.y = 100; var characterB: Sprite = this.createCharacter("res/cartoonCharacters/2.png"); charact...

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

523. UI-Tree [ 44%]

...te(): void { // 组装tree的数据 var treeData: string = ""; for (var i: number = 0; i "; for (var j: number = 0; j "; } treeData += ""; } treeData += ""; // 解析tree的数据 var xml:any = Utils.parseXMLFromString(treeData); var tree: Tree = new Tree(); tree.scrollBarSkin = "../../res/ui/vscrol...

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

524. UI-Tree [ 44%]

...te(): void { // 组装tree的数据 var treeData: string = ""; for (var i: number = 0; i "; for (var j: number = 0; j "; } treeData += ""; } treeData += ""; // 解析tree的数据 var xml:any = Utils.parseXMLFromString(treeData); var tree: Tree = new Tree(); tree.scrollBarSkin = "res/ui/vscroll.png"...

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

525. 用LayaAir引擎解析Tiled Map地图(TypeScript-2D进阶篇(TS)-扩展模块) [ 44%]

...序入口 class GameMain{ private tMap:Laya.TiledMap; private scaleValue:number = 0; private MapX:number = 0; private MapY:number = 0; private mLastMouseX:number; private mLastMouseY:number; constructor() { //初始化舞台 Laya.init(Laya.Browser.width,Laya.Browser.height,Laya.WebGL); //创建Tiled...

来源: Laya2.0_文档 发布时间: 20210715

526. Sprite-轴心点 [ 44%]

...or = "#232628"; this.createApes(); } private createApes(): void { var gap: number = 300; this.sp1 = new Sprite(); this.sp1.loadImage("../../res/apes/monkey2.png", 0, 0); this.sp1.pos((Laya.stage.width - gap) / 2, Laya.stage.height / 2); //设置轴心点为中心 this.sp1.pivot(55, 72); Laya.stage.a...

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

527. TiledMap地图 · LayaAir3.0文档 · LAYABOX [ 44%]

... class Main extends Laya.Script { private tMap:Laya.TiledMap; private MapX:number = 0; private MapY:number = 0; private mLastMouseX:number; private mLastMouseY:number; onEnable() { //创建地图对象 this.tMap = new Laya.TiledMap(); //创建Rectangle实例,视口区域 var viewRect:Laya.Rectangl...

来源: Laya3.0_文档 发布时间: 20230303

528. 用LayaAir引擎解析Tiled Map地图(ActionScript-2D进阶篇(AS3)-扩展模块) [ 43%]

...lic class TiledMapDemo { private var tMap:TiledMap; private var scaleValue:Number = 0; private var MapX:Number = 0; private var MapY:Number = 0; private var mLastMouseX:Number; private var mLastMouseY:Number; public function TiledMapDemo() { //初始化舞台 Laya.init(Browser.width, Browser.height,...

来源: Laya2.0_文档 发布时间: 20210714

529. Sprite-轴心点 [ 43%]

...or = "#232628"; this.createApes(); } private createApes(): void { var gap: number = 300; this.sp1 = new Sprite(); this.sp1.loadImage("res/apes/monkey2.png", 0, 0); this.sp1.pos((Laya.stage.width - gap) / 2, Laya.stage.height / 2); //设置轴心点为中心 this.sp1.pivot(55, 72); Laya.stage.addChil...

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

530. 射线检测-射线检测 [ 43%]

...BoxCollider)"; //指定精灵的层 sprite3d1.layer = Laya.Layer.getLayerByNumber(10); sprite3d2.layer = Laya.Layer.getLayerByNumber(10); sprite3d3.layer = Laya.Layer.getLayerByNumber(13); sprite3d4.layer = Laya.Layer.getLayerByNumber(13); /** * 给精灵添加碰撞器组件 * BoxCollider : 盒型...

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