public TitleScreenClass(ContentManager content, GraphicsDevice device, Vector2 Screen) { Title = content.Load<Texture2D>("Images/blackSmaller"); logo = content.Load<Texture2D>("Images/Logo"); ResOffset = new Vector2(Screen.X / 1920, Screen.Y / 1080); endLogoPositionSize = new Vector4(new Vector2(Screen.X / 2, 200 * ResOffset.Y), ((ResOffset.X + ResOffset.Y) / 2) * 0.5f, ((ResOffset.X + ResOffset.Y) / 2) * 0.5f); logoAnim = new DynamicAnimation(new Vector2[] { Screen / 2, ResOffset }, new Vector2[] { new Vector2(endLogoPositionSize.X, endLogoPositionSize.Y), new Vector2(endLogoPositionSize.Z, endLogoPositionSize.W) }, TimeSpan.FromMilliseconds(logoMoveTime), false); loading = new LoadingScreenClass(content, LoadingTime, true); blackTex = new Texture2D(device, 1, 1); }
public TitleScreenClass(ContentManager content, GraphicsDevice device, Vector2 Screen) { Title = content.Load <Texture2D>("Images/blackSmaller"); logo = content.Load <Texture2D>("Images/Logo"); ResOffset = new Vector2(Screen.X / 1920, Screen.Y / 1080); endLogoPositionSize = new Vector4(new Vector2(Screen.X / 2, 200 * ResOffset.Y), ((ResOffset.X + ResOffset.Y) / 2) * 0.5f, ((ResOffset.X + ResOffset.Y) / 2) * 0.5f); logoAnim = new DynamicAnimation(new Vector2[] { Screen / 2, ResOffset }, new Vector2[] { new Vector2(endLogoPositionSize.X, endLogoPositionSize.Y), new Vector2(endLogoPositionSize.Z, endLogoPositionSize.W) }, TimeSpan.FromMilliseconds(logoMoveTime), false); loading = new LoadingScreenClass(content, LoadingTime, true); blackTex = new Texture2D(device, 1, 1); }