From 773ce84f4bf559337e132edd7fcce02a0a2598fd Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Fri, 25 Aug 2023 16:48:17 -0600 Subject: prettier formatting --- engine/systems/FacingDirection.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'engine/systems/FacingDirection.ts') diff --git a/engine/systems/FacingDirection.ts b/engine/systems/FacingDirection.ts index daf639f..01f32cf 100644 --- a/engine/systems/FacingDirection.ts +++ b/engine/systems/FacingDirection.ts @@ -2,10 +2,10 @@ import { ComponentNames, Velocity, FacingDirection as FacingDirectionComponent, - Control, -} from "../components"; -import { Game } from "../Game"; -import { System, SystemNames } from "./"; + Control +} from '../components'; +import { Game } from '../Game'; +import { System, SystemNames } from './'; export class FacingDirection extends System { constructor() { @@ -23,7 +23,7 @@ export class FacingDirection extends System { const totalVelocityComponent = new Velocity(); const control = entity.getComponent(ComponentNames.Control); const velocity = entity.getComponent( - ComponentNames.Velocity, + ComponentNames.Velocity ).velocity; totalVelocityComponent.add(velocity); @@ -32,7 +32,7 @@ export class FacingDirection extends System { } const facingDirection = entity.getComponent( - ComponentNames.FacingDirection, + ComponentNames.FacingDirection ); if (totalVelocityComponent.velocity.dCartesian.dx > 0) { @@ -40,7 +40,7 @@ export class FacingDirection extends System { } else if (totalVelocityComponent.velocity.dCartesian.dx < 0) { entity.addComponent(facingDirection.facingLeftSprite); } - }, + } ); } } -- cgit v1.2.3-70-g09d2