Exemplo n.º 1
0
 void CakeUp(FMVManager.Command c)
 {
     if (types_selected[skull] < 2 || types_selected[stone] < 2 || types_selected[icing] < 1)
     {
         return;
     }
     for (int x = 0; x < 6; x++)
     {
         for (int y = 0; y < 5; y++)
         {
             if (GetSlice(x, y) == selected)
             {
                 int slot = GetSlot(x, y);
                 //fmvman.ClearPlayingVideos("cake-" + slot.ToString("00"));
                 QueueOverlay(myvidpath + slot.ToString("00") + "cf.avi", CakeAway, new Color(0, 0, 251.0f / 255.0f, 1), "away-cake-" + slot.ToString("00"), false, false, GetZ(slot), 0.5f, 0.5f);
                 fmvman.playlist.Add(new FMVManager.Command {
                     type = FMVManager.CommandType.WAITTIME, countdown = 0.1f
                 });
                 fmvman.playlist.Add(new FMVManager.Command {
                     type = FMVManager.CommandType.CLEARVIDEOS, tags = "select-cake-" + slot.ToString("00")
                 });
                 SetSlice(slot, done);
             }
         }
     }
     num_selected   = 0;
     types_selected = new int[4] {
         0, 0, 0, 0
     };
 }
Exemplo n.º 2
0
    void completed1_0(FMVManager.Command c)
    {
        PlaySong("GU16");

        //need to make a clickbox for this here...
        currPos.node = cake;
        QueueMovement("_v.avi", false);
        StartPuzzle("cake", endcake);
    }
Exemplo n.º 3
0
    void NewGame(FMVManager.Command c)
    {
        if (myvid == null)
        {
            MenuReady(c);
        }

        myvid.rp.transform.SetParent(transform);
        fmvman.PlaySong(new FMVManager.Command {
            file = "", type = FMVManager.CommandType.SONG
        });
        fmvman.SwitchRoom("intro", 1, 'a');
        YSpeed = 10.0f;
    }
Exemplo n.º 4
0
 void MenuReady(FMVManager.Command c)
 {
     foreach (var v in fmvman.playing_videos)
     {
         var vs  = v.GetComponent <videoScript>();
         var com = vs.command;
         if (fmvman.HasTags(com.tags, "menu"))
         {
             myvid = vs;
             if (myvid.rp != null)
             {
                 myvid.rp.transform.SetParent(transform);
             }
         }
     }
 }
Exemplo n.º 5
0
    void CakeAway(FMVManager.Command c)
    {
        fmvman.ClearPlayingVideos(c.tags);

        for (int x = 0; x < 6; x++)
        {
            for (int y = 0; y < 5; y++)
            {
                if (GetSlice(x, y) != done)
                {
                    return;
                }
            }
        }
        //Ego says "there"
        WinPuzzle();
    }
Exemplo n.º 6
0
 void downStairs2(FMVManager.Command c)
 {
     fmvman.SwitchRoom("foyer", foyer.front_door, 'a');
 }
Exemplo n.º 7
0
 void AfterMorph(FMVManager.Command c)
 {
     PlaySong("GU56");
 }
Exemplo n.º 8
0
 void EndCans(FMVManager.Command c)
 {
     WinPuzzle();
 }
Exemplo n.º 9
0
 void SpiderArrivedWin(FMVManager.Command c)
 {
     Debug.Log("You Win!");
     PlaySound("GAMWAV/gen_s_2.avi", EndCurses, true);//curses!
 }
Exemplo n.º 10
0
 void SpiderArrived(FMVManager.Command c)
 {
 }
Exemplo n.º 11
0
 void GraveDigger(FMVManager.Command c)
 {
     //PlaySound(there, ExitPuzzle);
 }
Exemplo n.º 12
0
 void AfterSuck(FMVManager.Command c)
 {
     PlaySong("GU63");
 }
Exemplo n.º 13
0
 void EndPiano(FMVManager.Command c)
 {
     WinPuzzle();
 }
Exemplo n.º 14
0
 void SwitchToFoyer(FMVManager.Command c)
 {
     fmvman.SwitchRoom("foyer", 1, 'c');
 }
Exemplo n.º 15
0
 void completed2_(FMVManager.Command c)
 {
     //GU19 for after dr2_.avi??? does the dining room have a song or not?
     PlaySong("GU19");
 }