repeat
k:=GetKeyPressed;
e:=KeyToAction(k)
if e = GA_UP then
y:=y-1;
if e = GA_DOWN then
y:=y+1;
if e = GA_RIGHT then
x:=x+1;
if e = GA_LEFT then
x:=x-1;
DrawImage(cusror,x,y);
if (x=TX)and(y=TY) then //TX, TY - координаты цели
DrawText('text',0,0);
repaint;
Delay(100);
until k = KE_KEY0;
Как-то так.
В чем сложность заключается?
UPD: Про задержку забыл