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

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

1. 性能测试-卡通人物2 [ 100%]

...reateAnimation = function(images) { animation = new Animation(); animation.loadImages(images); animation.interval = 70; animation.play(0); this.addChild(animation); } Character.prototype.createBloodBar = function() { bloodBar = new Sprite(); bloodBar.loadImage("../../res/cartoon2/blood_1_r.png"); bl...

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

2. Sprite-遮罩-放大镜 [ 95%]

...r.create(this, setup)); })(); function setup() { var bg = new Sprite(); bg.loadImage("../../res/bg2.png"); Laya.stage.addChild(bg); bg2 = new Sprite(); bg2.loadImage("../../res/bg2.png"); Laya.stage.addChild(bg2); bg2.scale(3, 3); //创建mask maskSp = new Sprite(); maskSp.loadImage("../../res/mask....

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

3. 其他引擎的Demo-Example_23 [ 92%]

...caleMode = Stage.SCALE_NOBORDER; // create a background texture Laya.stage.loadImage("../../res/pixi/laserBG.jpg"); Laya.stage.frameLoop(1, this, animate); })(); function animate() { if (tick > frequency) { tick = 0; // iterate through the dudes and update the positions var laser = new Sprite(); las...

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

4. 滤镜-模糊滤镜 [ 78%]

...his, createApe)); })(); function createApe() { var ape = new Sprite(); ape.loadImage(apePath); ape.x = (Laya.stage.width - ape.width) / 2; ape.y = (Laya.stage.height - ape.height) / 2; Laya.stage.addChild(ape); applayFilter(ape); } function applayFilter(ape) { var blurFilter = new BlurFilter(); blur...

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

5. 鼠标交互-拖动 [ 70%]

...eApe(); showDragRegion(); } function createApe() { ape = new Sprite(); ape.loadImage(ApePath); Laya.stage.addChild(ape); var texture = Laya.loader.getRes(ApePath); ape.pivot(texture.width / 2, texture.height / 2); ape.x = Laya.stage.width / 2; ape.y = Laya.stage.height / 2; ape.on(Event.MOUSE_DOWN, ...

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

6. 鼠标交互-Hold [ 67%]

...})(); function createApe() { // 添加一只猩猩 ape = new Sprite(); ape.loadImage(apePath); var texture = Laya.loader.getRes(apePath); ape.pivot(texture.width / 2, texture.height / 2); ape.pos(Laya.stage.width / 2, Laya.stage.height / 2); ape.scale(0.8, 0.8); Laya.stage.addChild(ape); // 鼠标...

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

7. 缓动-缓动函数演示 [ 64%]

...ller(); } function createCharacter() { character = new Sprite(); character.loadImage("../../res/cartoonCharacters/1.png"); character.pos(100, 50); Laya.stage.addChild(character); } function createEaseFunctionList() { var easeFunctionsList = new List(); easeFunctionsList.itemRender = ListItemRender; ...

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