예제 #1
0
        /// <summary>
        /// Load graphics content for the game.
        /// </summary>
        public override void LoadContent()
        {
            base.LoadContent();

            //player = new BallCharacter(ScreenManager.Game, this);
            player          = new DragonBall(ScreenManager.Game, this);
            player.position = new Vector3(0f, 0f, 0f);
            player.scale   *= 2;
            ScreenManager.Game.Components.Add(player);


            m_kWallManager = new WallManager(ScreenManager.Game, this);
            ScreenManager.Game.Components.Add(m_kWallManager);

            c           = new Collectable(ScreenManager.Game, this);
            c.scale     = 10;
            c.position += new Vector3(0f, 0f, 0f);

            ScreenManager.Game.Components.Add(c);

            m_kPlane           = new CollisionLevelPiece(ScreenManager.Game, this, "checker_plane_3");
            m_kPlane.scale     = 15;
            m_kPlane.position += new Vector3(0f, 0f, 0);
            ScreenManager.Game.Components.Add(m_kPlane);

            LevelPiece skySphere = new LevelPiece(ScreenManager.Game, this, "sky_sphere");

            m_kPlane.scale     = 15;
            m_kPlane.position += new Vector3(0f, 0f, 0);
            ScreenManager.Game.Components.Add(m_kPlane);
        }
예제 #2
0
        /// <summary>
        /// Load graphics content for the game.
        /// </summary>
        public override void LoadContent()
        {
            base.LoadContent();

            m_kCountdownTimer = new Utils.CountdownTimer(ScreenManager.Game, new Vector2(500.0f, 50.0f));
            ScreenManager.Game.Components.Add(m_kCountdownTimer);

            player = new DragonBall(ScreenManager.Game, this);
            //player = new BallCharacter(ScreenManager.Game, this);
            player.position = new Vector3(0f, 0f, 0f);
            player.scale   *= 3;
            ScreenManager.Game.Components.Add(player);


            m_kWallManager = new WallManager(ScreenManager.Game, this);
            ScreenManager.Game.Components.Add(m_kWallManager);

            m_kPlane           = new CollisionLevelPiece(ScreenManager.Game, this, "checker_plane_3");
            m_kPlane.scale     = 15;
            m_kPlane.position += new Vector3(50f, -10f, 0);
            ScreenManager.Game.Components.Add(m_kPlane);
        }