Ejemplo n.º 1
0
 public PlayerBullet(Player p, Graphics g, LeftEnemy objLeft, Enemy enemy, FinalBoss fb)
 {
     this.g       = g;
     this.p       = p;
     this.objLeft = objLeft;
     this.fb      = fb;
     this.enemy   = enemy;
     tile         = new Bitmap(Properties.Resources.Bullet);
 }
Ejemplo n.º 2
0
 public int Level3()
 {
     if (once == 0)
     {
         enemy.GetSetLoc.x   = this.obj.ClientSize.Width + enemy.GetSetTile.Width;
         objLeft.GetSetLoc.x = this.obj.ClientSize.Width + objLeft.GetSetTile.Width;
         once++;
         return(2);
     }
     one = 20;
     if (fb == null)
     {
         fb = new FinalBoss(obj, g, p);
     }
     if (fb.GetSetHealth <= 0)
     {
         return(3);
     }
     fb.render();
     fb.MoveEnemy();
     return(0);
 }
Ejemplo n.º 3
0
 public void updateFinalBoss(FinalBoss fb)
 {
     this.fb = fb;
 }