public static void Load(Game game) { shipStart = game.Content.Load<SoundEffect>(@"Sounds\Effects\ShipStart"); Model skyboxModel = game.Content.Load<Model>(@"Skybox\Skybox"); skybox = new Skybox(game.GraphicsDevice, skyboxModel); effect = new BasicEffect(game.GraphicsDevice); graphicsDevice = game.GraphicsDevice; Vector3 cameraPosition = new Vector3(0, 200, 500); galaxyCamera = new Camera(cameraPosition, new Vector3(0, 0, 0), 500, MathHelper.PiOver2); }
/// <summary> /// Carica le texture e il font /// </summary> /// <param name="content"></param> public void Load(ContentManager content) { string GUIFolder = GraphicSettings.GetGUIFolder(); font = content.Load<SpriteFont>(GUIFolder + "Consolas"); Model skyboxModel = Game.Content.Load<Model>("Skybox/Skybox"); skybox = new Skybox(Game.GraphicsDevice, skyboxModel); effect = new BasicEffect(Game.GraphicsDevice); title = Game.Content.Load<Texture2D>(GUIFolder + "TitleLogo"); titlePosition = new Vector2(GraphicSettings.CenterScreen.X - title.Width / 2, 50); titleZoom = 0.01f; CreateInterface(GUIFolder); }