Advertisement
Guest User

Custom Block Code

a guest
Dec 9th, 2019
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.87 KB | None | 0 0
  1.  
  2.  
  3.  
  4. db $42
  5.  
  6. JMP MarioBelow : JMP MarioAbove : JMP MarioSide
  7. JMP SpriteV : JMP SpriteH
  8. JMP Cape : JMP Fireball
  9. JMP MarioCorner : JMP MarioBody : JMP MarioHead
  10. JMP WallFeet : JMP WallBody
  11.  
  12. MarioBelow:
  13. LDA $7B ; \ If the player's x speed is greater than 46...
  14. CMP #$2E ; |
  15. BMI Label_0000 ; /
  16. LDA #$74 ; \ Spawn sprite #$74 (74 Mushroom)
  17. CLC ; |
  18. %spawn_sprite() ; /
  19. BRA Label_0001
  20. Label_0000:
  21. PHY : JSL $00F5B7 : PLY ; > Hurt the player.
  22. Label_0001: ; > --------
  23.  
  24.  
  25. MarioAbove:
  26. RTL
  27.  
  28. MarioSide:
  29. LDA $7B ; \ If the player's x speed is greater than 46...
  30. CMP #$2E ; |
  31. BMI Label_0002 ; /
  32. LDA #$74 ; \ Spawn sprite #$74 (74 Mushroom)
  33. CLC ; |
  34. %spawn_sprite() ; /
  35. BRA Label_0003
  36. Label_0002:
  37. PHY : JSL $00F5B7 : PLY ; > Hurt the player.
  38. Label_0003: ; > --------
  39.  
  40.  
  41. SpriteV:
  42. SpriteH:
  43. Cape:
  44. Fireball:
  45. RTL
  46.  
  47. MarioCorner:
  48. LDA $7B ; \ If the player's x speed is greater than 46...
  49. CMP #$2E ; |
  50. BMI Label_0004 ; /
  51. LDA #$74 ; \ Spawn sprite #$74 (74 Mushroom)
  52. CLC ; |
  53. %spawn_sprite() ; /
  54. BRA Label_0005
  55. Label_0004:
  56. PHY : JSL $00F5B7 : PLY ; > Hurt the player.
  57. Label_0005: ; > --------
  58. RTL
  59.  
  60. MarioBody:
  61. LDA $7B ; \ If the player's x speed is greater than 46...
  62. CMP #$2E ; |
  63. BMI Label_0006 ; /
  64. LDA #$74 ; \ Spawn sprite #$74 (74 Mushroom)
  65. CLC ; |
  66. %spawn_sprite() ; /
  67. BRA Label_0007
  68. Label_0006:
  69. PHY : JSL $00F5B7 : PLY ; > Hurt the player.
  70. Label_0007: ; > --------
  71. RTL
  72.  
  73. MarioHead:
  74. LDA $7B ; \ If the player's x speed is greater than 46...
  75. CMP #$2E ; |
  76. BMI Label_0008 ; /
  77. LDA #$74 ; \ Spawn sprite #$74 (74 Mushroom)
  78. CLC ; |
  79. %spawn_sprite() ; /
  80. BRA Label_0009
  81. Label_0008:
  82. PHY : JSL $00F5B7 : PLY ; > Hurt the player.
  83. Label_0009: ; > --------
  84.  
  85.  
  86. WallFeet:
  87. WallBody:
  88. RTL
  89.  
  90.  
  91.  
  92.  
  93. print ""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement