大约有 34 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0022 秒)
...Factory.parseData(tTexture, arraybuffer, 10); } function parseComplete() { for (var i = 0; i = tAnimNum) { mActionIndex = 0; } for (var i = 0, n = mAnimationArray.length; i = []; private mFactory: Templet; constructor() { this.mSpacingX = Browser.width / this.colCount; this.mSpacingY = Browser.heigh...
来源: Laya_示例 发布时间: 20241118
...Camera.HDREXPOSURE, Math.pow(2, 0.0)); scene.addChild(camera); camera.transform.translate(new Vector3(0, 0, 1.0)); camera.addComponent(CameraMoveScript); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; var skyDome = new Laya.SkyDome(); camera.sky = skyDome; skyDome.texture = Laya.Texture2D.load(en...
来源: Laya_示例 发布时间: 20241118
... 游戏开始时有一个食物 produceFood(); })() function initSnake() { for (var i = 0; i 0) { var prevSeg = segments[segments.length - 1]; seg.rotation = prevSeg.rotation; var point = seg.getPinPosition(); seg.x = prevSeg.x - point.x; seg.y = prevSeg.y - point.y; } segments.push(seg); } function...
来源: Laya_示例 发布时间: 20241118
...tion setup() { Laya.stage.on(Event.RESIZE, this, onResize); makeObject(0); for (var i = 0; i objs) { current = 0; } makeObject(current); } function makeObject(t) { var xd; var i; switch (t) { case 0: for (i = 0; i tpoint1[i]) { tpoint1[i] = tpoint1[i] + 1; } if (points1[i] tpoint2[i]) { tpoint2[i] =...
来源: Laya_示例 发布时间: 20241118
...w >> 1; var endY = Laya.stage.height / 2 - 50; var demoString = "LayaBox"; for (var i = 0, len = demoString.length; i > 1; var endY: number = Laya.stage.height / 2 - 50; var demoString: string = "LayaBox"; for (var i: number = 0, len: number = demoString.length; i > 1; var endY:int = Laya.stage.heig...
来源: Laya_示例 发布时间: 20241118
...onstrate "); // 使用output.writeByte发送 var message = "demonstrate "; for (var i = 0; i "); // 使用output.writeByte发送 var message: string = "demonstrate "; for (var i: number = 0; i "); // 使用output.writeByte发送 var message:String = "demonstrate "; for (var i:int = 0; i < message.le...
来源: Laya_示例 发布时间: 20241118
...s, onCheckBoxSkinLoaded)); })(); function onCheckBoxSkinLoaded() { var cb; for (var i = 0; i ; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOW...
来源: Laya_示例 发布时间: 20241118
...en(xml) { var rootNode = xml.firstChild ; var nodes = rootNode.childNodes; for (var i = 0; i item aitem bsomethis..."; var xmlValue:string = "item aitem bsomethings..."; this.proessXML(xmlValueContainsError); console.log("\n"); this.proessXML(xmlValue); } // 使用xml private proessXML(source:string...
来源: Laya_示例 发布时间: 20241118
...l, Loader.ATLAS); })(); function createCharacters() { characterGroup = []; for(var i = 0; i = 0; --i) { animateCharactor(characterGroup[i]); } } function animateCharactor(charactor) { charactor.x += moveSpeed; charactor.rotation += rotateSpeed; if (charactor.x > Laya.stage.width + extraSpace) { char...
来源: Laya_示例 发布时间: 20241118
...ameLoop(1, this, animate); } function initMaggots() { var maggotContainer; for (var i = 0; i wb.x + wb.width) x -= wb.width; if (y wb.y + wb.height) y -= wb.height; maggot.pos(x, y); } tick += 0.1; } })();module laya { import Sprite = Laya.Sprite; import Browser = Laya.Browser; import Handler = Laya...
来源: Laya_示例 发布时间: 20241118