public/js-roguelike-skeleton/src/game.js
function(x, y){
            var coords = this.renderer.mouseToTileCoords(x, y),
                tile = this.map.get(coords.x, coords.y);
            if(tile){
                this.renderer.hoveredTileX = tile.x;
                this.renderer.hoveredTileY = tile.y;
            } else {
                this.renderer.hoveredTileX = null;
                this.renderer.hoveredTileY = null;
            }
            this.renderer.draw();
        }
function(x, y){
            var coords = this.renderer.mouseToTileCoords(x, y),
                tile = this.map.get(coords.x, coords.y);
            if(tile){
                this.renderer.hoveredTileX = tile.x;
                this.renderer.hoveredTileY = tile.y;
            } else {
                this.renderer.hoveredTileX = null;
                this.renderer.hoveredTileY = null;
            }
            this.renderer.draw();
        }
function ( x , y ) { var coords = this . renderer . mouseToTileCoords ( x , y ) , tile = this . map . get ( coords . x , coords . y ) ; if ( tile ) { this . renderer . hoveredTileX = tile . x ; this . renderer . hoveredTileY = tile . y ; } else { this . renderer . hoveredTileX = null ; this . renderer . hoveredTileY = null ; } this . renderer . draw ( ) ; }
Handles tile mouse hover events
@method onHover
@param {Number} x - Mouse x coord relative to window.
@param {Number} y - Mouse y coord relative to window.
Handles tile mouse hover events