Advertisement
Guest User

Untitled

a guest
May 26th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. ;move lotus positions to the pollen
  2. LDA #!lotuspollen_id
  3. STA $00
  4. LDA sprite.x_pos,x
  5. STA $02
  6. LDA sprite.y_pos,x
  7. STA $04
  8. LDA sprite.z_pos,x
  9. CLC
  10. ADC #$0003
  11. STA $06
  12.  
  13. JSR spawn_sprite
  14. ; $00: sprite number
  15. ; $02: x position
  16. ; $04: y position
  17. ; $06: z position
  18. ; -> X: index
  19. LDY sprite.curr_index ;get back own index into Y
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27. LDX sprite.curr_index
  28. RTS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement