diff options
author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-03-01 18:56:58 -0700 |
---|---|---|
committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-03-01 18:56:58 -0700 |
commit | a8d07a790395e14fe7aedd3ba638db466f9c0842 (patch) | |
tree | 644f60a6bca79ceb55f24fcab7bdb3dee52c2d6e /src/engine/components/GridPosition.ts | |
parent | aa08a8943a9a2d4a0e51893eebe6900bca7a7251 (diff) | |
download | the-abstraction-engine-a8d07a790395e14fe7aedd3ba638db466f9c0842.tar.gz the-abstraction-engine-a8d07a790395e14fe7aedd3ba638db466f9c0842.zip |
boundingbox + draw player
Diffstat (limited to 'src/engine/components/GridPosition.ts')
-rw-r--r-- | src/engine/components/GridPosition.ts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/engine/components/GridPosition.ts b/src/engine/components/GridPosition.ts new file mode 100644 index 0000000..b5acf3b --- /dev/null +++ b/src/engine/components/GridPosition.ts @@ -0,0 +1,13 @@ +import { Component, ComponentNames } from "."; + +export class GridPosition extends Component { + public x: number; + public y: number; + + constructor(x: number, y: number) { + super(ComponentNames.GridPosition); + + this.x = x; + this.y = y; + } +} |