Пример #1
0
 public override void DrawFinal(SpriteBatch sb)
 {
     sb.Draw(TitleScreenTexture, Main.ScreenBound, Color.White);
     sb.Draw(PersistentContent.GetTexture("Blank"), new Rectangle(0, TitleSelection.Y,
                                                                  Main.SCREEN_WIDTH, (int)TitleSelection.Height), new Color(Color.Black, 0.8f));
     TitleSelection.Draw(sb);
 }
Пример #2
0
 private void DrawPaused(SpriteBatch sb)
 {
     sb.Draw(PersistentContent.GetTexture("Blank"), Main.ScreenBound, new Color(Color.Black, 0.8f));
     sb.DrawString(PersistentContent.GetFont("Large"), "Paused", new Vector2(30, 0), Color.White);
     sb.DrawString(PersistentContent.GetFont("Normal"), "Press the shooting button to continue.", new Vector2(30, 100), Color.White);
     sb.DrawString(PersistentContent.GetFont("Normal"), "Press Q to forfeit the game and to return to Title.", new Vector2(30, 150), Color.White);
     sb.Draw(PersistentContent.GetTexture("Comic"), new Rectangle(112, 300, 800, 200), Color.White);
 }
Пример #3
0
 public Maple()
 {
     this.Texture  = PersistentContent.GetTexture("Maple");
     this.Scale    = 1;
     this.Color    = new Color(Color.White, 0.4f);
     this.Position = new Vector2(Main.SCREEN_WIDTH + r.Next(100, 300), r.Next((int)Main.SCREEN_HEIGHT));
     this.Speed    = r.Next(1, 6);
 }
Пример #4
0
        /// <summary>
        /// Draw the transition effect.
        /// </summary>
        /// <param name="sb"></param>
        public override void DrawFinal(SpriteBatch sb)
        {
            // Continue to draw the old stuffs.
            DrawMiddle(sb);

            // Then put a cover on top of it.
            sb.Draw(PersistentContent.GetTexture("Blank"), Main.ScreenBound, Color.Black * AlphaCounter3);
        }
Пример #5
0
        public override void BackgroundDraw(SpriteBatch sb)
        {
            sb.Draw(PersistentContent.GetTexture("Background2"), Main.ScreenBound, Color.White);

            foreach (Maple m in Maples)
            {
                sb.Draw(m);
            }
        }
Пример #6
0
        public override void AddInstructions()
        {
            this.Add(PersistentContent.GetTexture("GameOver"));
            this.Add(Reason);

            this.Add(new Action(() =>
            {
                this.NextState = new Title();
            }));
        }
Пример #7
0
 public DummyPlayerProjectile(Vector2 InitialPosition)
 {
     this.Position        = InitialPosition;
     this.HP              = 2;
     this.MaxHP           = 2;
     this.Texture         = PersistentContent.GetTexture("Blank");
     this.Power           = 3;
     this.Scale           = 20;
     this.Color           = Color.Green;
     this.collisionSphere = new BoundingSphere(new Vector3(this.X, this.Y, 0), 10);
 }
Пример #8
0
        public override void AddInstructions()
        {
            this.Add(new Soundtrack(Main.ContentManager.RootDirectory + "/Songs/Bedsheet.dat"));
            this.Add(PersistentContent.GetTexture("Blank"));
            this.Add("???: To survive, you must face your worst nightmare!");
            this.Add(TemporaryContent.GetTexture("VS1"));

            this.Add(new Action(() => {
                this.NextState = new Boss1();
            }));
        }
Пример #9
0
 public CharlottePlayer()
 {
     this.X               = Main.SCREEN_WIDTH / 5;
     this.Y               = Main.SCREEN_HEIGHT / 2;
     this.HP              = 40;
     this.MaxHP           = 40;
     this.PP              = 50;
     this.MaxPP           = 50;
     this.Texture         = PersistentContent.GetTexture("Player");
     this.Color           = Color.White;
     this.collisionSphere = new BoundingSphere(new Vector3(this.X, this.Y, 0), 35);
 }
