Exemplo n.º 1
0
        public void LoadContent(Game game)
        {
            standing = game.Content.Load<Texture2D>(@"images/guy_standing");
            running1 = game.Content.Load<Texture2D>(@"images/guy_walking1");
            running2 = game.Content.Load<Texture2D>(@"images/guy_walking2");
            jumping = game.Content.Load<Texture2D>(@"images/guy_jumping");
            hacking = game.Content.Load<Texture2D>(@"images/guy_hacking_standing");
            jumphacking = game.Content.Load<Texture2D>(@"images/guy_hacking_jumping");
            shield = game.Content.Load<Texture2D>(@"images/guy_shield");
            shield1 = game.Content.Load<Texture2D>(@"images/playershield1");
            shield2 = game.Content.Load<Texture2D>(@"images/playershield2");
            shield3 = game.Content.Load<Texture2D>(@"images/playershield3");

            powers = new PlayerPower();
            powers.initiate();
            powers.initializeAvail();
        }
Exemplo n.º 2
0
        public void hardReset()
        {
            Dictionary<String, Boolean> tmpAvailable = new Dictionary<String, Boolean>(powers.available);

            powers = new PlayerPower();
            powers.initiate();
            powers.available = new Dictionary<String, Boolean>(tmpAvailable);
            LogState.instance.catIntoLog("Resetting...\n");
            Bullets.instance.removeAll(this);
        }