Ejemplo n.º 1
0
        public static GameCFG getInstance()
        {
            if (oCFG == null)
            {
                oCFG = new GameCFG();
            }

            return(oCFG);
        }
Ejemplo n.º 2
0
        //private long lFPSTimer = DateTime.Now.Ticks / TimeSpan.TicksPerMillisecond;
        //private int iNumOfFPS, nNumOfFPS;

        public _2048Game()
        {
            InitializeComponent();
            bBackground = new Bitmap(396, 600);

            this.FormBorderStyle = FormBorderStyle.FixedDialog;
            this.MaximizeBox     = false;
            this.StartPosition   = FormStartPosition.CenterScreen;
            gGraphics            = this.CreateGraphics();
            gG = Graphics.FromImage(bBackground);

            oGame = new Game();
            GameCFG.getInstance();
        }