Main.ts
var music = new Music;
this.addChild(music)
this.once(egret.TouchEvent.TOUCH_BEGIN,function(){
music.stop();
music.play();
},this)
class Main extends egret.DisplayObjectContainer { | |
private loadingView: LoadingUI; | |
static stageWidth: number; | |
static stageHeight: number; | |
public constructor() { | |
super(); | |
Main.ts
var music = new Music;
this.addChild(music)
this.once(egret.TouchEvent.TOUCH_BEGIN,function(){
music.stop();
music.play();
},this)
都可以做 SSO
一篇讨论 webpack 和 rollup 的文章 https://medium.com/webpack/webpack-and-rollup-the-same-but-different-a41ad427058c
pkg.module 也很重要
# unbind some default keybindings | |
unbind C-b | |
# set prefix key to ctrl-q | |
set -g prefix C-q | |
# lower command delay | |
set -sg escape-time 1 | |
# start first window and pane at 1, not zero |