示例#1
0
        private void MoverDiscoVoador(GameTime gameTime)
        {
            tela = GraphicsDevice.Viewport.Bounds;
            float limiteAltura = tela.Height - disco.Imagem.Height - canhao.Imagem.Height - (tela.Height - canhao.Posicao.Y);

            _currentKeyboardState = Keyboard.GetState();
            disco.VerificarMovimento(_currentKeyboardState, canhao, GraphicsDevice, gameTime);
        }