我正在制作一个基于文本的 PokeMon 冒险游戏,我想知道如何在菜单中“文本滚动”而不是制作:
cout << "MENU" << endl;
cout << "[N] New Game" << endl;
cout << "Mode: ";
cin >> option;
如果您不知道我所说的“文本滚动”是什么意思,那么这就是我想要的:
#####MENU################################# Now when I press "s" or "down" that
>[N] New Game # ">" thing will go down to where the
+[L] Load Game # "+" symbol is. And when they press
#[O] Options # "enter" they are taken to the loading
#0.0.1a # screen. This also works by pressing
########################################## the "w" or "up" keys.
有没有办法做到这一点,还是我需要一个外部库?