コード例 #1
0
ファイル: Kernel.cs プロジェクト: VelocityOS/Velocity
        protected override void BeforeRun()
        {
            Console.WriteLine("\n\n\nInitialising Filesystem!");
            var fs = new Sys.FileSystem.CosmosVFS();

            Sys.FileSystem.VFS.VFSManager.RegisterVFS(fs);
            Console.WriteLine("Initialised Filesystem!\n\n\n");
            Console.Clear();
            Console.WriteLine("Welcome to Velocity [v" + version + "].\n");
            Console.WriteLine("Current time: " + time.Hour() + ":" + time.Minute() + ":" + time.Second() + "\n");
            Console.WriteLine("Velocity/Cosmos comes with ABSOLUTELY NO WARRANTY,\nto the extent permitted by applicable law.\n");
        }
コード例 #2
0
        protected override void Run()
        {
            display.clear(63);
            fr.renderString(5, 5, "HI THERE. MY NAME IS PAUL.");
            fr.renderString(5, 25, time.Hour().ToString() + ":" + time.Minute().ToString() + ":" + time.Second().ToString() + "    " + fps.ToString());

            if (second != time.Second())
            {
                fps    = temp;
                temp   = 0;
                second = time.Second();
            }
            else
            {
                temp++;
            }

            display.step();
        }