Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
gugiserman committed Nov 16, 2021
1 parent 0f13e00 commit 8946d47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/kaboom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2505,7 +2505,7 @@ function addIsometricLevel(map: string[], options: IsometricLevelOpt): Isometric
return options.tileHeight;
},

fromIsometricCoordsToScreenPos: (row: number, col: number): Vec2 => {
fromIsometricCoordsToWorldPos: (row: number, col: number): Vec2 => {
return vec2((col - row) * halfTileWidth, (col + row) * halfTileHeight);
},

Expand Down Expand Up @@ -2569,7 +2569,7 @@ function addIsometricLevel(map: string[], options: IsometricLevelOpt): Isometric

for (let row = 0; row < heightInTiles; row++) {
for (let col = 0; col < maxWidthInTiles; col++) {
const position = isometricLevel.fromIsometricCoordsToScreenPos(row, col);
const position = isometricLevel.fromIsometricCoordsToWorldPos(row, col);
const rowContent: string = map[row]
const symbols: string[] = rowContent.split("");
const symbol = symbols[col]
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3849,7 +3849,7 @@ export interface IsometricLevel {
gridWidth(): number,
gridHeight(): number,
offset(): Vec2,
fromIsometricCoordsToScreenPos(row: number, col: number): Vec2,
fromIsometricCoordsToWorldPos(row: number, col: number): Vec2,
from2dTo1dIndex(row: number, col: number): number,
width(): number,
height(): number,
Expand Down

0 comments on commit 8946d47

Please sign in to comment.