enemy_number .rs 1 enemy_frame .rs 4 enemy_animation .rs 4 enemy_hp .rs 4 enemy_speed .rs 4I
enemyTypes: .word demon,flying_eyeWhere each value for the type is something I need. I think this would work but then how do I get these values? I am thinking I would have to have another variable like:
demon: .db $02,$05,$06...
flying_eye: .db $04,$02,$05...
enemyType .rs 4 enemyType_ptr .rs 2but how would you set this? If each .word is an address (IE demon = $0010 or something) would I have to do:
;set enemy type to flying_eye LDX enemy_number LDA $01 STA enemyType,x ;get to the enemy type values LDA enemyType,x TAX LDA enemyTypes,x STA enemyType_ptr LDA enemyTypes+1,x STA enemyType_ptr+1It would seems that this routine would get me the address of the correct starting values (maybe) but now I am lost on how to get what I need. I am not sure if I am even doing this correct. Any advise would be greatly appreciated.
gauauu: look, we all paid $10K at some point in our lives for the privilege of hanging out with Kevin