예제 #1
0
        private void CreateBoids()
        {
            int buffer = 32;

            for (int i = 0; i < EntityCapacity * 0.1; i++)
            {
                CreateEntity(Boid.Create(Morro.Maths.Random.Range(buffer, (int)SceneBounds.Width - buffer), Morro.Maths.Random.Range(buffer, (int)SceneBounds.Height - buffer)));
            }
        }