Example #1
0
 public override void Intro( params object [] args )
 {
     Core.GraphicsDevice.ImmediateContext.BlendState = BlendState.AlphaBlend;
     contentManager = new ResourceTable ( FileSystemManager.GetFileSystem ( FileSystemManager.ManifestFileSystem ) );
     font = contentManager.Load<TrueTypeFont> ( "Resources/test.ttf",  32 );
     Add ( InputHelper.Instance );
     base.Intro ( args );
 }
Example #2
0
        public override void Intro( params object [] args )
        {
            Contents = new ResourceTable ( FileSystemManager.GetFileSystem ( "ManifestFileSystem" ) );
            Contents.AddDefaultContentLoader ();

            Add ( new PlayerController () );
            Add ( new BulletController () );

            gameOverFont = Contents.Load<TrueTypeFont> ( "Resources/test.ttf", 64 );
            timeStampFont = Contents.Load<TrueTypeFont> ( "Resources/test.ttf", 32 );
            base.Intro ( args );
        }
Example #3
0
 public override void Intro( params object [] args )
 {
     contentManager = new ResourceTable ( FileSystemManager.GetFileSystem ( "ManifestFileSystem" ) );
     contentManager.AddDefaultContentLoader ();
     //Core.Launcher.InvokeInMainThread ( () =>
     //{
         titleFont = contentManager.Load<TrueTypeFont> ( "Resources/test.ttf", 64 );
         menuFont = contentManager.Load<TrueTypeFont> ( "Resources/test.ttf", 24 );
     //} );
     logo = new Sprite ( contentManager.Load<ITexture2D> ( "Resources/Dodge/logo.png" ) );
     logoWorld = new World2 ();
     base.Intro ( args );
 }
Example #4
0
        public override void Intro( params object [] args )
        {
            Core.Window.Title = "Simple Dodge";
            Core.GraphicsDevice.ImmediateContext.BlendState = BlendState.AlphaBlend;

            Add ( InputHelper.Instance );
            InputHelper.IsKeyboardEnabled = true;
            Add ( SceneContainer = new SceneContainer ( new MenuScene () ) );
            SceneContainer.SceneTransitor = new FadeTransitor ();

            contentManager = new ResourceTable ( FileSystemManager.GetFileSystem ( "ManifestFileSystem" ) );
            fpsFont = contentManager.Load<TrueTypeFont> ( "Resources/test.ttf", 20 );

            Add ( calc = new FpsCalculator () );

            base.Intro ( args );
        }
Example #5
0
        public override void Intro( params object [] args )
        {
            Core.GraphicsDevice.ImmediateContext.BlendState = BlendState.AlphaBlend;

            contentManager = new ResourceTable ( FileSystemManager.GetFileSystem ( "ManifestFileSystem" ) );
            Texture2DContentLoader.AddDefaultDecoders ();
            AudioContentLoader.AddDefaultDecoders ();

            font = contentManager.Load<TrueTypeFont> ( "Resources/test.ttf", 24 );

            audio1 = contentManager.Load<IAudioBuffer> ( "Resources/Audio/audio1.ogg" );
            //audio2 = contentManager.Load<IAudioBuffer> ( "Resources/Audio/audio2.flac" );
            audio3 = contentManager.Load<IAudioBuffer> ( "Resources/Audio/audio3.ogg" );

            Add ( InputHelper.Instance );

            base.Intro ( args );
        }
Example #6
0
        public override void Intro( params object [] args )
        {
            Core.GraphicsDevice.ImmediateContext.BlendState = BlendState.AlphaBlend;

            Core.Window.Title = "Information Viewer";

            contentManager = new ResourceTable ( FileSystemManager.GetFileSystem ( "ManifestFileSystem" ) );
            font = contentManager.Load<TrueTypeFont> ( "Resources/test.ttf", 24 );
            font.IsPrerenderMode = true;

            Add ( InputHelper.Instance );

            infoText = string.Format (
            @"Platform Type: {0}
            Platform Version: {1}
            Machine Unique ID: {2}
            User Name: {3}

            Base Renderer: {4}
            Renderer Version: {5}
            Shader Version: {6}
            Device Vendor: {7}
            Maximum Anisotropic Level: {8}
            Is Support Geometry Shader: {9}

            ==Available Resolutions ==
            {10}",
                Core.Launcher.PlatformInformation.PlatformType,
                Core.Launcher.PlatformInformation.PlatformVersion,
                Core.Launcher.PlatformInformation.MachineUniqueIdentifier,
                Core.Launcher.PlatformInformation.UserName,

                Core.GraphicsDevice.Information.BaseRenderer,
                Core.GraphicsDevice.Information.RendererVersion,
                Core.GraphicsDevice.Information.ShaderVersion,
                Core.GraphicsDevice.Information.DeviceVendor,
                Core.GraphicsDevice.Information.MaximumAnisotropicLevel,
                Core.GraphicsDevice.Information.IsSupportGeometryShader,

                ConvertToString ( Core.GraphicsDevice.Information.AvailableScreenResolutions )
            );

            base.Intro ( args );
        }
Example #7
0
        public override void Intro( params object [] args )
        {
            Core.GraphicsDevice.ImmediateContext.BlendState = BlendState.AlphaBlend;

            contentManager = new ResourceTable ( FileSystemManager.GetFileSystem ( "ManifestFileSystem" ) );
            contentManager.AddDefaultContentLoader ();
            Texture2DContentLoader.AddDefaultDecoders ();
            sprite = contentManager.Load<Sprite> ( "Resources/test.jpg", Color.Magenta );
            font = contentManager.Load<TrueTypeFont> ( "Resources/test.ttf", 24 );

            animate = new Animate ( TimeSpan.FromSeconds ( 4 ), 400 );
            loopAnimate = new Animate ( TimeSpan.FromSeconds ( 4 ), 400 ) { IsLoopingMode = true };
            loopAnimate.Start ();
            Add ( InputHelper.Instance );

            world = new World2 ();

            base.Intro ( args );
        }
Example #8
0
 public FontNode( Font font )
 {
     this.font = font;
 }