Esempio n. 1
0
        private void GameInit()
        {
            KidsColors = new KidsColorList();

            _dexterityHelper          = (int)(GameWidth * .03);                           //3% of default is 18px, works for ~3y/o
            _defaultShapeWidth        = (int)(GameWidth * .1);                            //10% of the screen's width
            _dropShapeCalculatedWidth = _defaultShapeWidth + (2 * _dropShapeBorderWidth); //make it big enough to fit the shape
            DragShapes = new List <Shape>();
            DropShapes = new List <Shape>();
            canvas.IsDoubleTapEnabled = true;
            canvas.DoubleTapped      += Canvas_DoubleTapped;
        }