Пример #10
0
        /// <summary>
        /// Draw whatever that the slide wants.
        /// </summary>
        /// <param name="sb"></param>
        public override void DrawMiddle(SpriteBatch sb)
        {
            if (Instructions.Count > 0)
            {
                if (CurrentBackground != null)
                {
                    sb.Draw(CurrentBackground, Main.ScreenBound, Color.White);

                    if (InstructionIndex < Instructions.Count && Instructions[InstructionIndex] is Texture2D)
                    {
                        sb.Draw(PersistentContent.GetTexture("Blank"), Main.ScreenBound, new Color(Color.Black, AlphaCounter));
                    }
                }
                else
                {
                    sb.Draw(PersistentContent.GetTexture("Blank"), Main.ScreenBound, Color.Black);
                }

                if (CurrentText != "")
                {
                    sb.Draw(PersistentContent.GetTexture("Blank"), new Rectangle(0,
                                                                                 (int)((Main.SCREEN_HEIGHT - PersistentContent.GetFont("Slide").MeasureString(CurrentText).Y) / 2),
                                                                                 Main.SCREEN_WIDTH, (int)PersistentContent.GetFont("Slide").MeasureString(CurrentText).Y),
                            new Color(Color.Black, 0.8f * AlphaCounter2));

                    sb.DrawString(PersistentContent.GetFont("Slide"), CurrentText,
                                  new Vector2((Main.SCREEN_WIDTH - PersistentContent.GetFont("Slide").MeasureString(CurrentText).X) / 2,
                                              (Main.SCREEN_HEIGHT - PersistentContent.GetFont("Slide").MeasureString(CurrentText).Y) / 2),
                                  new Color(Color.White, AlphaCounter2));
                }

                if (CurrentSelection != null)
                {
                    if (CurrentSelection.Question != null || CurrentSelection.Question != "")
                    {
                        sb.Draw(PersistentContent.GetTexture("Blank"), new Rectangle(0, 50,
                                                                                     Main.SCREEN_WIDTH, (int)PersistentContent.GetFont("Selection").MeasureString(CurrentSelection.Question).Y),
                                new Color(Color.Black, 0.8f * AlphaCounter2));

                        sb.DrawString(PersistentContent.GetFont("Selection"), CurrentSelection.Question,
                                      new Vector2((Main.SCREEN_WIDTH - PersistentContent.GetFont("Selection").MeasureString(CurrentSelection.Question).X) / 2, 50),
                                      Color.White * AlphaCounter2);
                    }

                    sb.Draw(PersistentContent.GetTexture("Blank"), new Rectangle(0, Main.SCREEN_HEIGHT - (int)CurrentSelection.Height - 50,
                                                                                 Main.SCREEN_WIDTH, (int)CurrentSelection.Height),
                            new Color(Color.Black, 0.8f * AlphaCounter2));

                    CurrentSelection.Draw(sb, (Main.SCREEN_WIDTH - (int)CurrentSelection.Width) / 2,
                                          Main.SCREEN_HEIGHT - (int)CurrentSelection.Height - 50);
                }
            }
        }
Пример #11
0
        public Plastic(Level AssociatedLevel, Vector2 StartingPosition)
        {
            this.AssociatedLevel = AssociatedLevel;

            this.HP               = 5;
            this.MaxHP            = 5;
            this.Texture          = PersistentContent.GetTexture("Plastic");
            this.Power            = 3;
            this.Scale            = 0.3f;
            this.Color            = Color.White;
            this.Position         = StartingPosition;
            this.CollisionSpheres = new BoundingSphere[] { new BoundingSphere(new Vector3(this.Position, 0), 25) };
        }
Пример #12
0
        public Bedsheet(Level AssociatedLevel)
        {
            this.AssociatedLevel = AssociatedLevel;

            this.HP               = 50;
            this.MaxHP            = 180;
            this.Texture          = PersistentContent.GetTexture("Bedsheet");
            this.Power            = 3;
            this.Scale            = 1;
            this.Color            = Color.White;
            this.Position         = new Vector2(Main.SCREEN_WIDTH + 100, Main.SCREEN_HEIGHT / 2);
            this.CollisionSpheres = new BoundingSphere[] { new BoundingSphere(new Vector3(this.Position, 0), 40) };
        }
