Example #1
0
 /// <summary>
 /// Handle left scrolling of the level.
 /// </summary>
 protected void HandleScrollingLeft()
 {
     if (Position.X < SosEngine.Core.RenderWidth * 0.35f)
     {
         float scrollAmount = Position.X - (SosEngine.Core.RenderWidth * 0.35f);
         if (level.ScrollX(-scrollAmount))
         {
             Position = new Vector2(Position.X - scrollAmount, Position.Y);
         }
     }
 }