Advertisement
Guest User

Untitled

a guest
Nov 7th, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Sonic_Init: ; Routine 0
  2.         addq.b  #2,routine(a0)      ; => Obj01_Control
  3.         move.b  #$13,y_radius(a0)   ; this sets Sonic's collision height (2*pixels)
  4.         move.b  #9,x_radius(a0)
  5.         move.b  #$13,default_y_radius(a0)
  6.         move.b  #9,default_x_radius(a0)
  7.         move.l  #Map_Sonic,mappings(a0)
  8.         move.w  #$100,priority(a0)
  9.         move.b  #$18,width_pixels(a0)
  10.         move.b  #$18,height_pixels(a0)
  11.         move.b  #4,render_flags(a0)
  12.         move.b  #0,character_id(a0)
  13.         move.w  #$600,Sonic_Knux_top_speed-Sonic_Knux_top_speed(a4) ; top speed
  14.         move.w  #$C,Sonic_Knux_acceleration-Sonic_Knux_top_speed(a4) ; acceleration
  15.         move.w  #$80,Sonic_Knux_deceleration-Sonic_Knux_top_speed(a4) ; deceleration
  16.  
  17. Tails_Init:
  18.         addq.b  #2,5(a0)
  19.         move.b  #$F,$1E(a0)
  20.         move.b  #9,$1F(a0)
  21.         move.b  #$F,$44(a0)
  22.         move.b  #9,$45(a0)
  23.         move.l  #Map_Tails,$C(a0)
  24.         move.w  #$100,8(a0)
  25.         move.b  #$18,7(a0)
  26.         move.b  #$18,6(a0)
  27.         move.b  #$84,4(a0)
  28.         move.b  #1,$38(a0)
  29.         move.w  #$600,(a4) ; top speed
  30.         move.w  #$C,2(a4) ; acceleration
  31.         move.w  #$80,4(a4) ; deceleration
  32.  
  33. Knuckles_Init:
  34.         addq.b  #2,5(a0)
  35.         move.b  #$13,$1E(a0)
  36.         move.b  #9,$1F(a0)
  37.         move.b  #$13,$44(a0)
  38.         move.b  #9,$45(a0)
  39.         move.l  #Map_Knuckles,$C(a0)
  40.         move.w  #$100,8(a0)
  41.         move.b  #$18,7(a0)
  42.         move.b  #$18,6(a0)
  43.         move.b  #4,4(a0)
  44.         move.b  #2,$38(a0)
  45.         move.w  #$600,(a4) ; top speed
  46.         move.w  #$C,2(a4) ; acceleration
  47.         move.w  #$80,4(a4) ; deceleration
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement