コード例 #1
0
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            space = new Space();
            space.ForceUpdater.Gravity = new Vector3(0, -3.711f, 0); //-3.711 is the gravity for mars,changed this

            children.Add(new StarsSphere());                         //Create the stars for the sky,added myself
            terrain = new MarsTerrain();                             //Create the terrain,added myself
            children.Add(terrain);
            rover = new MarsRover();                                 //Create the rover,added myself
            children.Add(rover);

            foreach (GameEntity child in children)
            {
                child.LoadContent();
            }
        }
コード例 #2
0
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            space = new Space();
            space.ForceUpdater.Gravity = new Vector3(0, -3.711f, 0);//-3.711 is the gravity for mars,changed this

            children.Add(new StarsSphere());//Create the stars for the sky,added myself
            terrain = new MarsTerrain();//Create the terrain,added myself
            children.Add(terrain);
            rover = new MarsRover();//Create the rover,added myself
            children.Add(rover);

            foreach (GameEntity child in children)
            {
                child.LoadContent();
            }
        }