Skip to content

Commit

Permalink
Updated demo
Browse files Browse the repository at this point in the history
  • Loading branch information
neki-dev committed Aug 25, 2023
1 parent d891cf2 commit ca1077f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
<a
href="https://github.com/neki-dev/gen-city/blob/main/demo/src/index.ts"
target="_blank"
>📑 Get source code</a
>📑 Get example code</a
>
</div>
</div>
Expand Down
9 changes: 0 additions & 9 deletions demo/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,6 @@ function generateAndRenderCity() {
if (ui.inputs.nodeDisplay?.checked) {
drawNodes();
}

ui.screen.addEventListener("click", (event: MouseEvent) => {
const position = {
x: Math.floor(event.offsetX / tileSize),
y: Math.floor(event.offsetY / tileSize),
};

console.log(city.getNodeAt(position));
});
});
}

Expand Down

0 comments on commit ca1077f

Please sign in to comment.