Пример #1
0
        public void update(double dt)
        {
            if (playersReady[0] && playersReady[1] &&
                playersReady[2] && playersReady[3] &&
                playersReady[4] && playersReady[5] &&
                playersReady[6] && playersReady[7])
            {
                if (playReadySF)
                {
                    ready.Play();
                    playReadySF = false;
                }
                readyWait -= dt;

                if (readyWait < 0)
                {
                    GameStateFighting gsf = new GameStateFighting(Content, Game, playerColors, net);
                    net.setGSF(gsf);
                    Game.doStateTransition(gsf);
                }
            }

            for (int x = 0; x < 8; x++)
            {
                if (playersReady[x])
                {
                    playerSlides[x] += (float)dt * 4;
                }
            }
        }
Пример #2
0
        public void update(double dt)
        {
            if (playersReady[0] && playersReady[1] &&
                playersReady[2] && playersReady[3] &&
                playersReady[4] && playersReady[5] &&
                playersReady[6] && playersReady[7])
            {
                if (playReadySF)
                {
                    ready.Play();
                    playReadySF = false;
                }
                readyWait -= dt;

                if (readyWait < 0)
                {
                    GameStateFighting gsf = new GameStateFighting(Content, Game, playerColors, net);
                    net.setGSF(gsf);
                    Game.doStateTransition(gsf);
                }
            }
            
            for (int x = 0; x < 8; x++) {
                if (playersReady[x]) playerSlides[x] += (float)dt * 4;
            }
        }
Пример #3
0
 public void setGSF(GameStateFighting gsf)
 {
     game         = gsf;
     game.offline = !connected;
 }
Пример #4
0
 public void setGSF(GameStateFighting gsf)
 {
     game = gsf;
     game.offline = !connected;
 }