Пример #13
0
        public Que(Level AssociatedLevel, Vector2 StartingPosition)
        {
            this.AssociatedLevel = AssociatedLevel;

            this.HP               = 10;
            this.MaxHP            = 10;
            this.Texture          = PersistentContent.GetTexture("Que");
            this.Power            = 3;
            this.Scale            = 1;
            this.Color            = Color.White;
            this.Position         = StartingPosition;
            this.CollisionSpheres = new BoundingSphere[] { new BoundingSphere(new Vector3(this.Position, 0), 30) };
        }
Пример #14
0
        public ProjectPoutine(Level AssociatedLevel)
        {
            this.AssociatedLevel = AssociatedLevel;

            this.HP               = 500;
            this.MaxHP            = 500;
            this.Texture          = PersistentContent.GetTexture("ProjectPoutine");
            this.Power            = 10;
            this.Scale            = 1;
            this.Color            = Color.White;
            this.Position         = new Vector2(800, 200);
            this.CollisionSpheres = new BoundingSphere[] { new BoundingSphere(new Vector3(this.Position, 0), 175) };
        }
Пример #15
0
        public PPP(Level AssociatedLevel, float Y = Main.SCREEN_HEIGHT / 2)
        {
            this.AssociatedLevel = AssociatedLevel;

            this.HP               = 100;
            this.MaxHP            = 100;
            this.Texture          = PersistentContent.GetTexture("PPP1");
            this.Power            = 4;
            this.Scale            = 1;
            this.Color            = Color.White;
            this.Position         = new Vector2(Main.SCREEN_WIDTH + 30, Y);
            this.CollisionSpheres = new BoundingSphere[] { new BoundingSphere(new Vector3(this.Position, 0), 20) };
        }
Пример #16
0
 public DummyPlayer()
 {
     this.X               = Main.SCREEN_WIDTH / 5;
     this.Y               = Main.SCREEN_HEIGHT / 2;
     this.HP              = 40;
     this.MaxHP           = 40;
     this.PP              = 0;
     this.MaxPP           = 0;
     this.Texture         = PersistentContent.GetTexture("Blank");
     this.Scale           = 40;
     this.Color           = Color.Pink;
     this.collisionSphere = new BoundingSphere(new Vector3(this.X, this.Y, 0), 20);
 }
Пример #17
0
        public KillerKlownPhish(Level AssociatedLevel)
        {
            this.AssociatedLevel = AssociatedLevel;

            this.HP               = 70;
            this.MaxHP            = 70;
            this.Texture          = PersistentContent.GetTexture("KillerKlownPhish");
            this.Power            = 8;
            this.Scale            = 1;
            this.Color            = Color.White;
            this.Position         = new Vector2(Main.SCREEN_WIDTH + 300, Main.SCREEN_HEIGHT / 2);
            this.CollisionSpheres = new BoundingSphere[] { new BoundingSphere(new Vector3(this.Position, 0), 60) };
        }
Пример #18
0
        public HomingBobPlayerProjectile(Level AssociatedLevel, Vector2 InitialPosition)
        {
            this.AssociatedLevel = AssociatedLevel;
            this.Position        = InitialPosition;
            this.HP      = 3;
            this.MaxHP   = 3;
            this.Texture = PersistentContent.GetTexture("BobPlayerBullet");
            this.Power   = 1;
            this.Scale   = 1;

            this.Color           = new Color(rand.Next(255), rand.Next(255), rand.Next(255));
            this.collisionSphere = new BoundingSphere(new Vector3(this.X, this.Y, 0), 10);
        }
Пример #19
0
        public Anarfish(Level AssociatedLevel)
        {
            this.AssociatedLevel = AssociatedLevel;

            this.HP               = 50;
            this.MaxHP            = 50;
            this.Texture          = PersistentContent.GetTexture("Anarfish");
            this.Power            = 3;
            this.Scale            = 1;
            this.Color            = Color.White;
            this.Position         = new Vector2(Main.SCREEN_WIDTH / 2, -50);
            this.CollisionSpheres = new BoundingSphere[] { new BoundingSphere(new Vector3(this.Position, 0), 50) };
        }
