• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,400 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0053 秒)

221. 缓动-简单的Tween [ 79%]

...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

222. 骨骼动画-多纹理 [ 79%]

...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

223. 使用webgl之后toDataUrl返回黑色的图像 [ 79%]

...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

224. 分享一个自己做的游戏公告功能,跑马灯效果 [ 78%]

分享一个自己做的游戏公告功能,跑马灯效果 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

225. 鼠标交互-拖动 [ 78%]

...滑动效果) 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

226. UI-Dialog [ 78%]

... + 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

227. UI-Dialog [ 78%]

...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

228. 骨骼动画-藤蔓 [ 78%]

...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

229. 计时器-延迟调用 [ 78%]

...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

230. Sprite-容器 [ 78%]

...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