Ejemplo n.º 1
0
 public World(float aspectRatio=0)
 {
     if (current == null)
     {
         this.cameraPosition = new Vector3(1000, 100.0f, 0);
         this.shipPosition = new Vector3(-100.0f,200.0f, -10000.0f);
         this.projectionMatrix = Matrix.CreatePerspectiveFieldOfView(MathHelper.ToRadians(75.0f), aspectRatio, 1.0f, 1000000.0f);
     }
     current = this;
 }
Ejemplo n.º 2
0
        public NewGame(Microsoft.Xna.Framework.Game game)
            : base(game)
        {
            this.game = game;
            this.playing = false;
            this.ship = new Ship.Ship(300, 100);
            this.planets = new Planets();

            this.world = new World(this.game.GraphicsDevice.Viewport.AspectRatio);
            this.network = new Network();
            this.time = 0.0f;
        }
Ejemplo n.º 3
0
        public NewGame(Microsoft.Xna.Framework.Game game)
            : base(game)
        {
            this.game = game;
            this.playing = false;
            this.ship = new Ship.Ship();
            this.planets = new Planets();

            this.world = new World(this.game.GraphicsDevice.Viewport.AspectRatio);
            this.network = new Network();
            this.time = 0.0f;

            this.currentItem = MenuList.game;
            this.exitMenu = new ExitMenu.ExitMenu();
        }