kandi background
Explore Kits

SadConsole | NET ascii/ansi console engine written | Game Engine library

 by   Thraka C# Version: 9.2.2 License: MIT

 by   Thraka C# Version: 9.2.2 License: MIT

Download this library from

kandi X-RAY | SadConsole Summary

SadConsole is a C# library typically used in Gaming, Game Engine applications. SadConsole has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.
SadConsole is a generic library that emulates old-school console game systems. It provides command prompt-style graphics where one or more tile textures are used to represent an ASCII character set. Console's are made up of a grid of cells, each of which can have its own foreground, background, glyph, and special effect applied to it. While SadConsole is a generic library that doesn't provide any rendering capabilities, "host" libraries are provided that add renderers to SadConsole. The two hosts provided by this library are for MonoGame and SFML.
Support
Support
Quality
Quality
Security
Security
License
License
Reuse
Reuse

kandi-support Support

  • SadConsole has a medium active ecosystem.
  • It has 946 star(s) with 115 fork(s). There are 60 watchers for this library.
  • There were 3 major release(s) in the last 12 months.
  • There are 11 open issues and 140 have been closed. On average issues are closed in 93 days. There are no pull requests.
  • It has a neutral sentiment in the developer community.
  • The latest version of SadConsole is 9.2.2
SadConsole Support
Best in #Game Engine
Average in #Game Engine
SadConsole Support
Best in #Game Engine
Average in #Game Engine

quality kandi Quality

  • SadConsole has 0 bugs and 0 code smells.
SadConsole Quality
Best in #Game Engine
Average in #Game Engine
SadConsole Quality
Best in #Game Engine
Average in #Game Engine

securitySecurity

  • SadConsole has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
  • SadConsole code analysis shows 0 unresolved vulnerabilities.
  • There are 0 security hotspots that need review.
SadConsole Security
Best in #Game Engine
Average in #Game Engine
SadConsole Security
Best in #Game Engine
Average in #Game Engine

license License

  • SadConsole is licensed under the MIT License. This license is Permissive.
  • Permissive licenses have the least restrictions, and you can use them in most projects.
SadConsole License
Best in #Game Engine
Average in #Game Engine
SadConsole License
Best in #Game Engine
Average in #Game Engine

buildReuse

  • SadConsole releases are available to install and integrate.
  • SadConsole saves you 3857 person hours of effort in developing the same functionality from scratch.
  • It has 15280 lines of code, 0 functions and 419 files.
  • It has low code complexity. Code complexity directly impacts maintainability of the code.
SadConsole Reuse
Best in #Game Engine
Average in #Game Engine
SadConsole Reuse
Best in #Game Engine
Average in #Game Engine
Top functions reviewed by kandi - BETA

Coming Soon for all Libraries!

Currently covering the most popular Java, JavaScript and Python libraries. See a SAMPLE HERE.
kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.

SadConsole Key Features

Show any number of consoles.

Uses graphical tile-based images to build out an ASCII-character font with support for more than 256 characters.

Use more than one font file. However, each console is restricted to a single font.

Independently controlled entities for game objects.

Keyboard and Mouse support.

Text UI control framework.

Windowing capabilities.

Importers for DOS ANSI files, TheDraw text fonts, RexPaint, and Playscii.

Animation support.

Translating images to text-blocks.

Highly customizable system.

Community Discussions

Trending Discussions on SadConsole
  • How can I make this var be accessible by other classes?
Trending Discussions on SadConsole

QUESTION

How can I make this var be accessible by other classes?

Asked 2020-Aug-23 at 16:55

So I'm making a simple game based on the SadConsole library and there is this var which position I want to reset when a function is called by a different class. But I am not able to access it. Any ways of fixing it?

using System;
using System.Collections.Generic;
using System.Text;
using SadConsole.Components;
using SadConsole;
using SadConsole.Themes;
using SadConsole.Controls;
using Console = SadConsole.Console;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace SAD
{
    class MainConsole: Console
    {
        
        public MainConsole() : base(80,25)
        {
            Random random = new Random();

            var console = new Console(80, 25);
            var Control = new ControlsConsole(80,25);
            Children.Add(Control);
            console.IsVisible = true;
            var button = new SadConsole.Controls.Button(10, 5) // THIS VAR. I WANT ITS POSITION TO BE RESET BUT I CAN ACCESS IT
            {
                Text = "Press",
                Position = new Point(5, 5),
                Theme = new ButtonLinesTheme()
            };
            button.Click += (s, a) => button.Position = new Point(random.Next(1, 81), random.Next(1,26));
            Control.Add(button);

           
        }
    }
}

ANSWER

Answered 2020-Aug-23 at 16:55

Instead of declaring the variable inside your constructor, you should make it a public -- this will make it available also outside your assembly -- or internal -- this will make it available for all classes within the same assembly -- property.

using foo;
...

namespace SAD {

    class MainConsole: Console
    {

        public SadConsole.Controls.Button TheButton {get; private set;}
        public MainConsole() : base(80,25) {
           ...
           TheButton = new SadConsole.Controls.Button(10,5) {...}
        }
    }
}

The private setter ensures, that TheButton can only be set from within the MainConsole class, but the getter is public so once, the property is set, you can access TheButton from anywhere else in the code, where you have an instance of your MainConsole class.

Source https://stackoverflow.com/questions/63549473

Community Discussions, Code Snippets contain sources that include Stack Exchange Network

Vulnerabilities

No vulnerabilities reported

Install SadConsole

You can download it from GitHub.

Support

For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .

DOWNLOAD this Library from

Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 430 million Knowledge Items
Find more libraries
Reuse Solution Kits and Libraries Curated by Popular Use Cases

Save this library and start creating your kit

Explore Related Topics

Share this Page

share link
Reuse Pre-built Kits with SadConsole
Compare Game Engine Libraries with Highest Support
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 430 million Knowledge Items
Find more libraries
Reuse Solution Kits and Libraries Curated by Popular Use Cases

Save this library and start creating your kit

  • © 2022 Open Weaver Inc.