jSherz
jSherz

Reputation: 927

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.

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?

Upvotes: 0

Views: 138

Answers (1)

Victor Marzo
Victor Marzo

Reputation: 731

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.

Upvotes: 1

Related Questions