大约有 14 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0024 秒)
... true; } Matter.World.add(engine.world, [ cloth, 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.clientS...
来源: Laya_示例 发布时间: 20241124
...ap; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(700, 500, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.bgColor = "#232628"; createMap(); })(); function createMap() { tiledMap = new TiledMap(); tiledMap.createMap("../../res/t...
来源: Laya_示例 发布时间: 20241124
...置 * pos.z 深度取值范围(-1,1); * */ var pos = new Laya.Vector3(310,500,0); var _translate = new Laya.Vector3(0, 0, 0); var dialog = Laya.stage.addChild(new Laya.Image("../../res/cartoon2/background.jpg")); var scene = Laya.stage.addChild(new Laya.Scene()); var camera = scene.addChild(new Laya...
来源: Laya_示例 发布时间: 20241124
...aya.Handler; var numLoaded = 0; var resAmount = 3; (function() { Laya.init(500, 400); // 按序列加载 monkey2.png - monkey1.png - monkey0.png // 不开启缓存 // 关闭并发加载 Laya.loader.maxLoader = 1; Laya.loader.load("../../res/apes/monkey2.png", Handler.create(this, onAssetLoaded), nul...
来源: Laya_示例 发布时间: 20241124
...at; var WebGL = Laya.WebGL; var mAniPath; var mStartX = 400; var mStartY = 500; var mFactory; var mActionIndex = 0; var mCurrIndex = 0; var mArmature; var mCurrSkinIndex = 0; (function() { WebGL.enable(); Laya.init(Browser.width, Browser.height); Laya.stage.bgColor = "#ffffff"; Stat.show(); startFun...
来源: Laya_示例 发布时间: 20241124
...at; var WebGL = Laya.WebGL; var mAniPath; var mStartX = 200; var mStartY = 500; var mFactory; var mActionIndex = 0; var mCurrIndex = 0; var mArmature; var mCurrSkinIndex = 0; var mFactory2; (function() { Laya.init(Browser.width, Browser.height,WebGL); Laya.stage.bgColor = "#ffffff"; Stat.show(); sta...
来源: Laya_示例 发布时间: 20241124
...at; var WebGL = Laya.WebGL; var mAniPath; var mStartX = 200; var mStartY = 500; var mFactory; var mActionIndex = 0; var mCurrIndex = 0; var mArmature; var mCurrSkinIndex = 0; var mFactory2; (function() { Laya.init(Browser.width, Browser.height,WebGL); Laya.stage.bgColor = "#ffffff"; Stat.show(); sta...
来源: Laya_示例 发布时间: 20241124
...'; console.leading = 10; } function startShake() { Shake.instance.start(5, 500); Shake.instance.on(Laya.Event.CHANGE, this, onShake); console.text = '开始接收设备摇动\n'; } function onShake() { shakeCount++; console.text += "设备摇晃了" + shakeCount + "次\n"; if (shakeCount >= 3) { Sha...
来源: Laya_示例 发布时间: 20241124
...at; var WebGL = Laya.WebGL; var mAniPath; var mStartX = 400; var mStartY = 500; var mFactory; var mActionIndex = 0; var mCurrIndex = 0; var mArmature; var mCurrSkinIndex = 0; var mSkinList = ["goblin","goblingirl"]; (function() { WebGL.enable(); Laya.init(Browser.width, Browser.height); Laya.stage.b...
来源: Laya_示例 发布时间: 20241124
...en; var WebGL = Laya.WebGL; var mAniPath; var mStartX = 400; var mStartY = 500; var mFactory; var mActionIndex = 0; var mCurrIndex = 0; var mArmature; var mCurrSkinIndex = 0; var mFactory2; var mLabelSprite; (function(){ Laya.init(Browser.width, Browser.height,WebGL); Laya.stage.bgColor = "#ffffff";...
来源: Laya_示例 发布时间: 20241124