I wanted to begin making a simple game where you must dodge various moving objects. I have it so it will set up the area around the screen, and put a "*" as the moveable character. How would I get input from the user to move the "*" This was my first idea, and I thought it would work, but it doesn't. Right now it just ends before I can move.
P.S. All of the extra spaces are so I can check each little bit of code at a time.
Code:
Thanks for your help.
P.S. All of the extra spaces are so I can check each little bit of code at a time.
Code:
ClrHome
1->A
1->B
13->C
5->D
Repeat B>25
Output(A,B,"0
B+1->B
End
Pause
Repeat A>9
Output(A,B,"0
A+1->A
End
Pause
Repeat B<2
Output(A,B,"0
B-1->B
End
Pause
Repeat A<1
Output(A,B,"0
A-1->A
End
Pause
Output(6,1,"
Pause
Output(6,26,"
Pause
Output(1,12,"
Pause
Output(10,12,"
Pause
Output(1,13,"
Pause
Output(10,13,"
Pause
Output(1,14,"
Pause
Output(10,14,"
Output(D,C,"*
While getKey=25
Output(D,C,"
D-1->D
Output(D,C,"*
End
Pause
Thanks for your help.