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

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

1. 屏幕适配-屏幕适配 [ 100%]

... Laya.Event; var Image = Laya.Image; var WebGL = Laya.WebGL; //所有适配模式 var modes = ["noscale", "exactfit", "showall", "noborder", "full", "fixedwidth", "fixedheight"]; //当前适配模式索引 var index = 0; //全局文本信息 var txt; (function() { // 不支持WebGL时自动切换至...

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

2. 屏幕适配-对齐模式 [ 94%]

Layabox是免费开源的HTML5引擎解决方案,产品家族中包括LayaAir引擎、LayaFlash引擎、LayaOpen开放平台、LayaMarket SDK、LayaStore嵌入式游戏商店、LayaPlayer运行器。核心引擎LayaAir性能全球领先,支持2D、3D、VR开发,支持AS3、JavaScript、TypeScr...

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

3. 混合模式-Lighter [ 92%]

...h / (phoenixWidth * 2), Laya.stage.height / phoenixHeight); // 加了混合模式的凤凰 var blendedPhoenix = createAnimation(); blendedPhoenix.blendMode = "lighter"; blendedPhoenix.scale(scaleFactor, scaleFactor); blendedPhoenix.y = (Laya.stage.height - phoenixHeight * scaleFactor) / 2; // 正常...

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

4. Sprite-新手引导 [ 83%]

...uideContainer.addChild(maskArea); //绘制一个圆形区域,利用叠加模式,从遮罩区域抠出可交互区 interactionArea = new Sprite(); //设置叠加模式 interactionArea.blendMode = "destination-out"; guideContainer.addChild(interactionArea); hitArea = new HitArea(); hitArea.hit.dra...

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

5. 自定义shader-shader预编译 [ 80%]

...项目开发更高效。Laya3D.init(0, 0, true); //开启Shader编译调试模式,可在输出宏定义编译值。 Laya.ShaderCompile3D.debugMode = true; var sc = Laya.ShaderCompile3D.get("SIMPLE"); //部分低端移动设备不支持高精度shader,所以如果在PC端或高端移动设备输出...

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

6. 骨骼动画-多纹理 [ 75%]

... function onError() { trace("error"); } function parseComplete() { //创建模式为1,可以启用换装 mArmature = mFactory.buildArmature(1); mArmature.x = mStartX; mArmature.y = mStartY; mArmature.scale(0.5, 0.5); Laya.stage.addChild(mArmature); mArmature.on(Event.STOPPED, this, completeHandler...

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

7. 骨骼动画-藤蔓 [ 75%]

...ion onError() { console.log("error"); } function parseComplete() { //创建模式为1,可以启用换装 mArmature = mFactory.buildArmature(1); mArmature.x = mStartX; mArmature.y = mStartY; mArmature.scale(0.5, 0.5); Laya.stage.addChild(mArmature); mArmature.on(Event.STOPPED, this, completeHandler...

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

8. 骨骼动画-橡胶人 [ 75%]

...ion onError() { console.log("error"); } function parseComplete() { //创建模式为1,可以启用换装 mArmature = mFactory.buildArmature(1); mArmature.x = mStartX; mArmature.y = mStartY; //mArmature.scale(0.5, 0.5); Laya.stage.addChild(mArmature); mArmature.on(Event.STOPPED, this, completeHandl...

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

9. 骨骼动画-换装 [ 74%]

... function onError() { trace("error"); } function parseComplete() { //创建模式为1,可以启用换装 mArmature = mFactory.buildArmature(1); mArmature.x = mStartX; mArmature.y = mStartY; Laya.stage.addChild(mArmature); mArmature.on(Event.STOPPED, this, completeHandler); play(); changeSkin(); La...

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

10. 骨骼动画-Spine事件 [ 69%]

... function onError() { trace("error"); } function parseComplete() { //创建模式为1,可以启用换装 mArmature = mFactory.buildArmature(1); mArmature.x = mStartX; mArmature.y = mStartY; mArmature.scale(0.5, 0.5); Laya.stage.addChild(mArmature); mArmature.on(Event.LABEL, this, onEvent); mArmatu...

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