diff --git a/code/GameLib.js b/code/GameLib.js index 702abce..50b8b4a 100644 --- a/code/GameLib.js +++ b/code/GameLib.js @@ -68,11 +68,10 @@ GameScreen.prototype = { Update: function(){ for(var i=0,n=this.Entities.length;i (this.PositionDest.X - (this.Size.X/2)) && + point.Y < (this.PositionDest.Y + (this.Size.Y/2)) && + point.Y > (this.PositionDest.Y - (this.Size.Y/2)) && + true + ); + }, Debug: false };