public HealthBar(Fighter fighter, Texture2D tex_, bool flip_) : base() { f = fighter; tex = tex_; baseWidth = 100; flip = flip_; }
public HealthBar(Fighter fighter, Texture2D tex_, bool flip_, Vector2 pos, int baseWidth_) : base(pos) { f = fighter; tex = tex_; baseWidth = baseWidth_; flip = flip_; }
public HitBox(Fighter parent, SoundEffect noise, List<HitBoxFrame> frames) : base() { this.parent = parent; this.noise = noise; this.elapsedTime = 0; this.index = 0; active = false; this.frames = frames; }
public GameScreen(int widthScreen, int heightScreen, IScreenMaster master) : base(widthScreen, heightScreen, master) { Audio.GetInstance().PlaySong(Load<SoundEffect>("Audio/battle")); p = new Physics(); bg = new Background(Load<Texture2D>("Image/stage")); var pos1 = new Vector2(50, 150); var pos2 = new Vector2(440, 150); p1 = GetFighter(pos1, Load<Texture2D>("Image/p1"), Settings.in1, false, Settings.P1_FIGHTER); p2 = GetFighter(pos2, Load<Texture2D>("Image/p2"), Settings.in2, true, Settings.P2_FIGHTER); h1 = new HealthBar(p1, Load<Texture2D>("Image/blue"), false, new Vector2(10, 10)); h2 = new HealthBar(p2, Load<Texture2D>("Image/red"), true, new Vector2(widthScreen - 110, 10)); w1 = new Wall(new Rectangle(-30,-1000,30,1000+heightScreen)); w2 = new Wall(new Rectangle(widthScreen, -1000, 30, 1000+heightScreen)); }