예제 #1
0
        private void loadChicken()
        {
            Chicken chicken1 = new Chicken("ga1", new Tranform.Position(ClientSize.Width * 0 / 20, 10));
            Chicken chicken2 = new Chicken("ga2", new Tranform.Position(ClientSize.Width * 4 / 20, 10));
            Chicken chicken3 = new Chicken("ga3", new Tranform.Position(ClientSize.Width * 8 / 20, 10));
            Chicken chicken4 = new Chicken("ga4", new Tranform.Position(ClientSize.Width * 12 / 20, 10));

            chicken1.CreatEgg(3500);
            chicken2.CreatEgg(2500);
            chicken3.CreatEgg(3300);
            chicken4.CreatEgg(4000);
        }