开发者

Visual Basic 2010 Fast Writing

I am working on developing a simple console game in Visual Basic in which the "level" is drawn out after being read from a file.

So far, I'm using

Console.ReadKey()

to check for the arrow keys and to therefore move the position of the piece on the console开发者_JAVA百科.

The problem is that the only way I know to do this is to redraw the "level" every time that the piece moves - which is relatively slow.

Is there any better way to achieve this?


Three solutions:

  1. Redraw only the changing screen chars.
  2. Skip Console functions and use WINAPI WriteConsole (a little example to use WINAPI console functions).
  3. Use Forms and draw the text into a window.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