/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (CervineGame game = new CervineGame()) { game.Run(); } }
/// <summary> /// Constructor for SpriteManager /// </summary> /// <param name="game">Instance of CervineGame class</param> /// <param name="boardSize">Width and height of a game board</param> /// <param name="spriteBatch">Spritebatch to draw sprites on screen</param> /// <param name="contentManager">ContentManager for saving and loading game</param> public SpriteManager(CervineGame game, Point boardSize, SpriteBatch spriteBatch, ContentManager contentManager) : base(game) { Game.Content.RootDirectory = "Content"; _contentManager = contentManager; this.game = game; this.boardSize = boardSize; this.spriteBatch = spriteBatch; }