Esempio n. 1
0
        public Screen(Fonts fonts)
        {
            this.fonts     = fonts;
            cardList       = new List <ColorCard>();
            guessColorName = new Dictionary <Colors, Texture2D>();
            squareBarParts = new List <Texture2D>();

            soundsColor = new SoundVault(new List <AvailableSounds>()
            {
                AvailableSounds.GREEN,
                AvailableSounds.ORANGE,
                AvailableSounds.PINK,
                AvailableSounds.SILVER,
                AvailableSounds.VIOLET,
                AvailableSounds.YELLOW,
                AvailableSounds.RED,
                AvailableSounds.BLUE,
            }, 10);

            soundsAnswer = new SoundVault(new List <AvailableSounds>()
            {
                AvailableSounds.BAD,
                AvailableSounds.GOOD,
                AvailableSounds.END_GAME,
                AvailableSounds.FANFARE,
                AvailableSounds.CARTOON_HOP
            }, 2);
        }
Esempio n. 2
0
 public Screen()
 {
     gameList = new List <GamePicture>();
     progress = 0;
     sounds   = new Sounds.SoundVault(new List <AvailableSounds>()
     {
         AvailableSounds.TOY_STORE, AvailableSounds.COLORS
     }, 5);
     circleScale = 0.0f;
 }
Esempio n. 3
0
        public Screen(Fonts fonts)
        {
            this.fonts = fonts;
            this.cloud = new Services();

            cards           = new List <MemoryCard>();
            position        = new CardPositions();
            firstPickedCard = cleanCard();

            sounds = new SoundVault(new List <AvailableSounds>()
            {
                AvailableSounds.END_GAME,
                AvailableSounds.CARTOONSPLIT,
                AvailableSounds.CARTOON_HOP,
            }, 1);
        }
Esempio n. 4
0
        public Screen(Fonts fonts, ColorStreamRenderer stream)
        {
            cloud         = new Services();
            colorStream   = stream;
            firstEntrance = true;
            this.fonts    = fonts;
            gameMode      = Mode.Start;
            time          = 0;
            timer         = new Time(2, 00);
            airApple      = new List <Apple>();

            sounds = new SoundVault(new List <AvailableSounds>()
            {
                AvailableSounds.END_GAME,
                AvailableSounds.TICK,
                AvailableSounds.CARTOON_HOP,
            }, 1);
        }
Esempio n. 5
0
        public Screen(Fonts fonts)
        {
            time       = new Time(2, 30);
            isMoveDone = false;
            points     = 0;
            gameMode   = Mode.START;
            this.fonts = fonts;
            cloud      = new Services();
            controller = new MainController();
            controller.getRandomMove();

            sounds = new SoundVault(new List <AvailableSounds>()
            {
                AvailableSounds.HEAD_LEFT,
                AvailableSounds.HEAD_RIGHT,

                AvailableSounds.HIP_DOWN,
                AvailableSounds.HIP_UP,

                AvailableSounds.LEFT_HAND_DOWN,
                AvailableSounds.LEFT_HAND_LEFT,
                AvailableSounds.LEFT_HAND_RIGHT,
                AvailableSounds.LEFT_HAND_UP,

                AvailableSounds.LEFT_LEG_LEFT,
                AvailableSounds.LEFT_LEG_RIGHT,
                AvailableSounds.LEFT_LEG_UP,

                AvailableSounds.RIGHT_HAND_DOWN,
                AvailableSounds.RIGHT_HAND_LEFT,
                AvailableSounds.RIGHT_HAND_RIGHT,
                AvailableSounds.RIGHT_HAND_UP,

                AvailableSounds.RIGHT_LEG_LEFT,
                AvailableSounds.RIGHT_LEG_RIGHT,
                AvailableSounds.RIGHT_LEG_UP,

                AvailableSounds.END_GAME,

                AvailableSounds.CARTOON_HOP,
                AvailableSounds.FANFARE,
                AvailableSounds.BTN_ON_CLICK,
            }, 4);
        }
Esempio n. 6
0
        public Screen(Fonts fonts)
        {
            this.fonts     = fonts;
            cards          = new List <ToyCard>();
            money          = new List <MoneyCard>();
            squareBarParts = new List <Texture2D>();
            cashInBank     = new List <MoneyCard>();
            toPay          = 0;
            inBank         = 0;
            payBtnProgress = 0;
            mode           = StageMode.Normal;

            sounds = new SoundVault(new List <AvailableSounds>()
            {
                AvailableSounds.END_GAME,
                AvailableSounds.CARTOON_HOP,
                AvailableSounds.ERROR,
            }, 1);
        }
        public InfoBox(Fonts fonts)
        {
            this.fonts    = fonts;
            backProgress  = 0;
            cursorOnArrow = false;
            this.SpeechConfidenceThreshold = 0.0f;
            isEnabled     = false;
            isVisible     = false;
            posBackground = new Vector2(Settings.WINDOW_WIDTH - 300, Settings.WINDOW_HEIGHT - 150);
            posArrowDown  = new Vector2(Settings.WINDOW_WIDTH - 187, Settings.WINDOW_HEIGHT - 57);
            posArrowUp    = new Vector2(Settings.WINDOW_WIDTH - 187, Settings.WINDOW_HEIGHT - 57);
            posArrowBack  = new Vector2(5, Settings.WINDOW_HEIGHT - 53);

            sounds = new SoundVault(new List <AvailableSounds>()
            {
                AvailableSounds.BTN_ON_CLICK
            }, 1);
            squareBarParts = new List <Texture2D>();
        }