控制台中角色在圆圈中的移动 [英] movement of character in circle in console
本文介绍了控制台中角色在圆圈中的移动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在c#控制台中编写代码,以便可以在一个圆圈内移动字符.
How can i write code in c# console so that I can move a character within a circle.
推荐答案
使用System.Console.SetCursorPosition
将光标移至已写入的位置文本,以覆盖它并更改角色的位置:
http://msdn.microsoft.com/en-us/library/system.console. setcursorposition.aspx [ ^ ].
—SA
UseSystem.Console.SetCursorPosition
to move your cursor over already written text, to overwrite it and change the position of your character:
http://msdn.microsoft.com/en-us/library/system.console.setcursorposition.aspx[^].
—SA
这篇关于控制台中角色在圆圈中的移动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文