大约有 72 项符合查询结果, 库内数据总量为 30,784 项。 (搜索耗时: 0.0035 秒)
Laya_社区(35) Laya2.0_示例(9) Laya_示例(8) Laya3.0_api(7) Laya3.0_文档(6) Laya2.0_文档(3) Laya2.0_api(3) laya_api(1)
...X; Tween.from(characterB, { x: 0 }, 1000); } private createCharacter(skin: string): Sprite { var character: Sprite = new Sprite(); character.loadImage(skin); Laya.stage.addChild(character); return character; } } } new laya.Tween_SimpleSample();package { import laya.display.Sprite; import laya.displa...
来源: Laya2.0_示例 发布时间: 20241123
...ine, Event = Laya.Event; this.timeLine = new TimeLine(); // addLabel(label:String, offset:Number) offset: 标签事件相对于上个动画的偏移时间(单位:毫秒) this.timeLine.addLabel("turnRight", 0).to(this.target, {x:450, y:100, scaleX:0.5, scaleY:0.5}, 2000, null, 0) .addLabel("turnDow...
来源: Laya2.0_示例 发布时间: 20241123
...t default class MapSprite extends Laya.Image{ isShow:boolean = false; name:string = ""; constructor() { super(); } loadImageAndPos(name:string,posX:number,posY:number):void { this.name = name; this.anchorX = 0; this.anchorY = 0; this.x = posX; //这里是256*整数倍的叠加 每张图片都是25...
来源: Laya_社区 发布时间: 20190315
...playMusic背景音乐播放无声音 public static function playSound(url:String, loops:int = 1, complete:Handler = null, soundClass:Class = null, startTime:Number = 0):SoundChannel { if ((!_isActive && loops != 0) || !url) return null; if (_muted) return null; _recoverWebAudio(); url = URL....
来源: Laya_社区 发布时间: 20190115
...e) }) public static playBackGroundMusic(url: string, start: number) { if (soundMsg.isPlayingBgMusic) { let path = "remote/music/" + url + '.mp3'; Laya.SoundManager.playMusic(path, 1, new Laya...
来源: Laya_社区 发布时间: 20201102
...url * length 动画最后一帧的索引值, */ private aniUrls(aniName: string, length: number): any { var urls: any = []; for (var i: number = 1; i < length; i++) { //动画资源路径要和动画图集打包前的资源命名对应起来 urls.push("imgs/role/wp116/" + aniName + i + ".png");...
来源: Laya_社区 发布时间: 20171228
...wTips(posX: number, posY: number, width:number,height:number,skinRes: string) { this.tipContainer = new Laya.Image(); this.tipContainer.size(width, height); this.tipContainer.skin = skinRes; t...
来源: Laya_社区 发布时间: 20200119
...nnerHTML = ""; gRoomView.chatBox.height = 1; } public SysSay(txt:string):void { this.AddChat(0, "法官", txt); } public PlayerSay(msg:any):void { this.AddChat(msg['from_client_seatsno'], msg['from_client_name'], msg['content']); } private AddChat(seat:number, name:string, txt:st...
来源: Laya_社区 发布时间: 20170911
...ebGL; import Stat = Laya.Stat; export class Animation_SWF{ private SWFPath:string = "h5/res/Map11.swf"; private MCWidth:number = 760; private MCHeight:number = 650; constructor(){ // 不支持WebGL时自动切换至Canvas Laya.init(760,650, WebGL); Laya.stage.frameRate = Stage.FRAME_SLOW; ...
来源: Laya_社区 发布时间: 20171103
...播放速度了!/** * 角色创建 */ public function init(interval,type:String,hp:Number,speed:Number,hitRadius:Number,camp:Number,heroType:Number = 0):void { //初始化属性 this.type = type; this.hp = hp; this.speed = speed; this.hitRadius = hitRadius; this.camp = camp; this.heroType = heroTy...
来源: Laya_社区 发布时间: 20170420