Error xy is {#,-#}
- Posted by Paul Kerslake <paulk at UNISERVE.COM> Sep 24, 2000
- 405 views
------=_NextPart_000_0007_01C0266D.2D14C300 charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi all, Well, here's the problem, Euhporia says: Error xy is {#,-#}: include image.e include get.e include graphics.e integer gmode,desc sequence jetmove integer ix,iy ix=3D1 iy=3D1 use_vesa(1) gmode=3Dgraphics_mode(256) jetmove=3Dread_bitmap("jetmove.BMP") all_palette(jetmove[1]/4) puts(1,"f for ->...j for <- ...u for /\\....d for \\/") while 1 do desc=3Dwait_key() if desc =3D'f' then ix+=3D4 display_image({ix,iy},jetmove[2]) elsif desc=3D'j' then ix-=3D4 display_image({ix,iy},jetmove[2]) elsif desc=3D'u' then iy+=3D4 display_image({ix,iy},jetmove[2]) elsif desc=3D'd' then iy-=3D4 display_image({ix,iy},jetmove[2]) end if end while Should ix and iy be a sequence? Also, how can I speed up the = movement of the image without making it choppy? Oh, yes, one more thing, = is that the proper layout of the if/elsif correct or should there be = some more tabs. Das Svendanya Commandant Thomas ------=_NextPart_000_0007_01C0266D.2D14C300 charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content=3D"text/html; charset=3Diso-8859-1" = http-equiv=3DContent-Type> <META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>Hi all,</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>Well, here's the problem, Euhporia = says: Error xy=20 is {#,-#}:</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><FONT size=3D1><FONT size=3D2>include=20 image.e<BR>include get.e<BR>include = graphics.e</FONT></FONT></FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2><FONT size=3D1><FONT size=3D2>integer=20 gmode,desc<BR>sequence jetmove<BR>integer=20 <DIV> </DIV> <DIV><FONT face=3DArial size=3D2><FONT size=3D1><FONT=20 DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2><FONT size=3D1><FONT=20 1]/4)</FONT></FONT></FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2><FONT size=3D1><FONT size=3D2>puts(1,"f = for ->...j=20 for <- ...u for /\\....d for \\/")</FONT></FONT></FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2><FONT size=3D1><FONT size=3D2>while 1=20 do<BR>desc=3Dwait_key()<BR>if desc =3D'f' = then<BR> =20 ix+=3D4<BR> =20 display_image({ix,iy},jetmove[2])<BR> elsif desc=3D'j' = then<BR> ix-=3D4<BR> =20 display_image({ix,iy},jetmove[2])<BR> elsif desc=3D'u' = then<BR> iy+=3D4<BR> =20 =20 elsif desc=3D'd'=20 ;=20 bsp;=20 display_image({ix,iy},jetmove[2])<BR>end if<BR>end=20 while</FONT></FONT></FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2><FONT size=3D1><FONT = size=3D2><BR> =20 Should ix and iy be a sequence? Also, how can I speed up the movement of = the=20 image without making it choppy? Oh, yes, one more thing, is that the = proper=20 layout of the if/elsif correct or should there be some more=20 tabs.</FONT></FONT></FONT></DIV> <DIV><FONT face=3DArial size=3D2><FONT = size=3D1></FONT></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><FONT size=3D1><FONT size=3D2>Das=20 Svendanya</FONT></FONT></FONT></DIV> <DIV><FONT face=3DArial size=3D2><FONT size=3D1><FONT = size=3D2>Commandant=20 Thomas</FONT></DIV> ------=_NextPart_000_0007_01C0266D.2D14C300--