void DrawGame(GameTime gameTime) { // use sampler that clamp at pixel spriteBatch.Begin(samplerState: SamplerState.PointClamp, transformMatrix: Camera.Instance.ViewMatrix); map.DrawFloor(spriteBatch); map.DrawWall(spriteBatch); // draw all entities that need to be draw foreach (var item in listEntities) { if (item.IsActive) { item.Draw(spriteBatch); } } map.DrawOnWall(spriteBatch); map.DrawLight(spriteBatch); spriteBatch.End(); }