public override void Initialize() { arena = Matrix.CreateScale(20.0f) * Matrix.CreateTranslation(Vector3.Zero); InitializeTarget(); seeker = InitializeSeeker(); evaders = new List<CSprite>(); evaders.Add(InitializeEvader()); evaders.Add(InitializeEvader()); base.Initialize(); }
private void YourIt() { Vector3 seekerPosition = seeker.position; Vector3 targetPosition = target.position; CSprite evader = InitializeEvader(); evader.position = seeker.position; evaders.Add(evader); seeker = InitializeSeeker(); seeker.position = targetPosition; target = evaders[0]; target.colour = 1; evaders.RemoveAt(0); }