我不知道如何解释这个......
基本上我希望能够在控制台窗口中编写文本行,就像用于编写对话的旧RPG一样,一次一个字符.这个游戏口袋妖怪神秘地牢(包含破坏者btw)的例子:http://www.youtube.com/watch?v = i29juf2e92c
基本上就像对话的显示方式一样.
编辑:还应该提一下,我将要从文件中读取文本,并且我想一次在该文件中写入一个字符.
您可以使用一次Console.Write打印单个字符而WriteLine不会提供换行符,并且Thread.Sleep可以在字符之间短暂暂停.例如:
using System;
using System.Threading;
class Program
{
static void Main(string[] args)
{
string text = "This will be printed one character at a time";
foreach (char c in text)
{
Console.Write(c);
Thread.Sleep(50);
}
}
}
Run Code Online (Sandbox Code Playgroud)