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

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

1. 区块地图-PerspectiveWall [ 100%]

...。(function() { var Stage = Laya.Stage; var TiledMap = Laya.TiledMap; var Rectangle = Laya.Rectangle; var Browser = Laya.Browser; var WebGL = Laya.WebGL; var tiledMap; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(700, 500, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.st...

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

2. 区块地图-带动画的地图 [ 99%]

...。(function() { var Stage = Laya.Stage; var TiledMap = Laya.TiledMap; var Rectangle = Laya.Rectangle; var WebGL = Laya.WebGL; var tiledMap; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(1100, 800, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CE...

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

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

...wser = Laya.Browser; var Handler = Laya.Handler; var Stat = Laya.Stat; var Rectangle = Laya.Rectangle; var WebGL = Laya.WebGL; var texturePath = "../../res/tinyMaggot.png"; var padding = 100; var maggotAmount = 5000; var tick = 0; var maggots = []; var wrapBounds; var maggotTexture; (function() { La...

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

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

... Sprite = Laya.Sprite; var Stage = 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() { // 不支...

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

5. 区块地图-等角地图 [ 95%]

...= Laya.MapLayer; var TiledMap = Laya.TiledMap; var Point = Laya.Point; var Rectangle = Laya.Rectangle; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var tiledMap; var layer; var sprite; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(1600, 800, WebGL); Laya.stage.alignV = Sta...

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

6. 动画-图集动画 [ 93%]

...(function() { var Animation = Laya.Animation; var Stage = Laya.Stage; var Rectangle = Laya.Rectangle; var Loader = Laya.Loader; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var AniConfPath = "../../res/fighter/fighter.json"; (function() { // 不支持WebGL时自动...

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

7. 区块地图-滚动地图 [ 93%]

...ge = Laya.Stage; var Event = Laya.Event; var TiledMap = Laya.TiledMap; var Rectangle = Laya.Rectangle; var Browser = Laya.Browser; var Handler = Laya.Handler; var Stat = Laya.Stat; var WebGL = Laya.WebGL; var tiledMap; var mLastMouseX = 0; var mLastMouseY = 0; var mX = 0; var mY = 0; (function() { /...

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

8. 物理引擎-Slingshot [ 78%]

...mouseConstraint.mouse; } function initWorld() { var ground = Matter.Bodies.rectangle(395, 600, 815, 50, { isStatic: true, render: { visible: false } }), rockOptions = { density: 0.004, render: { sprite: { texture: '../../res/physics/img/rock.png', xOffset: 23.5, yOffset: 23.5 } } }, rock = Matter.Bo...

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

9. 物理引擎-布 [ 72%]

...oth, Matter.Bodies.circle(300, 500, 80, { isStatic: true }), Matter.Bodies.rectangle(500, 480, 80, 80, { isStatic: true }) ]); } function onResize() { // 设置鼠标的坐标缩放 Matter.Mouse.setScale( mouseConstraint.mouse, { x: 1 / (Laya.stage.clientScaleX * Laya.stage._canvasTransform.a), y: 1...

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