Beispiel #1
0
        GameData gameData;              // Dados globais para o jogo

        /// <summary>
        /// Construtor
        /// </summary>
        public Game1()
        {
            // Instanciações da framework
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

            // Configurações para os objetos do jogo
            gameObjects = new GameObjects();     // Instancia o listão de objetos
            gameObjects.createPlayersOnDrugs(1); // Instancia N players
            gameObjects.createAsteroids(10);     // Instancia N asteróides

            // Configurações da tela do jogos
            graphics.PreferredBackBufferWidth  = GameData.WIDTH;
            graphics.PreferredBackBufferHeight = GameData.HEIGHT;
            graphics.IsFullScreen = GameData.FULLSCREEN;
        }