Sprocket sprite hooked up

This commit is contained in:
blondie7575 2018-06-08 10:49:29 -07:00
parent 85dd7a6bfd
commit 1edadee349
2 changed files with 7 additions and 4 deletions

Binary file not shown.

View File

@ -19,8 +19,9 @@ playerData:
.word 2 ; Power
.word 100 ; Anger
.byte 8,"SPROCKET " ; Name
.word 1 ; Base Sprite
.repeat 108
.repeat 106
.byte 0 ; Padding to 256-byte boundary
.endrepeat
@ -36,8 +37,9 @@ playerData:
.word 2 ; Power
.word 100 ; Anger
.byte 8,"TINKER " ; Name
.word 0 ; Base Sprite
.repeat 108
.repeat 106
.byte 0 ; Padding to 256-byte boundary
.endrepeat
@ -45,6 +47,7 @@ PD_ANGLE = 132
PD_POWER = 134
PD_ANGER = 136
PD_NAME = 138
PD_BASESPRITE = 148
PD_SIZE = 256
.macro PLAYERPTR_Y
@ -204,12 +207,12 @@ renderPlayers:
lda #playerData
sta PARAML0
lda #0
lda playerData+PD_BASESPRITE
jsr renderGameObject
lda #playerData+PD_SIZE
sta PARAML0
lda #0
lda playerData+PD_SIZE+PD_BASESPRITE
jsr renderGameObject
RESTORE_AXY