summaryrefslogtreecommitdiff
path: root/src/engine/components/Grid.ts
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth.hunt@simponic.xyz>2024-03-02 02:22:46 -0700
committerElizabeth Hunt <elizabeth.hunt@simponic.xyz>2024-03-02 02:24:18 -0700
commit06bb4177202b432d5f42141975ec82b5a8837f0e (patch)
tree7a9cb1e4177684848a3fcca91eed2ec703c787fb /src/engine/components/Grid.ts
parentcd6a3a56b0a9f27dd7250c7641776fe1bd184888 (diff)
downloadthe-abstraction-engine-06bb4177202b432d5f42141975ec82b5a8837f0e.tar.gz
the-abstraction-engine-06bb4177202b432d5f42141975ec82b5a8837f0e.zip
slight refactor in collision behavior
Diffstat (limited to 'src/engine/components/Grid.ts')
-rw-r--r--src/engine/components/Grid.ts5
1 files changed, 1 insertions, 4 deletions
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;
}
}