大约有 2,055 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0061 秒)
..."dom", "es5" ] }, "exclude": [ // "node_modules" ] }报错 ReferenceError: exports is not defined 生成的js是Object.defineProperty(exports, "__esModule", { value: true }); var Collections = require("typescript-collections"); 刚接触ts,不太清楚怎么加载模块,编译时module是不是...
来源: Laya_社区 发布时间: 20180107
...dler = Laya.Handler; import Tween = Laya.Tween; import WebGL = Laya.WebGL; export class BlendMode_Lighter { // 一只凤凰的分辨率是550 * 400 private phoenixWidth: number = 550; private phoenixHeight: number = 400; private bgColorTweener: Tween = new Tween(); private gradientInterval: number =...
来源: Laya_示例 发布时间: 20241117
...dler = Laya.Handler; import WebGL = Laya.WebGL; import Event = Laya.Event; export class InputDevice_GluttonousSnake { private seg:Segment; private segments:Array = []; private foods:Array = []; private initialSegmentsAmount:number = 5; private vx:number = 0 private vy:number = 0; private targetPosit...
来源: Laya_示例 发布时间: 20241117
...nt = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Timer_DelayExcute { private button1: Sprite; private button2: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Sta...
来源: Laya_示例 发布时间: 20241117
...dler = Laya.Handler; import Tween = Laya.Tween; import WebGL = Laya.WebGL; export class BlendMode_Lighter { // 一只凤凰的分辨率是550 * 400 private phoenixWidth: number = 550; private phoenixHeight: number = 400; private bgColorTweener: Tween = new Tween(); private gradientInterval: number =...
来源: Laya2.0_示例 发布时间: 20241117
...ictorySceneUI} from '../ui/layaMaxUI' import GameScene from './GameScene'; export default class VictoryScene extends VictorySceneUI { constructor() { super(); } onAwake(){ let btnOnce=this.getChildByName("btnOnce"); btnOnce.on(Laya.Event.CLICK,this,this.onClick); } onClick(e){ this.removeSelf()...
来源: Laya_社区 发布时间: 20190903
...2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? 请问下怎么引入第三方库 请问一下怎样动态加载prefab 请问layaair2.0-js 怎么用程序在list中添加多元素的item 问题状态 最新活动: 2020-06-05 10:40 浏览: 560 关注: 3 人 150*...
来源: Laya_社区 发布时间: 20200528
...nt = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Interaction_Scale { //上次记录的两个触模点之间距离 private lastDistance: number = 0; private sp: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Brow...
来源: Laya2.0_示例 发布时间: 20241117
...{ Label } from "laya/ui/Label"; import { Event } from "laya/events/Event"; export class Physics_Physics_Tumbler { private count = 0; private box: Sprite; private totalBox = 200; private label: Label; Main: typeof Main = null; constructor(maincls: typeof Main) { this.Main = maincls; Laya.Config.isAnt...
来源: Laya2.0_示例 发布时间: 20241117
...dler = Laya.Handler; import WebGL = Laya.WebGL; import Event = Laya.Event; export class InputDevice_GluttonousSnake { private seg:Segment; private segments:Array = []; private foods:Array = []; private initialSegmentsAmount:number = 5; private vx:number = 0 private vy:number = 0; private targetPosit...
来源: Laya2.0_示例 发布时间: 20241117