Esempio n. 1
0
        public static void Main(string[] args)
        {
            CurrentName = new Dialog().Prompt("What's your name?", "Enter below:");

            Area = new PlayingArea();
            Surface = new Surface();
            SaveSystem = new SaveSystem();

            Surface.OnUserReaction += surface_OnUserReaction;
            Surface.OnGravity += surface_OnGravity;
            Area.OnCurrentTileReachedBottom += area_OnCurrentTileReachedBottom;
            Area.OnUserScored += area_OnUserScored;
            Area.OnGameEnds += area_OnGameEnds;

            SaveSystem.ReadHighscore();

            Surface.UpdateHighscoreLabel();

            Application.Run(Surface);
        }