Joystick position: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 724:
Assuming a Kempston joystick interface, fairly standard at the time. Rewriting for the Sinclair Interface 2 involves changing line 80 to 80 LET t=IN 61438, replacing all numbers in the next five lines with 192-said number and reversing each pair of directions.
 
<lang ZX Spectrum Basiczxbasic>10 DIM o$(5)
20 LET xm=0: LET xx=31: REM screen limits
30 LET ym=0: LET yx=18
77

edits