MonoGame-Console

Lightweight terminal emulator for MonoGame

MonoGame Console

PM> Install-Package MonoGame.Console.WindowsDX

monogameconsole-screenshot

MonoGame is an open source implementation of the Microsoft XNA 4.x Framework.

MonoGame Console - a terminal emulator (forked from XNAGameConsole by Andreas Grech) with unicode & MonoGame support.

Supported Platforms

  • Windows (DirectX)

Features

Quick Start

  • Create a XNB file with your SpriteFont or use default from repository (or Nuget) “Content” folder

  • Add the code below to your LoadContent() logic

        Services.AddService(typeof(SpriteBatch), spriteBatch);
    
    
        GameConsole console = new GameConsole(this, spriteBatch, new GameConsoleOptions
          {
              ToggleKey = 192, 
              Font = Content.Load<SpriteFont>("ConsoleFont"),
              FontColor = Color.LawnGreen,
              Prompt = "~>",
              PromptColor = Color.Crimson,
              CursorColor = Color.OrangeRed,
              BackgroundColor = new Color(Color.Black, 150),
              PastCommandOutputColor = Color.Aqua,
              BufferColor = Color.Gold
          });
    
    
        console.AddCommand("ping", a =>
        {
            // TODO your logic
            return String.Format("pong");
        });
    
  • Run game and press ‘~’ (tilda) to open console

  • Once instantiated, the GameConsole class adds itself as a Service, which means you can get access to it with the following: GameConsole console = (GameConsole) game.Services.GetService(typeof (GameConsole));

License

MonoGame Console is released under GNU GPL v3.

Related Repositories

SadConsole

SadConsole

A .NET ascii/ansi console engine written in C# for MonoGame and XNA. Create your own text roguelike (or other) games! ...

quake-console

quake-console

Quake-style console for MonoGame ...

MonoGame-Console

MonoGame-Console

Lightweight terminal emulator for MonoGame ...

monogameconsole

monogameconsole

A developer console for MonoGame games ...


Top Contributors

romanov bitdeli-chef

Releases

-   1.1 zip tar
-   1.0 zip tar