新增场景策略适配

This commit is contained in:
yhh
2020-12-31 16:38:09 +08:00
parent 6f1fc314b6
commit 01c6c306b1
11 changed files with 612 additions and 173 deletions

View File

@@ -0,0 +1,14 @@
module es {
export class Screen {
public static width: number;
public static height: number;
public static get size(): Vector2 {
return new Vector2(this.width, this.height);
}
public static get center(): Vector2 {
return new Vector2(this.width / 2, this.height / 2);
}
}
}