Skip to content

Commit

Permalink
fix: linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
NuclearRedeye committed Nov 4, 2024
1 parent dbc718f commit 30fd820
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ts/interfaces/sprite.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Point } from "./point";
import { Point } from './point';

export interface Sprite extends Point {
active: boolean;
Expand Down
2 changes: 1 addition & 1 deletion src/ts/utils/canvas-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/ts/utils/cell-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 30fd820

Please sign in to comment.