大约有 9 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0020 秒)
...。(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
...。(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
...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
... 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
...= 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
...(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
...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
...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
...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