Beispiel #1
0
        public Game1()
        {
            graphics = new GraphicsDeviceManager(this)
            {
                PreferredBackBufferWidth  = WIDTH,
                PreferredBackBufferHeight = HEIGHT
            };
            Content.RootDirectory    = "Content";
            Window.AllowUserResizing = false;
            this.IsMouseVisible      = true;
            this.Window.Position     = new Point(GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Width / 2 - WIDTH / 2, GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Height / 2 - HEIGHT / 2 - 50);
            gameState = GameState.MainMenu;
            gameDone  = 0;
            random    = new Random();
            int rand = random.Next(3);

            Volume = .4f;
            switch (rand)
            {
            case 0:
                aroo = Aroo.Switch;
                break;

            case 1:
                aroo = Aroo.Swap;
                break;

            case 2:
                aroo = Aroo.Reverse;
                break;
            }
            bg1X = 0;
            bg2X = 0;
        }
Beispiel #2
0
        private void NewAroo()
        {
            int rand = random.Next(3);

            switch (rand)
            {
            case 0:
                aroo = Aroo.Switch;
                break;

            case 1:
                aroo = Aroo.Swap;
                break;

            case 2:
                aroo = Aroo.Reverse;
                break;
            }
        }