コード例 #1
0
        private void btnLoadFile_Click(object sender, RoutedEventArgs e)
        {
            _GameDriver.LoadFile();

            //IMPORTANT
            //Everytime you register CoreWindow_KeyDown event
            //First remove it, then register it again.
            //I do this to be sure a multiplied CoreWindow_KeyDown event IS NOT APPLIEED  2 times
            //because it will increase Goodie's speed. (We don't want to increase goodie's speed)
            FreezeGoodie();
            UnFreezeGoodie();
        }