aboutsummaryrefslogtreecommitdiffstats
path: root/src/drawables/Bullet.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/drawables/Bullet.ts')
-rw-r--r--src/drawables/Bullet.ts10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/drawables/Bullet.ts b/src/drawables/Bullet.ts
index 68f55e8..a745a06 100644
--- a/src/drawables/Bullet.ts
+++ b/src/drawables/Bullet.ts
@@ -1,19 +1,21 @@
import { canvas } from "../consts";
-import Drawable from "../Drawable";
+import Drawable, { Rectangle } from "../Drawable";
export default class Bullet extends Drawable {
static width = 2;
static height = 5;
static color = "black";
+ width = 2;
+ height = 5;
color = "black";
sprite = "black";
- squares = [this]
+ squares: Rectangle[] = [new Rectangle(this)]
constructor(x: number, y: number, public xvel: number, public yvel: number, public players: boolean) {
super(x, y);
- this.width = Bullet.width;
- this.height = Bullet.height;
+ // this.width = Bullet.width;
+ // this.height = Bullet.height;
}
move(): boolean {