axaq / traviso.js

Traviso is an open source JS engine that makes it easy to build isometric applications that run in a web browser.
MIT License
309 stars 42 forks source link

How do I get the tile position from the cursor position? #16

Closed fax1ty closed 4 years ago

fax1ty commented 4 years ago

Also it would be very convenient if there was an event that was responsible for pointing the mouse at the object/tile, and not just when clicking

axaq commented 4 years ago

it is costly in terms of performance. but you can look at this method if you want to implement it anyway: https://github.com/axaq/traviso.js/blob/881652092fc417fd8671e215a302655700494513/bin/traviso.dev.js#L3972