Skip to content
This repository was archived by the owner on Nov 12, 2024. It is now read-only.

Commit 96ca8c6

Browse files
committed
Remove unnecessary from2dTo1dIndex method of isometricLevel
1 parent abead06 commit 96ca8c6

2 files changed

Lines changed: 0 additions & 5 deletions

File tree

src/kaboom.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2509,10 +2509,6 @@ function addIsometricLevel(map: string[], options: IsometricLevelOpt): Isometric
25092509
return vec2((col - row) * halfTileWidth, (col + row) * halfTileHeight);
25102510
},
25112511

2512-
from2dTo1dIndex: (row: number, col: number): number => {
2513-
return row * maxWidthInTiles + col
2514-
},
2515-
25162512
spawn: (position: Vec2, symbol: string): GameObj => {
25172513
const comps = (() => {
25182514
if (options[symbol]) {

src/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3850,7 +3850,6 @@ export interface IsometricLevel {
38503850
gridHeight(): number,
38513851
offset(): Vec2,
38523852
fromIsometricCoordsToWorldPos(row: number, col: number): Vec2,
3853-
from2dTo1dIndex(row: number, col: number): number,
38543853
width(): number,
38553854
height(): number,
38563855
destroy(): void,

0 commit comments

Comments
 (0)