Пример #1
0
 /// <summary>
 /// Constructs a new Menu of the game.
 /// </summary>
 /// <param name="game">The game this Menu belongs to.</param>
 /// <param name="content">The Content Manager of the game, used to get required assets.</param>
 /// <param name="supported">Boolean indicating whether the current platform supports the game (ie has functional Kinect, Speech and BCI) </param>
 public Menu(SPB game, ContentManager content, bool supported)
 {
     this.game = game;
     this.supportedPlatform = supported;
     MenuFont    = content.Load <SpriteFont>("MenuFont");
     MenuTexture = content.Load <Texture2D>("menuBackground");
 }
Пример #2
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (SPB game = new SPB())
     {
         game.Run();
     }
 }
Пример #3
0
        /// <summary>
        /// Strats up a new Maze to be used in a game of Saving Private Bryan.
        /// </summary>
        /// <param name="game">The SPB-game this maze belongs to.</param>
        /// <param name="content">The content managers, used for loading all the assets.</param>
        public Maze(SPB game, ContentManager content)
        {
            this.game = game;

            // Set up and process the maze.
            SetUpMaze(content);
            ProcessMaze();

            // Put the player in the maze.
            SetUpPlayer(content);

            // Create antibodies.
            SetUpAntibodies(content);

            // Place all the letters.
            SetUpLetters(content);

            // Place the virus.
            SetUpVirus(content);
        }