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

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

61. 性能测试-虫子(慎入) [ 96%]

...ght) y -= wb.height; maggot.pos(x, y); } tick += 0.1; } })();module laya { import Sprite = Laya.Sprite; import Browser = Laya.Browser; import Handler = Laya.Handler; import Stat = Laya.Stat; import Rectangle = Laya.Rectangle; import WebGL = Laya.WebGL; export class PerformanceTest_Maggots { private ...

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

62. 鼠标交互-拖动 [ 96%]

...startDrag(dragRegion, true, 100); } } new Interaction_Drag();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Rectangle = Laya.Rectangle; import Texture = Laya.Texture; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL =...

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

63. Sprite-显示图片 [ 96%]

..., 0); Laya.stage.addChild(ape); ape.pos(200, 0); })); } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Texture = Laya.Texture; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Sprite_DisplayImage { constructor() ...

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

64. 缓动-缓动函数演示 [ 96%]

...{ this.label.text = value; } } new Tween_EaseFunctionsDemo();module laya { import Input = Laya.Input; import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Text = Laya.Text; import Event = Laya.Event; import List = Laya.List; import Browser = Laya.Browser; import Ease = Laya.Ease; import Ha...

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

65. 照相机-多照相机 [ 96%]

...aMonkey.lh")) as Laya.Sprite3D; } } new MultiCamera;package cameraModule { import laya.d3.component.animation.SkinAnimations; import laya.d3.core.BaseCamera; import laya.d3.core.Camera; import laya.d3.core.MeshSprite3D; import laya.d3.core.Sprite3D; import laya.d3.core.light.DirectionLight; import l...

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

66. 鼠标交互-自定义事件 [ 96%]

...}, 1000, Ease.elasticOut); } } new Interaction_CustomEvent();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Browser = Laya.Browser; import Ease = Laya.Ease; import Tween = Laya.Tween; import WebGL = Laya.WebGL; export class Interaction_CustomE...

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

67. 鼠标交互-Hold [ 96%]

...USE_UP, this, this.onApeRelease); } } new Interaction_Hold();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Texture = Laya.Texture; import Browser = Laya.Browser; import Ease = Laya.Ease; import Handler = Laya.Handler; import Tween = Laya.Twee...

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

68. 缓动-缓动函数演示 [ 96%]

...y - 3); input.inputElementYAdjuster = 1; return input } })();module laya { import Input = Laya.Input; import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Text = Laya.Text; import Event = Laya.Event; import List = Laya.List; import Browser = Laya.Browser; import Ease = Laya.Ease; import Ha...

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

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

...aya.Laya.stage.removeChild(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 {...

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

70. Sprite3D-Sprite3D变换 [ 96%]

...calScale = this._scale; } } new Sprite3DTransform;package sprite3dModule { import laya.ani.AnimationTemplet; import laya.d3.component.animation.SkinAnimations; import laya.d3.core.Camera; import laya.d3.core.MeshSprite3D; import laya.d3.core.Sprite3D; import laya.d3.core.material.StandardMaterial; i...

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