summaryrefslogtreecommitdiff
path: root/src/engine/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/components')
-rw-r--r--src/engine/components/BoundingBox.ts4
-rw-r--r--src/engine/components/GridSpawn.ts2
-rw-r--r--src/engine/components/Highlight.ts2
-rw-r--r--src/engine/components/Sprite.ts4
-rw-r--r--src/engine/components/Text.ts2
5 files changed, 7 insertions, 7 deletions
diff --git a/src/engine/components/BoundingBox.ts b/src/engine/components/BoundingBox.ts
index d64041f..fd1636f 100644
--- a/src/engine/components/BoundingBox.ts
+++ b/src/engine/components/BoundingBox.ts
@@ -49,8 +49,8 @@ export class BoundingBox extends Component {
const projection = dotProduct(normal, vertex);
return [Math.min(min, projection), Math.max(max, projection)];
},
- [Infinity, -Infinity],
- ),
+ [Infinity, -Infinity]
+ )
);
if (maxThis < minBox || maxBox < minThis) return false;
diff --git a/src/engine/components/GridSpawn.ts b/src/engine/components/GridSpawn.ts
index d2ec898..e0fa250 100644
--- a/src/engine/components/GridSpawn.ts
+++ b/src/engine/components/GridSpawn.ts
@@ -10,7 +10,7 @@ export class GridSpawn extends Component {
constructor(
spawnsLeft: number,
spawner: () => Entity,
- direction = Direction.NONE,
+ direction = Direction.NONE
) {
super(ComponentNames.GridSpawn);
diff --git a/src/engine/components/Highlight.ts b/src/engine/components/Highlight.ts
index 66ec74b..66ada9a 100644
--- a/src/engine/components/Highlight.ts
+++ b/src/engine/components/Highlight.ts
@@ -9,7 +9,7 @@ export class Highlight extends Component {
constructor(
onHighlight: (direction: Direction) => void,
onUnhighlight: () => void,
- isHighlighted: boolean = false,
+ isHighlighted: boolean = false
) {
super(ComponentNames.Highlight);
diff --git a/src/engine/components/Sprite.ts b/src/engine/components/Sprite.ts
index fdf9675..bfb9578 100644
--- a/src/engine/components/Sprite.ts
+++ b/src/engine/components/Sprite.ts
@@ -23,7 +23,7 @@ export class Sprite extends Component implements Renderable {
spriteImgPos: Coord2D,
spriteImgDimensions: Dimension2D,
msPerFrame: number,
- numFrames: number,
+ numFrames: number
) {
super(ComponentNames.Sprite);
@@ -78,7 +78,7 @@ export class Sprite extends Component implements Renderable {
ctx.drawImage(
this.sheet,
...this.getSpriteArgs(),
- ...this.getDrawArgs(drawArgs),
+ ...this.getDrawArgs(drawArgs)
);
if (tint) {
diff --git a/src/engine/components/Text.ts b/src/engine/components/Text.ts
index 94dc7a7..7cc1a50 100644
--- a/src/engine/components/Text.ts
+++ b/src/engine/components/Text.ts
@@ -10,7 +10,7 @@ export class Text extends Component {
text: string,
fillStyle = "white",
font = "25px scientifica",
- textAlign: CanvasTextAlign = "center",
+ textAlign: CanvasTextAlign = "center"
) {
super(ComponentNames.Text);