Skip to content

Commit

Permalink
Update todos
Browse files Browse the repository at this point in the history
  • Loading branch information
Zikoat committed Aug 11, 2024
1 parent 8db9843 commit f26dbdb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/CellSprite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class CellSprite {
this.front.scale = 0.85;
this.back.anchor.set(0.5);

// shit this should use cell-space to world space helpers
// todo this should use cell-space to world space helpers
const x = cell.x * CELL_WIDTH + CELL_WIDTH / 2;
const y = cell.y * CELL_WIDTH + CELL_WIDTH / 2;
this.front.x = x;
Expand Down
1 change: 0 additions & 1 deletion src/Cursor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,5 @@ function cellCoordToWorldCoord(cellCoord: CellCoord): WorldCoord {
}

export function worldCoordToCellCoord(worldCoord: WorldCoord): CellCoord {
// shit we should migrate away from using scale here somehow
return Math.floor(worldCoord / CELL_WIDTH) as CellCoord;
}

0 comments on commit f26dbdb

Please sign in to comment.