Beispiel #1
0
        public void BuildLevel(Screens.PlayScreen screen)
        {
            this.screen = screen;

            Factory.AddSpikeRow(screen, -100, GameConstants.ScreenHeight - 30, 10);
            Factory.AddLineObject(screen, 90, 400, 0, 0);
            star1 = Factory.AddStar(screen, 205, 230);
            Factory.AddFence(screen, 215, 380, (float) Math.PI/2, 0);
            star2 = Factory.AddStar(screen, 400, 260);
            LineObject l = Factory.AddLineObject(screen, 325, 400, 0, 0);
            Factory.AddBackAndForthTransform(l, 35, 175, 0);
            star3 = Factory.AddStar(screen, 575, 230);
            Factory.AddFence(screen, 585, 380, (float)Math.PI / 2, 0);
            l = Factory.AddLineObject(screen, 710, 400, 0, 0); // end
            StickyBirdObj bird = Factory.AddBird(screen, 120, 250);
            screen.SetBird(bird);
            Factory.AddNest(screen,700, 380);
        }
Beispiel #2
0
        public virtual void BuildLevel(Screens.PlayScreen screen)
        {
            this.screen = screen;

            Factory.AddLineObject(screen, 150, 300, 0, 0);

            star1 = Factory.AddStar(screen, 225, 170);
            Factory.AddLineObject(screen, 400, 300, 0, 0);
            star2 = Factory.AddStar(screen, 400, 250);
            star3 = Factory.AddStar(screen, 540, 170);
            Factory.AddLineObject(screen, 650, 300, 0, 0);

            StickyBirdObj bird = Factory.AddBird(screen, 150, 250);
            screen.SetBird(bird);
            Factory.AddNest(screen, 650, 280);

            Factory.AddSpikeRow(screen, -100, GameConstants.ScreenHeight - 30, 10);
        }
Beispiel #3
0
 public static StarObject AddStar(PlayScreen screen, int x, int y)
 {
     StarObject so = new StarObject(World.CurrentWorld);
     AddObject(so, screen, x, y);
     return so;
 }