Hello, I'm new around here.
I started learning C++ from a book about two weeks ago. I've also learned Pascal (at school) so I was familiar with some of C++ aspects, such as loops, if statements, etc...
I'm using Microsot visual C++ and i'm not programming in MFC or something like that, but in a dos console.
Anyway, I started making a simple (classic) game, in which the user controls a spacecraft, and above of him there are aliens that try to kill him. Of course I don't use any graphics becuase I don't know how. Anyway, my questions are:
1. How can I tell the compiler to go to certain x,y coordinates? (I want to "print" the spacecraft in a simple letter, and it has to be in the bottom of the window, in the center).
2. How can the compiler check if the user pressed a key, such as space, left, right...?
3. I heard from a friend that, in order to make the aliens move, I need to clear the screen and print them again, after they moved. How do I do that?
4. Most important, I want to make the screen size constant, becuase I don't want the user to change it. How do I do that?
Thank you



LinkBack URL
About LinkBacks


