예제 #1
0
파일: Enemy.cs 프로젝트: jbornemann/Ascian
 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;
 }
예제 #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;
        }
예제 #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)
 {
 }
예제 #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");
 }