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

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

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

....removeChild(this.label); } } new Physics_Physics_Bridge();import { Laya } from "Laya"; import { Sprite } from "laya/display/Sprite"; import { Stage } from "laya/display/Stage"; import { Event } from "laya/events/Event"; import { BoxCollider } from "laya/physics/BoxCollider"; import { ChainCollider ...

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

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

...emoveChild(this.label); } } new Physics_Physics_Tumbler(); import { Laya } from "Laya"; import { Sprite } from "laya/display/Sprite"; import { Stage } from "laya/display/Stage"; import { Browser } from "laya/utils/Browser"; import { RigidBody } from "laya/physics/RigidBody"; import { WebGL } from "l...

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

3. 缓动-简单的Tween [ 92%]

... Tween.to(characterA, { x : terminalX }, 1000); // characterB使用Tween.from缓动 characterB.x = terminalX; Tween.from(characterB, { x:0 }, 1000); } createCharacter(skin) { const Sprite = Laya.Sprite; let character = new Sprite(); character.loadImage(skin); Laya.stage.addChild(character); return c...

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

4. 2D物理-仿生机器人 [ 92%]

...], a[1] - b[1]]; } } new Physics_Physics_Strandbeests(); import { Config } from "Config"; import { Laya } from "Laya"; import { Sprite } from "laya/display/Sprite"; import { Stage } from "laya/display/Stage"; import { Event } from "laya/events/Event"; import { BoxCollider } from "laya/physics/BoxCol...

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

5. 网络和格式-Socket [ 58%]

...} private function onMessageReveived(message:*=null):void { trace("Message from server:"); if (message is String) { trace(message); } else if (message is ArrayBuffer) { trace(new Byte(message).readUTFBytes()); } socket.input.clear(); } private function onConnectError(e:Event=null):void { trace("erro...

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