大约有 186 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0066 秒)
...UG1:package ui.test { import laya.display.Sprite; import laya.utils.Tween; public class MyBox extends Sprite { private var _shape:Sprite; public function MyBox() { super(); graphics.drawRect(0,0,200,200,"#00ff00"); _shape=new Sprite(); _shape.graphics.drawCircle(0,0,20,"#ff0000"); addChild(_shape); ...
来源: Laya_社区 发布时间: 20170124
...爹啊,有没有在文档醒目的位置提醒开发者啊。package { public class LayaSample { public function LayaSample() { //初始化引擎 Laya.init(1136, 640); var func:Function = new A().method; func(); } } } package { public class A { private var _attr:int = 123; public function A() { } ...
来源: Laya_社区 发布时间: 20161213
...rowser.ExportJavaFunction; /** * Created by Administrator on 2017/7/19. */ public class YIMMain { private final String TAG = "MarketTest"; private final static String strAppKey = "123132123";//你申请的App Key private final static String strSecrect = "1231312312312312312312";//你申请的App Sec...
来源: Laya_社区 发布时间: 20170722
... private $bitmap: any; private $timer: lie.Timer; public auto: boolean = true; // 仅在未加入场景前修改有效,兼容ui constructor() { super(); this.once(Laya.Event.DISPLAY, this, this.onCreate); ...
来源: Laya_社区 发布时间: 20181114
...下面是testDemo LayaSample类: package { import laya.display.Sprite; public class LayaSample extends Sprite{ public static var event:String = "event"; public function LayaSample() { super(); //初始化引擎 Laya.init(1136, 640); var re:Revent = new Revent(); var de:DisEvent = new DisEvent(); }...
来源: Laya_社区 发布时间: 20170604
...cripts.Core.TipsManager; import laya.utils.Browser; /** * ... * @author */ public class Socketmanger{ private static var _I:Socketmanger; public static function get Instance():Socketmanger { if(_I==null)_I=new Socketmanger(); return _I; } private static var socket:Socket=null; private var list:Array...
来源: Laya_社区 发布时间: 20170724
...: import Sprite = Laya.Sprite export default class Test extends Sprite{ public DEF_SIZE: number = 200 public CIRCLE_WIDTH: number = 20 public $circleSprite: Sprite = new Sprite() public startY: number = -90 constructor() { super() this._init() } private _init() { this.cacheAs = "bitmap" this.size(...
来源: Laya_社区 发布时间: 20180123
...aya.Handler; import Loader = Laya.Loader; class GameBootstrap{ public constructor(){ this.init(); } private init():void{ //初始化微信小游戏 Laya.MiniAdpter.init(true); //程序入口 ...
来源: Laya_社区 发布时间: 20180529
...观察看看,下面贴上代码import './aui/aui'; import { Game } from './public/Game'; import Stage = Laya.Stage; export class TexasMain{ private balls:Laya.Sprite = ; constructor(){ Config.isAntialias = true // alert("宽"+Laya.Browser.clientWidth+"高"+Laya.Browser.clientHeight ); // Laya.init(L...
来源: Laya_社区 发布时间: 20180226
...------------ class RoleControlScript extends Laya.Script{ /*角色模型*/ public roleModel:Laya.Sprite3D; /*角色动画组件*/ public roleAni:Laya.Animator; /*角色当前动作*/ public currentAction:string = "stand"; /*角色动画是否完成*/ public aniComplete:Boolean = true; /*角色移动...
来源: Laya_社区 发布时间: 20171113