Example #1
0
        // Constructor(s)
        public Player()
            : base((float)Math.PI * 1.5f)
        {
            this.Texture = TextureManager.boss;
            this.Position = new Vector2(300, Globals.ScreenSize.Y - Texture.Height);

            this.Energy = new Bar(new Vector2(400, Globals.ScreenSize.Y - 35), 100, 20, 100, Color.Orange);
            this.Rank = 1;
            this.Experience = new Bar(new Vector2(Globals.ScreenSize.X / 2 - 330, 50), 300, 25, 100, Color.Green);
            this.Experience.Change(-Experience.MaxValue);
            this.RankPerks = new List<string>();
            Targets.Add("Enemy");
            Targets.Add("Boss");

            this.craft = new Button(new Vector2(700, 400), "Craft", TextureManager.SpriteFont20);
            for (int i = 0; i < 2; i++)
            {
                AddItem(new Item(Globals.Flee));
            }

            // Startmodules
            Inventory[2, 5] = new Weapon(this, 2, -1);
            Inventory[3, 5] = new Weapon(this, 3, -1);
            this.ShipHull = new Hull(this, 6, -1);
            this.ShipShield = new Shield(new Vector2(200, Globals.ScreenSize.Y - 35), 100, 20, 60, 0, -1);
        }
Example #2
0
 public WinScene()
     : base()
 {
     Menu = new Button(new Vector2(200, 200), "Menu", TextureManager.SpriteFont20);
     Quit = new Button(new Vector2(200, 250), "Quit", TextureManager.SpriteFont20);
 }
Example #3
0
 public ShipSelectScene()
     : base()
 {
     Back = new Button(new Vector2(200, 200), "Back", TextureManager.SpriteFont20);
 }