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

大约有 692 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0061 秒)

641. TiledMap地图 · LayaAir3.3 · 引擎文档 · LAYABOX [ 50%]

... var viewRect:Laya.Rectangle = new Laya.Rectangle(0, 0, Laya.stage.designWidth, Laya.stage.designHeight); //创建TiledMap地图 this.tMap.createMap("resources/TiledMap/orthogonal.json", viewRect, new Laya.Handler(this, this.completeHandler)); } //添加地图到Scene2D下 private onLoaded(): void {...

来源: Laya3.0_文档 发布时间: 20251010

642. 只要引入protobuf就会导致连接网络失败 [ 50%]

...lic static void loadImageViewLodingSize(Context mContext, String path, int width, int height, ImageView mImageView, int lodingImage, int errorImageView) { Glide.with(mContext).load(path).override(width, height).placeholder(lodingImage).error(errorImageView).into(mImageView); } 150*****705 • 2018-0...

来源: Laya_社区 发布时间: 20180205

643. Dragonbones龙骨动画 播放不同动作出现闪烁 混乱 [ 49%]

...this.templet.loadAni(this.aniUrl); this.maskBox.graphics.drawRect(0,0,this.width,this.height,'#ffffff'); this.mask = this.maskBox; this.maskBox.alpha=0; // this.show(); } private parseComplete():void { //创建模式1,可以启用换装 this.skeleton =this.templet.buildArmature(1); this.skeleto...

来源: Laya_社区 发布时间: 20180824

644. l微信开放域无法显示,但是可以正常传数据 [ 49%]

...a.isWXPosMsg = true; //根据IDE设置初始化引擎 Laya.init(GameConfig.width, GameConfig.height,false); Laya.stage.scaleMode = GameConfig.scaleMode; Laya.stage.screenMode = GameConfig.screenMode; Laya.stage.alignV = GameConfig.alignV; Laya.stage.alignH = GameConfig.alignH; // 关于透传接口...

来源: Laya_社区 发布时间: 20200314

645. 物理Bodies绑定Laya.Sprite [ 49%]

...e.SCREEN_HORIZONTAL; // 始终以横屏展示 Laya.stage.scaleMode = "fixedwidth"; // 宽度不变 this.engine; var world; this.engine = Matter.Engine.create({ enableSleeping: true // 开启睡眠 }); world = this.engine.world; Matter.Engine.run(this.engine); // Engine 启动 var render = LayaRender...

来源: Laya_社区 发布时间: 20180522

646. 关于项目分包的问题?? [ 49%]

...ay.StageScaleMode; import flash.events.Event; import login.LoginView; [SWF(width=800,height=600,backgroundColor="0xffffff",frameRate=60)] public class Main extends Sprite { public function Main():void { IFlash.setSize(800, 600);//2D项目中设置场景尺寸 IFlash.setOrientationEx(1); //是否...

来源: Laya_社区 发布时间: 20151225

647. 微信小游戏,横屏,小游戏不全屏显示 [ 49%]

...竖屏思路:                    Laya.stage.scaleMode  "fixedwidth" :宽度不变,高度根据屏幕比缩放                   这种模式下的Laya.init(width,height, WebGL);高度一般是不对的,需要计算   b.横屏思路:                    Laya.s...

来源: Laya_社区 发布时间: 20200305

648. LayaAir能做RPG吗?不要问我能不能,因我已经在做 - 杀意来袭 [ 49%]

...enderOrder = tJsonData.renderorder;             _mapW = tJsonData.width;             _mapH = tJsonData.height;                          _mapTileW = tJsonData.tilewidth;             _mapTileH = tJsonData.tileheight;                        ...

来源: Laya_社区 发布时间: 20161109

649. 游戏引导 原来使用 blendMode = "destination-out"; 现在怎么用? [ 49%]

...48导致引发上面的问题 this.mask.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000");

来源: Laya_社区 发布时间: 20180713

650. 新手入坑请教下各位大神关于LayaMaxUI问题 [ 48%]

...ne" /* * 游戏初始化配置; */ export default class GameConfig{ static width:number=640; static height:number=1136; static scaleMode:string="fixedwidth"; static screenMode:string="none"; static alignV:string="top"; static alignH:string="left"; static startScene:any="LoginScene.scene"; static sce...

来源: Laya_社区 发布时间: 20190402