/// <summary> /// Creates the kite. /// </summary> private void CreateKite() { this.kite = EntitiesFactory.CreateKite(); this.EntityManager.Add(this.kite); var ropeEnd = new Entity() .AddComponent(new Transform2D() { X = WaveServices.ViewportManager.VirtualWidth - 150, Y = WaveServices.ViewportManager.VirtualHeight }); this.EntityManager.Add(ropeEnd); var kiteBall = EntitiesFactory.CreateKiteBall(); kiteBall.AddComponent(new Follower2DBehavior(this.kite.Entity, Follower2DBehavior.FollowTypes.Y)); this.EntityManager.Add(kiteBall); this.EntityManager.Add(EntitiesFactory.CreateLinkedRope(this.kite.Entity, new Vector2(0.96f, 0.21f), kiteBall, Vector2.Center)); this.EntityManager.Add(EntitiesFactory.CreateLinkedRope(this.kite.Entity, new Vector2(0.92f, 0.66f), kiteBall, Vector2.Center)); this.EntityManager.Add(EntitiesFactory.CreateLinkedRope(kiteBall, Vector2.Center, ropeEnd, this.kite.Transform.Position)); }