public UpWoodenSwordState(ILink link, MainStage game) { this.Link = link; this.game = game; GetSprite = new GeneralSprite(72, 120, 4); this.game.ProjectileFactory.ProjectileList.Add(new ProjectileWoodenSword(GlobalDefinitions.Position, new Vector2(0, -1))); }
public LeftIdleState(ILink link, MainStage game) { this.Link = link; this.decoratedLink = (Link)link; this.game = game; GetSprite = new GeneralSprite(72, 72, 1); }
public GameWin() { MessageSprite = new TextSprite(gameWin); ResetSprite = new TextSprite(restart); QuitSprite = new TextSprite(quit); BlackBackground = new GeneralSprite(1536, 1056 + 336, 1); }
public GameOver() { MessageSprite = new TextSprite(gameOver); ResetSprite = new TextSprite(restart); ContinueSprite = new TextSprite(continueGame); QuitSprite = new TextSprite(quit); BlackBackground = new GeneralSprite(1536, 1056 + 336, 1); }
public InventoryMenu(MainStage game) { this.game = game; Background = new GeneralSprite(length, width, frame); Selection = new GeneralSprite(square, square, frame); MapSprite = new GeneralSprite(square, square, frame); BombSprite = new GeneralSprite(square, square, frame); BowSprite = new GeneralSprite(square, square, frame); CompassSprite = new GeneralSprite(square, square, frame); BoomerSprite = new GeneralSprite(square, square, frame); }
public void LinkItem() { if (SelectionPosition == BoomerPosition && game.Link.HasBoomer) { selectedItem = BoomerSprite; } if (SelectionPosition == BombPosition && game.Link.BombNumber > 0) { selectedItem = BombSprite; } if (SelectionPosition == bowPosition && game.Link.HasBow) { selectedItem = BowSprite; } }
public DownIdleState(ILink link, MainStage game) { this.Link = link; this.game = game; GetSprite = new GeneralSprite(72, 72, 1); }
public UpMovingState(ILink link, MainStage game) { this.Link = link; this.game = game; GetSprite = new GeneralSprite(72, 72, 2); }