コード例 #1
0
        public Form2048()
        {
            InitializeComponent();

            Game.Init(this);
            mousePositions = new Queue <Point>();
            Game.images    = LoadImages(@"..\..\..\Slike");

            Tile.game            = this;
            this.Size            = new Size(526, 740);
            this.FormBorderStyle = FormBorderStyle.FixedSingle;


            Timer t = new Timer();

            t.Interval = 40;
            t.Tick    += MouseMotion;
            t.Start();
            this.Icon = Icon.ExtractAssociatedIcon(@"..\..\..\Slike\icon.ico");
            this.Text = "Felix 2048";
        }