views:

13

answers:

1

Hi,

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?

+1  A: 

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.
Victor Marzo