Ejemplo n.º 1
0
 public Enemy(ref global_vars variables, Texture2D enemysprite, ref Character player_char, ref Campaign currentCampaign,  Game1 game)
     : base(game)
 {
     this.enemy = enemysprite;
     this.player = player_char;
     this.variables = variables;
     this.game = game;
     this.currentCampaign = currentCampaign;
     thisEnemy = this;
 }
Ejemplo n.º 2
0
        public Campaign(ref global_vars vars, Player player, Texture2D map, Game1 game)
            : base(game)
        {
            this.variables = vars;
            this.player = player;
            this.map = map;
            this.game = game;
            thisCampaign = this;
            play = this;

            s1 = new Vector2(40, variables.screen_height - 40);
            l1 = new Rectangle(variables.screen_width - 190, variables.screen_height - 70, 50, 50);
            l2 = new Rectangle(variables.screen_width - 130, variables.screen_height - 70, 50, 50);
            l3 = new Rectangle(variables.screen_width - 70, variables.screen_height - 70, 50, 50);

            mapPosition = new Rectangle(0, 0, variables.screen_width, variables.screen_height);
            this.character = this.player.getCharacter(thisCampaign);
            creepers = 0;
            shadows = 0;
        }
Ejemplo n.º 3
0
 public Creeper(ref global_vars variables, Texture2D enemysprite, ref Character player_char, ref Campaign currentCampaign, Game1 game)
     : base(ref variables, enemysprite, ref player_char, ref currentCampaign, game)
 {
 }
Ejemplo n.º 4
0
 public ShadowEater(ref global_vars variables, Texture2D enemysprite, ref Character player_char, ref Campaign currentCampaign, Game1 game)
     : base(ref variables, enemysprite, ref player_char, ref currentCampaign, game)
 {
     attackSound = game.Content.Load<SoundEffect>("Sounds\\shadowAttackSound");
 }