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

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

1. Sprite-切换纹理 [ 100%]

...效。(function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var texture1 = "../../res/apes/monkey2.png"; var texture2 = "../../res/apes/monkey3.png"; var flag = false; var ape; (func...

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

2. 滤镜-发光滤镜 [ 98%]

...Laya.Sprite; var Stage = Laya.Stage; var GlowFilter = Laya.GlowFilter; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var apePath = "../../res/apes/monkey2.png"; var ape; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Br...

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

3. 鼠标交互-拖动 [ 95%]

... = Laya.Stage; var Event = Laya.Event; var Rectangle = Laya.Rectangle; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var ApePath = "../../res/apes/monkey2.png"; var ape, dragRegion; (function() { // 不支持WebGL时自动切换至Canvas ...

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

4. Sprite-显示图片 [ 94%]

...效。(function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya....

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

5. 鼠标交互-Hold [ 92%]

... Sprite = Laya.Sprite; var Stage = Laya.Stage; var Event = Laya.Event; var Texture = Laya.Texture; var Browser = Laya.Browser; var Ease = Laya.Ease; var Handler = Laya.Handler; var Tween = Laya.Tween; var WebGL = Laya.WebGL; const HOLD_TRIGGER_TIME = 1000; const apePath = "../../res/apes/monkey2.png...

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

6. 滤镜-颜色滤镜 [ 85%]

...ya.Sprite; var Stage = Laya.Stage; var ColorFilter = Laya.ColorFilter; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var ApePath = "../../res/apes/monkey2.png"; var apeTexture; (function() { // 不支持WebGL时自动切换至Canvas Laya....

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

7. 物理引擎-Slingshot [ 81%]

...{ visible: false } }), rockOptions = { density: 0.004, render: { sprite: { texture: '../../res/physics/img/rock.png', xOffset: 23.5, yOffset: 23.5 } } }, rock = Matter.Bodies.polygon(170, 450, 8, 20, rockOptions), anchor = { x: 170, y: 450 }, elastic = Matter.Constraint.create( { pointA: anchor, bod...

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