
No incrementa el X? O no se puede usar esta funcion? URGENTE
Publicado por Manuel (12 intervenciones) el 04/11/2013 16:18:50
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
program prueba;
uses crt,graph;
var
mov:char;
x,y:word;
modo,driver:integer;
begin
Driver := VGA;
Modo := VGAHi;
InitGraph(Driver, Modo, 'C:FPC');
x:=40;
y:=20;
repeat
outtextxy(X,Y,'_________');
mov:=readkey;
if (x>0) and (x<74) then
if (mov='M') then
x:=x+1;
outtextxy(X,Y,'_________');
Clrscr;
IF (X>1)
then
if (mov='K')
then
x:=x-1;
outtextxy(X,Y,'_________');
Clrscr;
until(mov='s');
end.
CUANDO QUIERO MOVER LA LINEA NO SE MUEVE!.. :(((
Valora esta pregunta


0