![](smile.gif)
commands.....
Hey, I''ve just started in c++ . Did one of those quick get-the- hang-of-it books. Now I read here that the best game to begin with is tetris. So I did some brainstorming and decided that a couple of pixels have to go down, and that there has to be some input from cursor left and cursor right. Now, if someone could tell me what the commands for pixels, movement and keyboard input are, I would be ever gratefull....
Happy coding
![](smile.gif)
OUCH!
-Pac "The thing I like about friends in my classes is that they can't access my private members directly." "When listening to some one tell about their problem (whether it's code or not), don't listen to what went right or wrong, but what they assumed....."
either search on the web or get another quick get-the-hang-of-it books.
Subjects you should be interested in are:
If you are using windows:
DirectX (DirectInput and Direct3d or DirectDraw)
Windows programming
Windows GDI
If you are using !windows:
Opengl
I recommend DirectX to start with.
Loads of tutorials in the tutorials section...
Happy reading![](smile.gif)
DeVore
Subjects you should be interested in are:
If you are using windows:
DirectX (DirectInput and Direct3d or DirectDraw)
Windows programming
Windows GDI
If you are using !windows:
Opengl
I recommend DirectX to start with.
Loads of tutorials in the tutorials section...
Happy reading
![](smile.gif)
DeVore
here's the code:
if (movepixel)
pixel.y -= 1;
else
pixel.y -= 0;
if (keyboard.pushleft)
pixel.x += 1;
if (keyboard.pushright)
pixel.x += -1;
no but really do what DeVore suggests. I think you don't have a firm grasp on the sitution yet, so reading some more will help.
Edited by - Pactuul on April 10, 2001 10:35:50 AM
-Pac "The thing I like about friends in my classes is that they can't access my private members directly." "When listening to some one tell about their problem (whether it's code or not), don't listen to what went right or wrong, but what they assumed....."
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement