Beispiel #1
0
        private static void Main()
        {
            while (true)
            {
                var map  = LevelSwitcher.GetNextLevel();
                var test = new Player();
                if (!Game.IsOver)
                {
                    Game.Map = LevelCreator.CreateMap(map);
                    Application.Run(new GameWindow());
                }
                else
                {
                    break;
                }
            }
            End();


            void End()
            {
                if (!Game.IsOver)
                {
                    return;
                }
                var name = Interaction.InputBox("Enter your name", "Succes", "", -1, -1);

                RecordTable.AddRecord(name, Game.MovesCount);
                MessageBox.Show(RecordTable.GetTopFive(), "Records", MessageBoxButtons.OKCancel);
            }
        }
Beispiel #2
0
    public void ResetGame(bool is_dead)
    {
        if (is_dead)
        {
            totalStars     = 0;
            Life           = 5;
            current_streak = 0;
            LifeText.text  = "5";
            //Reset Collectible Effects
            PickRangeCollider.radius = 0.5f;
            transform.localScale     = defaultSphereSize;
            GetSwipe.ballSpeed       = 3;
            isReverse = false;
        }

        GetSwipe.startedMovement = false;
        transform.position       = originalPos;

        //gameOn = false;
        //StartRound.count = 0;
        //GetInput.actionOrder.Clear();

        Create.CreateMap();
        //Create.CreateNewLevel();
        //Debug.Log(GetInput.actionOrder.Count);
    }