ThomasSpeedrunner

Bowlton Code Unfinished

May 5th, 2013
428
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. ; ----------------------------------------------------------------------------
  2. ; Object D0 - Bowlton (spiked rolling badnik)
  3. ; ----------------------------------------------------------------------------
  4. ; OST Variables:
  5. ObjD0_initial_x_pos = objoff_30 ; word
  6.  
  7. ; ============================================================================
  8. ObjD0:
  9. moveq #0,d0
  10. move.b routine(a0),d0
  11. move.w ObjD0_Index(pc,d0.w),d1
  12. jsr ObjD0_Index(pc,d0.w)
  13. ; ============================================================================
  14. ObjD0_Index: offsetTable
  15. offsetTableEntry.w ObjD0_Init ; 0 - main badnik
  16. offsetTableEntry.w ObjD0_RollLeft ; 2 - rolling to left
  17. offsetTableEntry.w ObjD0_HitWall ; 4 - hitting a wall
  18. offsetTableEntry.w ObjD0_RollRight ; 6 - rolling to right
  19. ; ============================================================================
  20. ObjD0_Init:
  21. addq.b #2,routine(a0)
  22. move.l #ObjD0_MapUnc_2D441,mappings(a0)
  23. move.w #make_art_tile(ArtTile_ArtNem_Bowlton,0,0),art_tile(a0)
  24. move.b #4,render_flags(a0)
  25. move.w #200,priority(a0)
  26. move.b #$B,collision_flags(a0)
  27. move.b #$12,width_pixels(a0)
  28.  
  29. JmpToD0_MarkObjGone
  30. jmp (MarkObjGone).l
Advertisement
Add Comment
Please, Sign In to add comment