mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2026-03-23 15:47:24 +01:00
refactor: migrate renderers to ts (#1296)
* refactor: migrate renderers to ts * fix: copilot review
This commit is contained in:
parent
e8b0b19ff0
commit
3ba8338508
31 changed files with 2094 additions and 1396 deletions
|
|
@ -491,7 +491,7 @@ export function* poissonDiscSampler(
|
|||
return true;
|
||||
}
|
||||
|
||||
function sample(x: number, y: number) {
|
||||
function sample(x: number, y: number): [number, number] {
|
||||
const point: [number, number] = [x, y];
|
||||
grid[gridWidth * ((y / cellSize) | 0) + ((x / cellSize) | 0)] = point;
|
||||
queue.push(point);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue