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

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

1. 2D物理-桥 [ 100%]

...from "laya/utils/Stat"; import { WebGL } from "laya/webgl/WebGL"; import { Main } from "../Main"; export class Physics_Physics_Bridge { Main: typeof Main = null; private ecount = 30; private label: Label; constructor(maincls: typeof Main) { this.Main = maincls; Laya.Config.isAntialias = true; Laya.i...

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

2. 2D物理-复合碰撞器 [ 92%]

...aya/physics/RigidBody"; import { WebGL } from "laya/webgl/WebGL"; import { Main } from "./../Main"; import { BoxCollider } from "laya/physics/BoxCollider"; import { RevoluteJoint } from "laya/physics/joint/RevoluteJoint"; import { Physics } from "laya/physics/Physics"; import { PhysicsDebugDraw } fr...

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

3. 2D物理-仿生机器人 [ 86%]

...from "laya/utils/Stat"; import { WebGL } from "laya/webgl/WebGL"; import { Main } from "../Main"; /** * 仿生兽 */ export class Physics_Strandbeests { Main: typeof Main = null; private scale = 2.5; private pos: Array = [500, 400]; private m_offset: Array = [0, -80 * this.scale]; private pivot: Arr...

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

4. IDE-显示IDE创建的界面 [ 81%]

...2) { label.color = "#ff0000"; } else { label.color = "#000000"; } } } } // Main.as package { import laya.net.Loader; import laya.utils.Handler; import view.TestView; public class Main { public function Main() { //初始化引擎 Laya.init(600, 400); //加载引擎需要的资源 Laya.loader.load([{u...

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

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

...i = 0, len = this.count; i = []; private touching: Array = []; constructor(maincls: typeof Main) { this.Main = maincls; Laya.Config.isAntialias = true; Laya.init(1200, 700, WebGL); Stat.show(); Physics.enable(); PhysicsDebugDraw.enable(); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = S...

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

6. 骨骼动画-适配版Spine [ 73%]

...neSkeleton; import laya.events.Event; import laya.utils.Stat; public class Main { private var aniPath = "res/bone/spineboy-pma.skel"; private var templet:SpineTemplet; private var skeleton:SpineSkeleton; private var index: Number = -1; public function Main() { Laya.init(Browser.width, Browser.height...

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