Exemplo n.º 1
0
        public void draw(SpriteBatch spriteBatch, GameTime gameTime)
        {
            switch (state)
            {
            case State.START:
                start.draw(spriteBatch, main);
                break;

            case State.SELECTION:
                selection.draw(spriteBatch, selectmode, spriteFont);
                break;

            case State.PLAY1:
                play1.draw(spriteBatch, square, cross, zero, spriteFont, spriteFont2);
                break;

            case State.PLAY2:
                play2.draw(spriteBatch, square, cross, zero, spriteFont, spriteFont2);
                break;

            case State.MENU1:
                menu1.draw(spriteBatch, menuImage);
                break;

            case State.MENU2:
                menu2.draw(spriteBatch, menuImage);
                break;
            }
        }