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; }
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; }
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(); }