diff --git a/src/ts/interfaces/sprite.ts b/src/ts/interfaces/sprite.ts index 7f2fd8d..c9de7b9 100644 --- a/src/ts/interfaces/sprite.ts +++ b/src/ts/interfaces/sprite.ts @@ -1,4 +1,4 @@ -import { Point } from "./point"; +import { Point } from './point'; export interface Sprite extends Point { active: boolean; diff --git a/src/ts/utils/canvas-utils.ts b/src/ts/utils/canvas-utils.ts index f56d9a4..4da68c2 100644 --- a/src/ts/utils/canvas-utils.ts +++ b/src/ts/utils/canvas-utils.ts @@ -45,7 +45,7 @@ export function drawSkybox(context: CanvasRenderingContext2D, start: Point, end: context.drawImage(texture.canvas as HTMLCanvasElement, texturePositionX, 0, 1, (wallHeight / context.canvas.height) * texture.height, start.x, start.y, 1, wallHeight); } -export function drawBorderRectangle(context: CanvasRenderingContext2D, destination: Rectangle, colour: string = 'white') { +export function drawBorderRectangle(context: CanvasRenderingContext2D, destination: Rectangle, colour: string = 'white'): void { context.save(); context.strokeStyle = colour; context.lineWidth = 1; diff --git a/src/ts/utils/cell-utils.ts b/src/ts/utils/cell-utils.ts index 48d7fe6..ab1344e 100644 --- a/src/ts/utils/cell-utils.ts +++ b/src/ts/utils/cell-utils.ts @@ -40,7 +40,7 @@ export function isSolid(cell: Cell): number { export function isBlocked(cell: Cell): number { let retVal = cellHasProperty(cell, CellProperties.BLOCKED); - // FIXME: This should be moved elsewhere as in specific walls of a 'Door' Cell could still be solid + // FIXME: This should be moved elsewhere as in specific walls of a 'Door' Cell could still be solid if (isDoor(cell) && (cell as DoorCell).status === DoorState.OPEN) { retVal = 0; }