Center camera

This commit is contained in:
neauoire 2022-09-11 09:41:14 -07:00
parent 37656fa799
commit 0fe97c02e4
1 changed files with 3 additions and 2 deletions

View File

@ -51,7 +51,8 @@ BRK
.Controller/button DEI .Controller/button DEI
DUP #10 NEQ ,&no-u JCN DUP #10 NEQ ,&no-u JCN
.player/r LDZ2 #0002 ;raycast JSR2 .player/r LDZ2 #0002 ;raycast JSR2
.player/y STZ2 .player/x STZ2 .player/y STZ2
.player/x STZ2
;update JSR2 ;update JSR2
&no-u &no-u
DUP #20 NEQ ,&no-d JCN DUP #20 NEQ ,&no-d JCN
@ -106,7 +107,7 @@ JMP2r
#0080 #0000 #0080 #0000
&h &h
DUP2 #10 SFT2 #0090 ADD2 .Screen/x DEO2 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 INC2 GTH2k ,&h JCN
POP2 POP2 POP2 POP2