public void bigTug(Tugger t) { ropePosition.Offset(TEAM_STRENGTH, 0); foreach (Tugger teammate in team) { teammate.move(TEAM_STRENGTH); } p1.move(TEAM_STRENGTH); t.deactivate(); }
public override void Start(Player[] InGame) { players = InGame; ropePosition = new Rectangle(((GAMESPACE.Width - ropeSprite.getTexture().Width) / 2) + GAMESPACE.Left, (GAMESPACE.Height / 2) + GAMESPACE.Top, ropeSprite.getTexture().Width, ropeSprite.getTexture().Height); canActivate = true; isStunned = false; frameCount = 0; winBox = new Rectangle(((ropePosition.Width / 2) + ropePosition.Left) - 100, ropePosition.Top, 200, ropePosition.Height); team = new List<Tugger>(); for (int x = 1; x < players.Length; x++) { team.Add(new Tugger(players[x], ropePosition.Left + (50 * (x-2)), ropePosition.Top - (muscleManSprite.getTexture().Height / 2) )); } p1 = new Tugger(players[0], (GAMESPACE.Right - 50) - muscleManSprite.getTexture().Width, ropePosition.Top - (muscleManSprite.getTexture().Height / 2)); buttons = new List<ControllerButton>(); buttons.Add(ControllerButton.A); buttons.Add(ControllerButton.X); buttons.Add(ControllerButton.Y); buttons.Add(ControllerButton.B); currentButton = ControllerButton.A; buttonSprites = new Dictionary<ControllerButton, Image>(); buttonSprites.Add(ControllerButton.A, aButtonSprite); buttonSprites.Add(ControllerButton.B, bButtonSprite); buttonSprites.Add(ControllerButton.X, xButtonSprite); buttonSprites.Add(ControllerButton.Y, yButtonSprite); }