hi
i wanna write a code that permits the user to shift the object to all sides.
for instance the keys are "a "for lest "s" for down "d" for right and finaly "w"w for up.i developed a solution for this but it doesnt run correctly;
#include <stdio.h>
#include <conio.h>
int i,x,y;
char key;
void main() {
.
.
.
key = getch();
if (key=' w ') {
movey++
}
.
.
.
and goes on like that
is that correct?or what should i do?



LinkBack URL
About LinkBacks