Пример #20
0
        public SmallBullet(Level AssociatedLevel, Vector2 StartingPosition, Vector2 Velocity)
        {
            this.AssociatedLevel = AssociatedLevel;

            this.HP               = 1;
            this.MaxHP            = 1;
            this.Texture          = PersistentContent.GetTexture("SmallBullet");
            this.Power            = 1;
            this.Scale            = 0.5f;
            this.Color            = Color.White;
            this.Position         = StartingPosition;
            this.Velocity         = Velocity;
            this.CollisionSpheres = new BoundingSphere[] { new BoundingSphere(new Vector3(this.Position, 0), 12) };
        }
Пример #21
0
        public Assailant(Level AssociatedLevel, Vector2 FinalPosition)
        {
            this.AssociatedLevel = AssociatedLevel;

            this.HP               = 30;
            this.MaxHP            = 30;
            this.Texture          = PersistentContent.GetTexture("Assailant");
            this.Power            = 5;
            this.Scale            = 1;
            this.Color            = Color.White;
            this.FinalPosition    = FinalPosition;
            this.Position         = new Vector2(Main.SCREEN_WIDTH + 20, FinalPosition.Y);
            this.CollisionSpheres = new BoundingSphere[] { new BoundingSphere(new Vector3(this.Position, 0), 20) };
        }
Пример #22
0
        public Punkfish(Level AssociatedLevel, Vector2 StartingPosition, Vector2 Velocity)
        {
            this.AssociatedLevel = AssociatedLevel;

            this.HP               = 8;
            this.MaxHP            = 8;
            this.Texture          = PersistentContent.GetTexture("Punkfish");
            this.Power            = 3;
            this.Scale            = 1;
            this.Color            = Color.White;
            this.Position         = StartingPosition;
            this.Velocity         = Velocity;
            this.CollisionSpheres = new BoundingSphere[] { new BoundingSphere(new Vector3(this.Position, 0), 20) };
        }
Пример #23
0
 public override void BackgroundDraw(SpriteBatch sb)
 {
     sb.Draw(PersistentContent.GetTexture("Background"), Main.ScreenBound, Color.White);
     sb.Draw(PersistentContent.GetTexture("Decor"), new Vector2(100, 100), null, new Color(Color.DarkCyan, 0.9f), Rotations[0],
             Vector2.Zero, new Vector2(1, 1), SpriteEffects.None, 0);
     sb.Draw(PersistentContent.GetTexture("Decor"), new Vector2(300, 300), null, new Color(Color.DarkKhaki, 0.9f), Rotations[1],
             Vector2.Zero, new Vector2(1, 1), SpriteEffects.None, 0);
     sb.Draw(PersistentContent.GetTexture("Decor"), new Vector2(900, 400), null, new Color(Color.DarkGoldenrod, 0.9f), Rotations[2],
             Vector2.Zero, new Vector2(1, 1), SpriteEffects.None, 0);
     sb.Draw(PersistentContent.GetTexture("Decor"), new Vector2(700, 560), null, new Color(Color.DarkGreen, 0.9f), Rotations[3],
             Vector2.Zero, new Vector2(1, 1), SpriteEffects.None, 0);
     sb.Draw(PersistentContent.GetTexture("Decor"), new Vector2(1000, 200), null, new Color(Color.Gray, 0.9f), Rotations[3],
             Vector2.Zero, new Vector2(1, 1), SpriteEffects.None, 0);
 }
Пример #24
0
        public BigBullet(Level AssociatedLevel, Vector2 StartingPosition, Vector2 Velocity, float Power, Color Color)
        {
            this.AssociatedLevel = AssociatedLevel;

            this.HP               = 3;
            this.MaxHP            = 3;
            this.Texture          = PersistentContent.GetTexture("Bullet");
            this.Power            = Power;
            this.Scale            = 0.25f;
            this.Color            = Color;
            this.Position         = StartingPosition;
            this.Velocity         = Velocity;
            this.CollisionSpheres = new BoundingSphere[] { new BoundingSphere(new Vector3(this.Position, 0), 45) };
        }
