diff --git a/ray/src/ray.tal b/ray/src/ray.tal index 7fe78f0..f56a539 100644 --- a/ray/src/ray.tal +++ b/ray/src/ray.tal @@ -51,7 +51,8 @@ BRK .Controller/button DEI DUP #10 NEQ ,&no-u JCN .player/r LDZ2 #0002 ;raycast JSR2 - .player/y STZ2 .player/x STZ2 + .player/y STZ2 + .player/x STZ2 ;update JSR2 &no-u DUP #20 NEQ ,&no-d JCN @@ -106,7 +107,7 @@ JMP2r #0080 #0000 &h DUP2 #10 SFT2 #0090 ADD2 .Screen/x DEO2 - DUP2 .player/r LDZ2 ADD2 #03ff AND2 ;ray-tile JSR2 ;draw-col JSR2 + DUP2 .player/r LDZ2 #0040 SUB2 ADD2 #03ff AND2 ;ray-tile JSR2 ;draw-col JSR2 INC2 GTH2k ,&h JCN POP2 POP2