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

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

1. UI-List [ 100%]

...laya.utils.Handler; import laya.webgl.WebGL; public class UI_List { public function UI_List() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage...

来源: Laya2.0_示例 发布时间: 20241123

2. 2D物理-碰撞过滤器 [ 98%]

...言、LayaAirIDE让项目开发更高效。window.Laya=window.Laya||{}; (function (exports, Laya) { 'use strict'; class Physics_Physics_CollisionFiltering { constructor() { this.preMovementX = 0; this.preMovementY = 0; Laya.Config.isAntialias = true; Laya.Laya.init(1200, 700, Laya.WebGL); Laya.Stat....

来源: Laya2.0_示例 发布时间: 20241123

3. 性能测试-卡通人物2 [ 93%]

...racter4]; private var characters:Array = []; private var text:Text; public function PerformanceTest_Cartoon2() { Laya.init(1280, 720, WebGL); Laya.stage.screenMode = Stage.SCREEN_HORIZONTAL; Stat.enable(); Laya.stage.loadImage("../../res/cartoon2/background.jpg", 0, 0, 1280, 900); createCharacters()...

来源: Laya2.0_示例 发布时间: 20241123

4. IDE-显示IDE创建的界面 [ 92%]

...ndler = Laya.Handler; var Event = Laya.Event; // 创建TestPageUI的子类 function TestUI() { TestUI.super(this); //btn是编辑器界面设定的,代码里面能直接使用,并且有代码提示 this.btn.on(Event.CLICK, this, onBtnClick); this.btn2.on(Event.CLICK, this, onBtn2Click); function...

来源: Laya2.0_示例 发布时间: 20200319

5. 骨骼动画-多纹理 [ 91%]

...private var mArmature:Skeleton; private var mCurrSkinIndex:int = 0; public function Skeleton_MultiTexture() { WebGL.enable(); Laya.init(Browser.width, Browser.height); Laya.stage.bgColor = "#ffffff"; Stat.show(); startFun(); } public function startFun():void { mAniPath = "../../res/spine/spineRes1/d...

来源: Laya2.0_示例 发布时间: 20241123

6. 骨骼动画-藤蔓 [ 91%]

... private var mCurrSkinIndex:int = 0; private var mFactory2:Templet; public function Skeleton_SpineVine() { WebGL.enable(); Laya.init(Browser.width, Browser.height); Laya.stage.bgColor = "#ffffff"; Stat.show(); startFun(); } public function startFun():void { mAniPath = "../../res/spine/spineRes5/vine...

来源: Laya2.0_示例 发布时间: 20241123

7. 骨骼动画-橡胶人 [ 91%]

... private var mCurrSkinIndex:int = 0; private var mFactory2:Templet; public function Skeleton_SpineStretchyman() { WebGL.enable(); Laya.init(Browser.width, Browser.height); Laya.stage.bgColor = "#ffffff"; Stat.show(); startFun(); } public function startFun():void { mAniPath = "../../res/spine/spineRe...

来源: Laya2.0_示例 发布时间: 20241123

8. 骨骼动画-换装 [ 91%]

...dex:int = 0; private var mSkinList:Array = ["goblin","goblingirl"]; public function Skeleton_ChangeSkin() { WebGL.enable(); Laya.init(Browser.width, Browser.height); Laya.stage.bgColor = "#ffffff"; Stat.show(); startFun(); } public function startFun():void { mAniPath = "../../res/spine/spineRes2/gob...

来源: Laya2.0_示例 发布时间: 20241123

9. 性能测试-虫子(慎入) [ 91%]

... []; private var wrapBounds:Rectangle; private var maggotTexture:*; public function PerformanceTest_Maggots() { Laya.init(Browser.width,Browser.height, WebGL); Laya.stage.bgColor = "#000000"; Stat.show(); wrapBounds = new Rectangle(-padding, -padding, Laya.stage.width + padding * 2, Laya.stage.heigh...

来源: Laya2.0_示例 发布时间: 20241123

10. 缓动-缓动函数演示 [ 88%]

...开发更高效。let character, duration = 2000, tween; class Tween_EaseFunctionsDemo { constructor() { const WebGL = Laya.WebGL, Stage = Laya.Stage, Browser = Laya.Browser, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.al...

来源: Laya2.0_示例 发布时间: 20241123