Ejemplo n.º 1
0
        private void CreateLevelFive()
        {
            Level level = new Level();
            level.Number = 5;

            level.Title = "Level Five - Brain Nightmare";
            level.Description = "You got to the point where worst nightmares for your brain will come true: 30 pipes achievement, again doubled flooz speed, 10 seconds prepare and a map to drive you crazy. Get it on!";

            level.PointsToAchieve = 250;
            level.PipesToAchieve = 30;

            level.FloodDuration = TimeSpan.FromSeconds(0.5);
            level.CountDown = new CountDownDefinition(TimeSpan.FromSeconds(10));

            level.PipeQueue = new PipeQueueDefinition(3, PipeQueueFillModeDefinition.AutoRandom);
            level.SquareMap = new SquareMapDefinition();
            level.SquareMap.Boundary = new Boundary(12, 12);

            for (int x = 0; x < 12; x++)
            {
                for (int y = 0; y < 12; y++)
                {
                    if ((y == 0) && ((x > 3) && (x < 8))) continue;
                    if ((y == 1) && ((x > 4) && (x < 7))) continue;

                    if ((y == 3) && (x < 1)) continue;
                    if ((y == 4) && (x < 2)) continue;
                    if ((y == 5) && (x < 3)) continue;
                    if ((y == 6) && (x < 2)) continue;
                    if ((y == 7) && (x < 1)) continue;

                    if ((y == 3) && (x > 10)) continue;
                    if ((y == 4) && (x > 9)) continue;
                    if ((y == 5) && (x > 8)) continue;
                    if ((y == 6) && (x > 9)) continue;
                    if ((y == 7) && (x > 10)) continue;

                    if ((y == 10) && ((x > 4) && (x < 7))) continue;
                    if ((y == 11) && ((x > 3) && (x < 8))) continue;

                    if ((x == 6) && (y == 5))
                    {
                        level.SquareMap.Put(new SquareMapItemDefinition(new Position(x, y), new SquareDefinition(SquareType.WaterSourceDown)));
                    }
                    else
                    {
                        level.SquareMap.Put(new SquareMapItemDefinition(new Position(x, y), new SquareDefinition(SquareType.Empty)));
                    }
                }
            }

            this.levels.Add(level.Number, level);
        }
Ejemplo n.º 2
0
        private void CreateLevelTwo()
        {
            Level level = new Level();
            level.Number = 2;

            level.Title = "Level Two - The Easy Challenge";
            level.Description = "Ok, you're in the mood right now, let's head for an easy challenge. How about pipelining at least 10 pipes or making 250 points? Get it on, baby!";

            level.PointsToAchieve = 250;
            level.PipesToAchieve = 10;

            level.FloodDuration = TimeSpan.FromSeconds(2);
            level.CountDown = new CountDownDefinition(TimeSpan.FromSeconds(30));

            level.PipeQueue = new PipeQueueDefinition(12, PipeQueueFillModeDefinition.AutoRandom);
            level.SquareMap = new SquareMapDefinition();
            level.SquareMap.Boundary = new Boundary(12, 12);

            for (int x = 0; x < 12; x++)
            {
                for (int y = 0; y < 12; y++)
                {
                    if ((x == 3) && (y == 9))
                    {
                        level.SquareMap.Put(new SquareMapItemDefinition(new Position(x, y), new SquareDefinition(SquareType.WaterSourceDown)));
                    }
                    else
                    {
                        level.SquareMap.Put(new SquareMapItemDefinition(new Position(x, y), new SquareDefinition(SquareType.Empty)));
                    }
                }
            }

            this.levels.Add(level.Number, level);
        }
Ejemplo n.º 3
0
        private void CreateLevelOne()
        {
            Level level = new Level();
            level.Number = 1;

            level.Title = "Level One - Get Into The Right Mood";
            level.Description = "Let's get into the right mood. In this level, you just need 5 pipes flooded - a very easy one to tease your taste. By the way, you have half a minute to prepare your pipeline - this should be enough.";

            level.PointsToAchieve = 0;
            level.PipesToAchieve = 5;

            level.FloodDuration = TimeSpan.FromSeconds(2);
            level.CountDown = new CountDownDefinition(TimeSpan.FromSeconds(10));

            level.PipeQueue = new PipeQueueDefinition(12, PipeQueueFillModeDefinition.AutoRandom);
            level.SquareMap = new SquareMapDefinition();
            level.SquareMap.Boundary = new Boundary(12, 12);

            for (int x = 0; x < 12; x++)
            {
                for (int y = 0; y < 12; y++)
                {
                    if ((x == 0) && (y == 0))
                    {
                        level.SquareMap.Put(new SquareMapItemDefinition(new Position(x, y), new SquareDefinition(SquareType.WaterSourceRight)));
                    }
                    else
                    {
                        level.SquareMap.Put(new SquareMapItemDefinition(new Position(x, y), new SquareDefinition(SquareType.Empty)));
                    }
                }
            }

            this.levels.Add(level.Number, level);
        }
