Exemplo n.º 1
0
        /// <summary> Starts the game </summary>
        public void Start()
        {
            _Zippy.Active = true;
            foreach (Enemy enemy in _Enemies)
            {
                enemy.Active  = true;
                enemy.Visible = true;
            }
            foreach (Collectible collectible in _Collectibles)
            {
                collectible.Visible = true;
            }
            foreach (Platform platform in _Platforms)
            {
                platform.Visible = true;
                platform.Enabled = true;
            }
            foreach (Drawable drawable in _LevelDrawables)
            {
                drawable.Visible = true;
            }
            ZippyGame.Camera.Active = true;
            ZippyGame.Camera.Reset();

            _LevelScore = 0;
            PhysicsWorld.Instance.Enabled = true;
            _ScoreText.Text = $"{_TotalScore}";
            _Zippy.Initialise();
        }