大约有 986 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0056 秒)
Laya_社区(608) Laya2.0_文档(80) Laya3.0_api(67) Laya2.0_api(60) laya_api(56) Laya2.0_示例(41) Laya_示例(37) Laya3.0_文档(37)
...ttrbuite 都写在 Laya.Value2D 扩展里面 类似 attribute vec2 position; attribute vec2 texcoord; attribute vec4 color; uniform vec2 size; uniform mat4 mmat; varying vec2 v_texcoord;varying vec4 v_color; void main(){ vec4 pos =mmat*vec4(positi...
来源: Laya_社区 发布时间: 20180313
...= (function(){ (function Game(){ // 子弹发射偏移位置表 this.bulletPos = [[0],[-15,15],[-30,0,30],[-45,-15,15,45]]; // 关卡等级 this.level = 0; // 升级等级所需要的成绩数量 this.levelUpScore = 0; // 积分成绩 this.score = 0; // 子弹级别 this.bulletLevel = 0; // 敌机...
来源: Laya_社区 发布时间: 20170525
...FFFFFF"; this.form = new Laya.Sprite(); this.form.size(250,120); this.form.pos((Laya.stage.width - this.form.width) / 2, (Laya.stage.height - this.form.height) / 2); Laya.stage.addChild(this.form); this.rowHeight = 30; this.rowSpacing = 10; var rowHeightDelta = this.rowSpacing + this.rowHeight; // ...
来源: Laya_示例 发布时间: 20251130
...lass Physics_Physics_Strandbeests { constructor() { this.scale = 2.5; this.pos = [500, 400]; this.m_offset = [0, -80 * this.scale]; this.pivot = [0, 8 * this.scale]; Laya.Config.isAntialias = true; Laya.Laya.init(1200, 700, Laya.WebGL); Laya.Stat.show(); Laya.Physics.enable(); Laya.PhysicsDebugDraw....
来源: Laya2.0_示例 发布时间: 20251130
...his.sEnemyRes) pNewScene.addChild(pBull); pNewScene.addChild(pEnemy); let tPosBull = Util3d.getSprite3D(pNewScene, "bullBeginPos") pBull.transform.position = tPosBull.transform.position; let pBullObj = Util3d.getSprite3D(pBull, "bull"); let pBullRigidBody = <Laya.Rigidbody3D>pBullObj.getCompon...
来源: Laya_社区 发布时间: 20200720
... "#fff"; this.form = new Laya.Sprite(); this.form.size(250,120); this.form.pos((Laya.stage.width - this.form.width) / 2, (Laya.stage.height - this.form.height) / 2); Laya.stage.addChild(this.form); this.rowHeight = 30; this.rowSpacing = 10; let rowHeightDelta = this.rowSpacing + this.rowHeight; // ...
来源: Laya2.0_示例 发布时间: 20251130
... this.bg = []; this.bg[0] = new BackGround("res/bg1.png", 0.1); this.bg[0].pos(0, 0); Laya.stage.addChild(this.bg[0]); this.bg[1] = new BackGround("res/bg2.png", 1); this.bg[1].pos(0, 0); Laya.stage.addChild(this.bg[1]); this.bg[2] = new BackGround("run/bridge.png", runSpeed); this.bg[2].pos(0, 348)...
来源: Laya_社区 发布时间: 20170103
...否则不会被命中) deepSkyblueRect.size(100, 100); deepSkyblueRect.pos(10, 10); Laya.stage.addChild(deepSkyblueRect); deepSkyblueRect.on(Event.MOUSE_DOWN, this, onDown); } function createDarkOrchidRect() { var darkOrchidRect = new Sprite(); darkOrchidRect.name = "暗紫色矩形容器"; darkOr...
来源: Laya_示例 发布时间: 20251130
...发布了rpk 如oppo小游戏 则会出现偏差 将获取的 var pos: Laya.Point = Laya.Point.create(); pos.x = Laya.MouseManager.instance.mouseX; 鼠标的位置转成了图片下的本地坐标,我所使用的代码是 selfNode.globalToLocal(pos);// 把stage的全局坐标转换...
来源: Laya_社区 发布时间: 20200108
...戏出现的问题!! 在鼠标控制飞机移动时,写成this.hero.pos(Laya.stage.mouseX, Laya.stage.mouseY);是没有用的,可以看到hero容器的坐标变化了,但是机身显示还在原地并未移动, 但如果设置this.hero.aniBody.pos(Laya.stage.mouseX, Laya.stage.mouseY),...
来源: Laya_社区 发布时间: 20180502