From 1edadee349459e4a6c187a7005df2e5f596a2725 Mon Sep 17 00:00:00 2001 From: blondie7575 Date: Fri, 8 Jun 2018 10:49:29 -0700 Subject: [PATCH] Sprocket sprite hooked up --- gscats.2mg | Bin 819264 -> 819264 bytes player.s | 11 +++++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/gscats.2mg b/gscats.2mg index 070ce626c7d6d123d20b62abfcd4fc0d4eb94080..9c751222cc95a2a4e3eaac224032b3954a14d3ad 100644 GIT binary patch delta 180 zcmX@mV056tXoEZ}?+FzHE(V6j3>+ZFWF1y16PO4Ch{435g4F>?P_RXz`(%3 zc7%bGA%h<*i_lobDg`$REY-Y_b^AhA#_jVM87Bv_z2EM!l+lxsZ>+ZFWF1y16PO4Ch{435g4F>?P_RXz`(%3 zc7%bGA%h<*i_lobDg`$REY-Y_b^AhA#_jVa&%N|vyT?*SPe#6#3=9hC0V`X$TG@ci m_W8>gftU%1nSq!Eh*^P{4T#x+m;;D8ftYLi{AJt=Zvp@VX*m7> diff --git a/player.s b/player.s index 223ba34..4ad530c 100644 --- a/player.s +++ b/player.s @@ -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