Example #1
0
        public override void Intro( params object [] args )
        {
            LiqueurSystem.Window.Title = "Simple Dodge";
            LiqueurSystem.GraphicsDevice.BlendState = true;
            LiqueurSystem.GraphicsDevice.BlendOperation = BlendOperation.AlphaBlend;

            Add ( InputHelper.CreateInstance () );
            InputHelper.IsKeyboardEnabled = true;
            Add ( SceneContainer = new SceneContainer ( new MenuScene () ) );

            contentManager = new ContentManager ( FileSystemManager.GetFileSystem ( "ManifestFileSystem" ) );
            contentManager.AddDefaultContentLoader ();
            LiqueurSystem.Launcher.InvokeInMainThread ( () =>
            {
                fpsFont = contentManager.Load<TrueTypeFont> ( "Test.Game.Dodge.Resources.GameFont.ttf", 20 );
            } );

            FpsCalculator calc;
            Add ( calc = new FpsCalculator () );
            calc.DrawEvent += ( object sender, GameTimeEventArgs e ) =>
            {
                string fpsString = string.Format ( "Update FPS:{0:0.00}\nRender FPS:{1:0.00}", calc.UpdateFPS, calc.DrawFPS );
                fpsFont.DrawFont ( fpsString, Color.White,
                    LiqueurSystem.GraphicsDevice.ScreenSize - fpsFont.MeasureString ( fpsString ) - new Vector2 ( 10, 10 ) );
            };

            base.Intro ( args );
        }
Example #2
0
 public override void Intro( params object [] args )
 {
     contentManager = new ContentManager ( FileSystemManager.GetFileSystem ( "ManifestFileSystem" ) );
     contentManager.AddDefaultContentLoader ();
     LiqueurSystem.Launcher.InvokeInMainThread ( () =>
     {
         titleFont = contentManager.Load<TrueTypeFont> ( "Test.Game.Dodge.Resources.GameFont.ttf", 64 );
         menuFont = contentManager.Load<TrueTypeFont> ( "Test.Game.Dodge.Resources.GameFont.ttf", 24 );
     } );
     base.Intro ( args );
 }
Example #3
0
        public override void Intro( params object [] args )
        {
            contentManager = new ContentManager ( FileSystemManager.GetFileSystem ( "ManifestFileSystem" ) );
            contentManager.AddDefaultContentLoader ();

            audio1 = contentManager.Load<IAudio> ( "Test.Game.PlaySound.Resources.test1.ogg" );
            audio2 = contentManager.Load<IAudio> ( "Test.Game.PlaySound.Resources.test2.ogg" );

            font = contentManager.Load<TrueTypeFont> ( "Test.Game.PlaySound.Resources.GameFont.ttf", 20 );

            Add ( InputHelper.CreateInstance () );

            base.Intro ( args );
        }
Example #4
0
        public override void Intro( params object [] args )
        {
            LiqueurSystem.GraphicsDevice.BlendState = true;
            LiqueurSystem.GraphicsDevice.BlendOperation = BlendOperation.AlphaBlend;

            LiqueurSystem.Window.Title = "Information Viewer";

            contentManager = new ContentManager ( FileSystemManager.GetFileSystem ( "ManifestFileSystem" ) );
            contentManager.AddDefaultContentLoader ();
            LiqueurSystem.Launcher.InvokeInMainThread ( () =>
            {
                font = contentManager.Load<TrueTypeFont> ( "Test.Game.InfoViewer.Resources.GameFont.ttf", 20 );
            } );

            Add ( InputHelper.CreateInstance () );

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

            Base Renderer: {4}
            Renderer Version: {5}
            Maximum Anisotropic Level: {6}",
                LiqueurSystem.Launcher.PlatformInformation.PlatformType,
                LiqueurSystem.Launcher.PlatformInformation.PlatformVersion,
                LiqueurSystem.Launcher.PlatformInformation.MachineUniqueIdentifier,
                LiqueurSystem.Launcher.PlatformInformation.UserName,

                LiqueurSystem.GraphicsDevice.BaseRenderer,
                LiqueurSystem.GraphicsDevice.RendererVersion,
                LiqueurSystem.GraphicsDevice.MaximumAnisotropicLevel
            );

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