大约有 1,237 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0085 秒)
Laya_社区(706) Laya_示例(137) Laya2.0_文档(123) Laya2.0_示例(116) Laya3.0_文档(76) Laya3.0_api(39) laya_api(29) Laya2.0_api(11)
... */ export class WXBitmap extends Laya.Sprite { private $viewName: string; private $texture: Laya.Texture; private $bitmap: any; private $timer: lie.Timer; public auto: boolean = true; // 仅在未加入场景前修改有...
来源: Laya_社区 发布时间: 20181114
... public class Sprite_DrawShapes { private var sp:Sprite; public function Sprite_DrawShapes() { Laya.init(500, 300); drawSomething(); } ...
来源: Laya2.0_文档 发布时间: 20210715
...ani_names[name]); } } private ani_names = { idle: 'resources/Assets/ArtResources/Models/Shuipao/Animation/WaterCannon_idle-Idle.lsani', attack: 'resources/Assets/ArtResources/Models/Shu...
来源: Laya_社区 发布时间: 20170608
...了:这里再贴一段我写的例子里面的代码,直观一点: private const stand:String = "STAND"; private function loadActionsComplete():void { //创建动画模板dizziness //Animation.createFrames(aniUrls("zy/" + stand + "000", 5), stand + "000");//这么写也不对 ...
来源: Laya_社区 发布时间: 20170821
...ont加载位图文字不能显示的问题 // 程序入口 class GameMain{ private mFontName:string = "diyFont"; private mBitmapFont:Laya.BitmapFont; constructor() { Laya.init(600,400); this.mBitmapFont = new Laya.BitmapFont(); this.mBitmapFont.loadFont("../laya/assets/txt.fnt", new Laya.Handler(thi...
来源: Laya_社区 发布时间: 20171028
...Laya.Stage; export class Sprite_DrawShapes { private sp: Sprite; constructor() { //初始化舞台 Laya.init(500, 300); this.drawSomething(); } ...
来源: Laya2.0_文档 发布时间: 20210715
...rowser; import WebGL = Laya.WebGL; export class TiledMap_PerspectiveWall { private tiledMap: TiledMap; constructor(){ // 不支持WebGL时自动切换至Canvas Laya.init(700, 500, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.bgColor = "#232628"; ...
来源: Laya2.0_示例 发布时间: 20260303
...mport laya.utils.Handler; import ui.TestTipsUI; public class ToolTipDemo { private var _testTip:TestTipsUI;//ui弹框(IDE发布),用于鼠标悬浮提示框 private var _tip:TipManager;//实例化TipManager public function ToolTipDemo() { Laya.init(Browser.width,Browser.height); Laya.stage.bgC...
来源: Laya_社区 发布时间: 20161115
...ectangle; import WebGL = Laya.WebGL; export class TiledMap_AnimationTile { private tiledMap: TiledMap; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(1100, 800, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.S...
来源: Laya_示例 发布时间: 20260303
...dler; import laya.utils.Stat; import laya.webgl.WebGL; public class Demo { private var num:Number=0;//加载图片的个数 private var sp:Sprite;//显示图片的显示对象容器 private var texture:Texture;//预加载图片的纹理 public function Demo() { Laya.init(800,1000,WebGL); Stat.show()...
来源: Laya_社区 发布时间: 20161107