大约有 1,162 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0075 秒)
Laya_社区(657) Laya_示例(157) Laya2.0_文档(129) Laya2.0_示例(116) Laya3.0_api(72) Laya3.0_文档(11) laya_api(11) Laya2.0_api(9)
...信 megrez 赞同来自: // 这段代码需要在setupDemo之前执行。 (function() { // 项渲染器 var Box = Laya.Box; var Image = Laya.Image; var Label = Laya.Label; var TextInput = laya.ui.TextInput; var WID = 373, HEI = 30; function Item() { Item.__super.call(this); this.size(WID, HEI); this...
来源: Laya_社区 发布时间: 20180312
....events.Event; import laya.webgl.WebGL; public class PanelElastic { public function PanelElastic() { Laya.init(800,600,WebGL); Laya.stage.bgColor="#EEFFCC"; var sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,300,300,"#FFFF00"); sp.size(100,100); sp.on(Event.CLICK,this,onClickSp); Laya.stage.addChi...
来源: Laya_社区 发布时间: 20170918
...栏.json", Laya.Handler.create(this, onAssetLoaded2), null, Loader.ATLAS); function onAssetLoaded2() { Laya.class(MyBoot, "MyBootClass", MyBootPage2UI); UI = new MyBootClass(); Laya.stage.addChild(UI); } function MyBoot() { MyBoot.super(this); this.Boot.selectHa...
来源: Laya_社区 发布时间: 20160722
....webgl.WebGL; public class HtmlDemo { private static var sp:Sprite; public function HtmlDemo() { Laya.init(800, 480,WebGL); Stat.show(); sp=new Sprite(); sp.loadImage("background.jpg"); Laya.stage.addChild(sp); Laya.stage.on(Event.CLICK,this,onClick); function onClick():void { // TODO Auto Generated...
来源: Laya_社区 发布时间: 20160905
...ass SocketSample { public var socket:Socket; private var byte:Byte; public function SocketSample() { //初始化引擎 this.byte = new Byte(); this.byte.endian = Byte.LITTLE_ENDIAN;//这里我们采用小端; this.socket = new Socket(); this.socket.endian = Byte.LITTLE_ENDIAN;//这里我们采用...
来源: Laya_社区 发布时间: 20180202
...接 提交 2 个回复 cuixueying 赞同来自: SONIC3D 、sevennqi public function BBB() { Laya.init(550,400); Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { var json:JSON=Laya.loader.getRes("res/atlas/comp.json"); }JSON...
来源: Laya_社区 发布时间: 20161027
... ReferenceError: CanvasRenderingContext2D is not defined at Function.Context.__init__ (http://stand.alone.version/Main.max.js:16077:12) at Object.Laya.init (http://stand.alone.version/Main.max.js:386:11) at new Main (http://stand.alone.version/Main.max.js:2923:8) at h...
来源: Laya_社区 发布时间: 20190528
...s.Stat; import common.CameraMoveScript; public class Sprite3DLoad { public function Sprite3DLoad() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.screenMode = Stage.SCREEN_NONE; Stat.show(); var scene:Scene = Laya.stage.addChild(new Scene()) as Scene; scene.ambientCol...
来源: Laya_示例 发布时间: 20261113
...layabox. ... 3B%3B Laya.loader.load(monkey1Path, Laya.Handler.create(this, function() { let monkey = Laya.loader.getRes(monkey1Path); let ape = new Laya.Sprite(); Laya.stage.addChild(ape); ape.graphics.drawTexture(monkey, 0, 0); var tl = new Laya.TimeLine(); tl.once('complete', this, function() { ap...
来源: Laya_社区 发布时间: 20190927
...ish.x = 300 _fish.y = 200 this.addChild(_fish); Laya.timer.loop(100, this, function () { console.log(_fish.x, _fish.y, _fish.width, _fish.height, _fish.rotation); if (_fish.hitTestPoint(_fish.x, _fish.y)) { console.log("hittttttt"); } }); } } //程序入口 Laya.init(600, 400); this.onLoaded() funct...
来源: Laya_社区 发布时间: 20180315