Esempio n. 1
0
        /// <summary>
        /// Allows the game to perform any initialization it needs to before starting to run.
        /// This is where it can query for any required services and load any non-graphic
        /// related content.  Calling base.Initialize will enumerate through any components
        /// and initialize them as well.
        /// </summary>
        protected override void Initialize()
        {
            // TODO: Add your initialization logic here
            gameState = GameState.START;
            Game game = this;

            // levelOne = new Level(spriteBatch,this);
            startingScreen = new StartingScreen(graphics);
            settingsScreen = new SettingsScreen(startingScreen.mousePointer);
            endingScreen   = new EndingScreen(GraphicsDevice, startingScreen.mousePointer);

            oldPadState = GamePad.GetState(PlayerIndex.One);
            base.Initialize();
        }
Esempio n. 2
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);
            // TODO: use this.Content to load your game content here
            resetLevels();

            MousePointer.loadPointerImage(this);
            Button.loadContent(this);
            StartingScreen.loadTitleScreenImage(this);
            LabelPrompt.loadSpriteFont(this);

            /*locs is a list of the coords of all the powerups,coords are like (Y,X)
             * types stores the powerup type for each powerup.
             */
            /*double[,] locs = new double[,] { { 500, 100 }, { 600, 100 }, { -50, 50 }, { -40, 200 } };
             * string[] types = new string[] {"white", "pink","pink","red","pink","red","pink"};
             * powerupManager = new PowerupManager(this,spriteBatch,locs,types);*/
        }