ThomasSpeedrunner icon

Unfinished Bowlton Code - Updated

ThomasSpeedrunner | PRO | 05/06/13 02:53:22 AM UTC | 0 ⭐ | 337 👁️ | Never ⏰ | []
text |

1.2 KB

|

None

|

0 👍

/

0 👎

; ----------------------------------------------------------------------------
; Object 10 - Bowlton (spiked rolling badnik)
; ----------------------------------------------------------------------------
Obj10:
	moveq	#0,d0
	move.b	routine(a0),d0
	move.w	Obj10_Index(pc,d0.w),d1
	jsr	Obj10_Index(pc,d0.w)
; ============================================================================
Obj10_Index:	offsetTable
		offsetTableEntry.w Obj10_Init		; 0 - main badnik
		offsetTableEntry.w Obj10_Roll		; 2 - rolling
		offsetTableEntry.w Obj10_HitWall	; 4 - hitting a wall
; ============================================================================
Obj10_Init:
	addq.b	#2,routine(a0)
	move.l	#Obj10_MapUnc_2D441,mappings(a0)
	move.w	#make_art_tile(ArtTile_ArtNem_Bowlton,0,0),art_tile(a0)
	move.b	#4,render_flags(a0)
	move.w	#200,priority(a0)
	move.b	#$B,collision_flags(a0)
	move.b	#$12,width_pixels(a0)
	move.w	#-$100,x_vel(a0)
 ; ============================================================================
Obj10_Roll:
	rts
 ; ============================================================================
 Obj10_HitWall:
	neg.w	x_vel(a0)
	move.w	#$BD,d0				; hammer sound
	jsr	(PlaySound).l

Comments