Example #1
0
        private void CreateVan()
        {
            var van = new VanEntity();

            van.PositionX = gameplayLayer.ContentSize.Width + 100;
            van.PositionY = gameplayLayer.ContentSize.Height / 2;
            gameplayLayer.AddChild(van);
            vanList.Add(van);
        }
Example #2
0
 private void VanLeft(VanEntity van)
 {
     if (van.PositionX < -100)
     {
         RemoveChild(van);
         vanList.Remove(van);
         CreateVan();
     }
 }
Example #3
0
 private bool VanVsBiker(VanEntity van)
 {
     return(!van.Thrown && biker.Children[0].BoundingBoxTransformedToWorld.IntersectsRect(van.Children[0].BoundingBoxTransformedToWorld));
 }