Example #1
0
        public static void ChangeDifficulty(Levels.Difficulty difficulty)
        {
            switch (difficulty)
            {
            case Levels.Difficulty.Baby:
                timeDelay = 1.5f;
                break;

            case Levels.Difficulty.Easy:
                timeDelay = 1;
                break;

            case Levels.Difficulty.Medium:
                timeDelay = .5f;
                break;

            case Levels.Difficulty.Hard:
                timeDelay = .3f;
                break;
            }
        }
Example #2
0
        public Game1()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

            // set screen size to 1024x800
            graphics.PreferredBackBufferHeight = 800;
            graphics.PreferredBackBufferWidth = 1024;
            myMode = Mode.twoPlayer;

            difficulty = Levels.Difficulty.Medium;
        }