Пример #1
0
		public override void Intro ( params object [] args )
		{
			contentManager = new ResourceTable ( FileSystemManager.GetFileSystem ( FileSystemManager.ManifestFileSystem ) );
			contentManager.AddDefaultContentLoader ();
			AudioContentLoader.AddDefaultDecoders ();
			AudioContentLoader.Decoders.Add ( new MpegDecoder () );

			Core.GraphicsDevice.BlendState = true;
			Core.GraphicsDevice.BlendOperation = BlendOperation.AlphaBlend;

			font = contentManager.Load<TrueTypeFont> ( "test.ttf", 40 );
			audio1 = contentManager.Load<IAudioBuffer> ( "test.mp3" );
			audio1.Play ();

			base.Intro ( args );
		}
Пример #2
0
        public override void Intro( params object [] args )
        {
            contentManager = new ResourceTable ( FileSystemManager.GetFileSystem ( FileSystemManager.ManifestFileSystem ) );

            Core.GraphicsDevice.ImmediateContext.BlendState = BlendState.AlphaBlend;
            Add ( InputHelper.Instance );

            stt = contentManager.Load<StringTable> ( "Resources/stringTable.json" );

            font = contentManager.Load<TrueTypeFont> ( "Resources/test.ttf", 22 );
            font.IsPrerenderMode = true;
            font2 = contentManager.Load<TrueTypeFont> ( "Resources/test.ttf", 32 );
            font2.SeconaryFont = contentManager.Load<TrueTypeFont> ( "Resources/segoeui.ttf", 32 );

            base.Intro ( args );
        }