diff --git a/map_isometric.js b/map_isometric.js index 357bba6..d20a0f2 100644 --- a/map_isometric.js +++ b/map_isometric.js @@ -13,6 +13,14 @@ if(RadiumEngine !== undefined) this.canvas = canvas this.context = canvas.getContext("2d"); + $(this.canvas).bind('mouseenter', {'self': this}, function(event){ + self.mouse_over = true; + }); + + $(this.canvas).bind('mouseleave', {'self': this}, function(event){ + self.mouse_over = false; + }); + $(this.canvas).bind('mousemove', {'self': this}, function(event){ self = event.data.self;