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

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

81. 性能测试-卡通人物2 [ 79%]

...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_示例 发布时间: 20240929

82. 其他引擎的Demo-Example_23 [ 79%]

...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_示例 发布时间: 20240929

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

...ontainer = new Sprite(); Laya.stage.addChild(gameContainer); gameContainer.loadImage("res/guide/crazy_snowball.png"); gameContainer.on(Laya.Event.CLICK, this, this.nextStep); // 引导所在容器 guideContainer = new Sprite(); Laya.stage.addChild(guideContainer); guideContainer.cacheAs = "bitmap"; ...

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

84. 性能测试-卡通人物2 [ 79%]

...Laya.stage.screenMode = Stage.SCREEN_HORIZONTAL; Stat.enable(); Laya.stage.loadImage("res/cartoon2/background.jpg", 0, 0, 1280, 900); this.createCharacters(); text = new Text(); text.zOrder = 10000; text.fontSize = 60; text.color = "#ff0000" Laya.stage.addChild(text); Laya.timer.frameLoop(1, this, t...

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

85. 其他引擎的Demo-Example_23 [ 79%]

...gColor = "#232628"; Stat.show(); // create a background texture Laya.stage.loadImage("res/pixi/laserBG.jpg"); Laya.stage.frameLoop(1, this, this.animate); } animate() { const Sprite = Laya.Sprite, Point = Laya.Point; let laser; if (tick > frequency) { tick = 0; // iterate through the dudes and updat...

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

86. 用Loader加载完atlas,然后使用animation播放问题 [ 79%]

...oader.ATLAS, true); 加载完成后 this._ani = new Animation(); this._ani.loadImages(这里传入解析好的urls) 会提示重复加载 为什么我都加载完了 还需要用ani的loadImages 有没有别的办法 我不想用animation.loadAtlas这个方法 这个方法检测不到加载失败 20...

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

87. Laya.Handler.create 回调参数问题 [ 78%]

...ite();     Laya.stage.addChild(ape); var ag = ["lsd",ape,1,"str"]; ape.loadImage("../laya/assets/res/to1.png",0,0,0,0,Laya.Handler.create(this,graphicsImg,ag));   graphicsImg(ag); }  function graphicsImg(args) { console.log(args); }   //loadImage 的回调函数只传递出来了第一个参...

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

88. Sprite中的width,height和size(width,height)感觉没作用啊 [ 77%]

... function Init(){ Laya.init(800,600); bg = new laya.display.Sprite(); bg.loadImage("res/bg.png"); bg.pos(0,0); bg.width = 100; bg.height = 100; bg.size(100,100); Laya.stage.addChild(bg); } 2016-07-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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

89. 我给加载进来的UI界面中一个图片,添加点击更换图片的事件,需要点击两次才能更换图片 [ 76%]

... 我给加载进来UI界面中的一涨图片,添加一个click事件,loadImage一张新的图片,要点击两次才会更改到新图片。第一次点击时当前图片的大小会变成要更改图片的大小。 而我把同样事件绑定到直接在代码中new Sprite出来的一图片...

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

90. 我想移动容器来实现前进的动画,但是移动不了。这里的y有问题 但是又不知道改成什么 [ 76%]

...mer.frameLoop(1,this,myLoop) })(); function showApe() { // 方法1:使用loadImage加载背景1 var bg1 = new Sprite(); bg1.loadImage("war/bc.png"); Laya.stage.addChild(bg1);   //加载背景2 var bg2 = new Sprite(); bg2.loadImage("war/bc.png"); //更改背景2 放在背景1的上面 bg2.pos(0,85...

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