private static void RenderConsole()
        {
            FontManager.SetFont(FontStyle.Console);

            RenderInputBox();

            if (LargeConsole)
            {
                RenderOutputBox();
            }

            RenderAutoComplete();
        }
Beispiel #2
0
        public static void Process()
        {
            Vector3 delta = new Vector3();

            if (_rightKey)
            {
                delta += new Vector3(3.0f * Game.DeltaTime, 0, 0);
            }

            if (_leftKey)
            {
                delta += new Vector3(-3.0f * Game.DeltaTime, 0, 0);
            }
            if (_upKey)
            {
                delta += new Vector3(0, 3.0f * Game.DeltaTime, 0);
            }

            if (_downKey)
            {
                delta += new Vector3(0, -3.0f * Game.DeltaTime, 0);
            }

            if (_inKey)
            {
                delta += new Vector3(0, 0, -3.0f * Game.DeltaTime);
            }

            if (_outKey)
            {
                delta += new Vector3(0, 0, 3.0f * Game.DeltaTime);
            }

            Camera.MainCamera.Position += delta;

            if (Camera.MainCamera.Position.X > 255)
            {
                Camera.MainCamera.Position = new Vector3(4.0f, 40.0f, 12.0f);
            }

            FontManager.SetColor(Color.White);
            FontManager.SetFont(FontStyle.Console);
            FontManager.PrintString(new Vector2(5f, 5f), string.Format("Position: ({0}, {1})", Camera.MainCamera.Position.X, Camera.MainCamera.Position.Y));
            FontManager.PrintString(new Vector2(5f, 720f - 12f - 5f), string.Format("Client state: {0}", Client.State));
        }