Cleaned up some magic numbers

This commit is contained in:
blondie7575 2023-12-23 16:47:20 -07:00
parent 1dde996981
commit 11b2cc9048

View File

@ -435,7 +435,7 @@ move:
beq moveParamsPlayer0 beq moveParamsPlayer0
lda #-1 lda #-1
sta placeGameObjectRightOffset sta placeGameObjectRightOffset
lda #GAMEOBJECTWIDTH-7 lda #GAMEOBJECTWIDTH-(GAMEOBJECTWIDTH/2-1)
sta placeGameObjectLeftOffset sta placeGameObjectLeftOffset
movePerformMove: movePerformMove:
@ -443,7 +443,7 @@ movePerformMove:
bra moveCleanup bra moveCleanup
moveParamsPlayer0: moveParamsPlayer0:
lda #-6 lda #-(GAMEOBJECTWIDTH/2-2)
sta placeGameObjectRightOffset sta placeGameObjectRightOffset
lda #GAMEOBJECTWIDTH-2 lda #GAMEOBJECTWIDTH-2
sta placeGameObjectLeftOffset sta placeGameObjectLeftOffset