新增flag 帮助处理位掩码

This commit is contained in:
YHH
2020-06-12 08:47:13 +08:00
parent ad68f0e1a0
commit 6fa56dd572
12 changed files with 537 additions and 8 deletions

View File

@@ -0,0 +1,11 @@
///<reference path="./Shape.ts" />
class Circle extends Shape {
public radius: number;
private _originalRadius: number;
constructor(radius: number){
super();
this.radius = radius;
this._originalRadius = radius;
}
}

View File

@@ -1,3 +1,4 @@
abstract class Shape {
public bounds: Rectangle;
public position: Vector2;
}