Ejemplo n.º 4
0
        private void CreateLevelThree()
        {
            Level level = new Level();
            level.Number = 3;

            level.Title = "Level Three - Let's Speed Up Pace";
            level.Description = "Hey, you really think that this thing here is easy? Ok, let's get some speed in here: Flooz flows at double speed, you have 15 seconds to prepare and only 5 pipes in preview. Can you do same achievements with this map? Show me!";

            level.PointsToAchieve = 250;
            level.PipesToAchieve = 10;

            level.FloodDuration = TimeSpan.FromSeconds(1);
            level.CountDown = new CountDownDefinition(TimeSpan.FromSeconds(15));

            level.PipeQueue = new PipeQueueDefinition(5, PipeQueueFillModeDefinition.AutoRandom);
            level.SquareMap = new SquareMapDefinition();
            level.SquareMap.Boundary = new Boundary(12, 12);

            for (int x = 0; x < 12; x++)
            {
                for (int y = 0; y < 12; y++)
                {
                    if (((y == 0) || (y == 11)) && ((x < 4) || (x > 7))) continue;
                    if (((y == 1) || (y == 10)) && ((x < 3) || (x > 8))) continue;
                    if (((y == 2) || (y == 9)) && ((x < 2) || (x > 9))) continue;
                    if (((y == 3) || (y == 8)) && ((x < 1) || (x > 10))) continue;

                    if ((x == 5) && (y == 6))
                    {
                        level.SquareMap.Put(new SquareMapItemDefinition(new Position(x, y), new SquareDefinition(SquareType.WaterSourceLeft)));
                    }
                    else
                    {
                        level.SquareMap.Put(new SquareMapItemDefinition(new Position(x, y), new SquareDefinition(SquareType.Empty)));
                    }
                }
            }

            this.levels.Add(level.Number, level);
        }
Ejemplo n.º 5
0
        private void CreateLevelFour()
        {
            Level level = new Level();
            level.Number = 4;

            level.Title = "Level Four - No More Kids Play";
            level.Description = "Uuuh, you seem to think you're Einstein, ha? How about this one: 3 pipes preview, 10 seconds prepare, 20 pipes to achieve and a fine map. C'mon Einstein wannabe!";

            level.PointsToAchieve = 250;
            level.PipesToAchieve = 20;

            level.FloodDuration = TimeSpan.FromSeconds(1);
            level.CountDown = new CountDownDefinition(TimeSpan.FromSeconds(10));

            level.PipeQueue = new PipeQueueDefinition(3, PipeQueueFillModeDefinition.AutoRandom);
            level.SquareMap = new SquareMapDefinition();
            level.SquareMap.Boundary = new Boundary(12, 12);

            for (int x = 0; x < 12; x++)
            {
                for (int y = 0; y < 12; y++)
                {
                    if (((y == 3)) && ((x > 4) && (x < 7))) continue;
                    if (((y == 4)) && ((x > 3) && (x < 8))) continue;
                    if (((y == 5)) && ((x > 2) && (x < 9))) continue;
                    if (((y == 6)) && ((x > 3) && (x < 8))) continue;
                    if (((y == 7)) && ((x > 4) && (x < 7))) continue;

                    if ((x == 10) && (y == 10))
                    {
                        level.SquareMap.Put(new SquareMapItemDefinition(new Position(x, y), new SquareDefinition(SquareType.WaterSourceUp)));
                    }
                    else
                    {
                        level.SquareMap.Put(new SquareMapItemDefinition(new Position(x, y), new SquareDefinition(SquareType.Empty)));
                    }
                }
            }

            this.levels.Add(level.Number, level);
        }