From 06bb4177202b432d5f42141975ec82b5a8837f0e Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Sat, 2 Mar 2024 02:22:46 -0700 Subject: slight refactor in collision behavior --- src/engine/components/Grid.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/engine/components/Grid.ts') diff --git a/src/engine/components/Grid.ts b/src/engine/components/Grid.ts index 0c18a65..a62cc7b 100644 --- a/src/engine/components/Grid.ts +++ b/src/engine/components/Grid.ts @@ -6,15 +6,12 @@ export class Grid extends Component { public gridPosition: Coord2D; public movingDirection: Direction; - public pushable: boolean = false; - constructor(pushable: boolean = false, position: Coord2D = { x: 0, y: 0 }) { + constructor(position: Coord2D = { x: 0, y: 0 }) { super(ComponentNames.Grid); this.initialized = false; - this.gridPosition = position; this.movingDirection = Direction.NONE; - this.pushable = pushable; } } -- cgit v1.2.3-70-g09d2