EasyApp.ConsoleApp 1.0.0

dotnet add package EasyApp.ConsoleApp --version 1.0.0                
NuGet\Install-Package EasyApp.ConsoleApp -Version 1.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="EasyApp.ConsoleApp" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EasyApp.ConsoleApp --version 1.0.0                
#r "nuget: EasyApp.ConsoleApp, 1.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install EasyApp.ConsoleApp as a Cake Addin
#addin nuget:?package=EasyApp.ConsoleApp&version=1.0.0

// Install EasyApp.ConsoleApp as a Cake Tool
#tool nuget:?package=EasyApp.ConsoleApp&version=1.0.0                

EasyApp.ConsoleApp

A MonoGame inspired console app library

EasyApp.ConsoleApp is meant to make more interactive, frame-rate independent console app easier to make. It does this through the same syntactic structure that MonoGame (https://monogame.net/) also provides.

An Example How-To:

Firstly:

using EasyApp.ConsoleApp.net8;

You can simply create your custom console app implementation like this:

//Inherit from EasyConsoleApp, you can also limit the frames per second.
public class App : EasyConsoleApp
{
    public App() : base(fps: 30)
    {

    }

    protected override void Initialize()
    {
        //Write your own Initialize logic...
    }

    protected override void ProcessInput()
    {
        //Can be a switch statement with conditions revolving around simple keys.
    }

    protected override void Update()
    {
        //A simple update method.
    }

    protected override void Render()
    {
        //I normally just update an array of strings and draw each element.
    }
}


Running the custom app implementation:

var app = new App();
app.Run();

Not to bad, right?

License

MIT

Product Compatible and additional computed target framework versions.
.NET net8.0-windows7.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0-windows7.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 129 9/14/2024