大约有 1,400 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0053 秒)
...n); Laya.stage.addChild(character); return character; } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Browser = Laya.Browser; import Tween = Laya.Tween; import WebGL = Laya.WebGL; export class Tween_SimpleSample { constructor() { // 不支持WebGL时自动切换...
来源: Laya_示例 发布时间: 20251130
...ure.play(mCurrIndex, false); } } new Skeleton_MultiTexture();module laya { import Skeleton = Laya.Skeleton; import Templet = Laya.Templet; import Event = Laya.Event; import Browser = Laya.Browser; import Stat = Laya.Stat; import WebGL = Laya.WebGL; export class MultiTexture { private mAniPath:string...
来源: Laya2.0_示例 发布时间: 20251130
...64当作url传给loadImage,也是OK的,请参考以下代码 package { import laya.display.Sprite; import laya.events.Event; import laya.utils.Browser; import laya.utils.Stat; import laya.webgl.WebGL; public class LayaAirDemo { private var sp:Sprite ; public function LayaAirDemo() { //初始化...
来源: Laya_社区 发布时间: 20170523
分享一个自己做的游戏公告功能,跑马灯效果 import View = Laya.View import Image = Laya.Image import HTMLDivElement = Laya.HTMLDivElement import Sprite = Laya.Sprite import Box = Laya.Box /** 公告栏 */ export default class Notice extends View { /** 滚动区域 */ hornBox: Box /...
来源: Laya_社区 发布时间: 20180314
...滑动效果) ape.startDrag(dragRegion, true, 100); } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Rectangle = Laya.Rectangle; import Texture = Laya.Texture; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = L...
来源: Laya_示例 发布时间: 20251130
... + DIALOG_WIDTH + "," + DIALOG_HEIGHT; dialog.show(); } })();module laya { import Stage = Laya.Stage; import Button = Laya.Button; import Dialog = Laya.Dialog; import Image = Laya.Image; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_Dialog { private DIALOG_WIDTH: number =...
来源: Laya_示例 发布时间: 20251130
...TH + "," + DIALOG_HEIGHT; dialog.show(); } } new UI_Dialog();module laya { import Stage = Laya.Stage; import Button = Laya.Button; import Dialog = Laya.Dialog; import Image = Laya.Image; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_Dialog { private DIALOG_WIDTH: number =...
来源: Laya2.0_示例 发布时间: 20251130
...mature.play(mCurrIndex, false); } } new Skeleton_SpineVine();module laya { import Skeleton = Laya.Skeleton; import Templet = Laya.Templet; import Event = Laya.Event; import Browser = Laya.Browser; import Stat = Laya.Stat; import WebGL = Laya.WebGL; export class Skeleton_SpineVine { private mAniPath:...
来源: Laya2.0_示例 发布时间: 20251130
...e"; text.align = "center"; Laya.stage.addChild(text); } })();module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Timer_CallLater { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWi...
来源: Laya_示例 发布时间: 20251130
...e() { this.apesCon.rotation += 1; } } new Sprite_Container();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Sprite_Container { // 该容器用于装载4张猩猩图片 private ape...
来源: Laya2.0_示例 发布时间: 20251130