Пример #25
0
        public CharlottePlayerProjectile(Vector2 InitialPosition)
        {
            this.Position = InitialPosition;
            this.HP       = 2;
            this.MaxHP    = 2;
            this.Texture  = PersistentContent.GetTexture("PlayerBullet");
            this.Power    = 3;

            Random r = new Random();

            this.Color = new Color(r.Next(255), r.Next(255), r.Next(255));

            this.collisionSphere = new BoundingSphere(new Vector3(this.X, this.Y, 0), 12);
        }
Пример #26
0
        public DummyEnemyProjectile(Level AssociatedLevel, Vector2 StartingPosition, Vector2 Velocity)
        {
            this.AssociatedLevel = AssociatedLevel;

            this.HP               = 10;
            this.MaxHP            = 10;
            this.Texture          = PersistentContent.GetTexture("Blank");
            this.Power            = 3;
            this.Scale            = 35;
            this.Color            = Color.Gray;
            this.Position         = StartingPosition;
            this.Velocity         = Velocity;
            this.CollisionSpheres = new BoundingSphere[] { new BoundingSphere(new Vector3(this.Position, 0), 35 / 2) };
        }
Пример #27
0
        public HomingPoutineBullet(Level AssociatedLevel, Vector2 StartingPosition, float Speed)
        {
            this.AssociatedLevel = AssociatedLevel;

            this.HP               = 1;
            this.MaxHP            = 1;
            this.Texture          = PersistentContent.GetTexture("HomingPoutineBullet");
            this.Power            = 0.5f;
            this.Scale            = 1;
            this.Color            = Color.White;
            this.Position         = StartingPosition;
            this.Speed            = Speed;
            this.CollisionSpheres = new BoundingSphere[] { new BoundingSphere(new Vector3(this.Position, 0), 7.5f) };
        }
Пример #28
0
        public NarmSlide(Level AssociatedLevel, int Index, int X)
        {
            this.AssociatedLevel = AssociatedLevel;

            this.HP             = 100;
            this.MaxHP          = 100;
            this.Texture        = PersistentContent.GetTexture("txt" + Index.ToString());
            this.Power          = 10;
            this.Scale          = 1;
            this.Color          = Color.White;
            this.Position       = new Vector2(X, 300);
            this.CollisionBoxes = new BoundingBox[] { new BoundingBox(new Vector3(X - 300, 0, 0),
                                                                      new Vector3(X + 300, 600, 0)) };
        }
Пример #29
0
        public Sweeper(Level AssociatedLevel)
        {
            this.AssociatedLevel = AssociatedLevel;

            this.HP             = 10000000000;
            this.MaxHP          = 10000000000;
            this.Texture        = PersistentContent.GetTexture("Sweeper");
            this.Power          = 0;
            this.Scale          = 1;
            this.Color          = Color.White;
            this.Position       = new Vector2(Main.SCREEN_WIDTH + 50, Main.SCREEN_HEIGHT / 2);
            this.CollisionBoxes = new BoundingBox[] { new BoundingBox(
                                                          new Vector3(this.Position + new Vector2(-25, -300), 0),
                                                          new Vector3(this.Position + new Vector2(25, 300), 0)) };
        }
Пример #30
0
        public Seal2(Level AssociatedLevel)
        {
            this.AssociatedLevel = AssociatedLevel;

            this.HP             = 300;
            this.MaxHP          = 300;
            this.Texture        = PersistentContent.GetTexture("Seal2");
            this.Power          = 2;
            this.Scale          = 1;
            this.Color          = Color.White;
            this.Position       = new Vector2(Main.SCREEN_WIDTH / 2 + 100, Main.SCREEN_HEIGHT / 2 - 100);
            this.CollisionBoxes = new BoundingBox[] { new BoundingBox(
                                                          new Vector3(this.Position.X - 100, this.Position.Y - 100, 0),
                                                          new Vector3(this.Position.X + 100, this.Position.Y + 100, 0)) };
        }