在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:ollelogdahl/ConsoleGameEngine开源软件地址:https://github.com/ollelogdahl/ConsoleGameEngine开源编程语言:C# 100.0%开源软件介绍:ConsoleGameEngineC# Graphics Library for drawing graphics in Windows Command PromptOlle Logdahl, 24 November 2018 ConsoleGameEngine is a C# library that wraps around the Installation / Getting Started
After installing you'll have to:
Why?I created this Library to make graphics more available for beginners and hobbyists alike. The first programs you create are usually made in the console, but when users want to migrate to actual graphics there is a steep learning curve. My ambition with this library is to depricate the need for psuedo-graphics in the console, usually done by moving the cursor, writing a short string and clearing the actual screen. Not only is that solution unintuitive in the long run, but also highly inefficient. Uses
Does the last apply to you? Then sorry, this is not the library you are looking for. Usage / FeaturesLibrary contains two main classes,
ConsoleEngineIs used to draw to the screen, replacement for the using ConsoleGameEngine;
...
Engine = new ConsoleEngine(windowWidth, windowHeight, fontWidth, fontHeight);
Engine.SetPixel(new Point(8, 8), ConsoleCharacter.Full, 15);
ConsoleGameKeeps an instance of the Note Not neccessary, you could use the ConsoleEngine as is using ConsoleGameEngine;
...
new AppName.Construct(windowWidth, windowHeight, fontWidth, fontHeight, FramerateMode.Unlimited);
class AppName : ConsoleGame {
public override void Create() {
}
public override void Update() {
}
public override void Render() {
}
} hereTry out some example games overNotes
Links
LicensingThis project, and all code it contains, is licensed under The Unlicense and can be read here. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论