first pass at auto move

This commit is contained in:
alpine9000
2016-05-07 09:39:54 +10:00
parent a304a4b614
commit ce21d65776
4 changed files with 115 additions and 17 deletions
+11 -2
View File
@@ -54,13 +54,22 @@ DetectItemCollisions:
add.w #ITEM_SPRITE_Y_COLLISION_OFFSET,d2
cmp.w d2,d4
bne .skip
cmpi.w #ITEM_SPRITE_ARROW_INDEX,ITEM_SPRITE(a1)
bge .arrowCollision
.coinCollision:
bsr DeleteItemSprite
lea coinCounterText,a0
jsr IncrementCounter
bsr RenderCoinScore
PlaySound Chaching
rts
.arrowCollision:
bsr DeleteItemSprite
jsr SpriteEnableAuto
rts
.skip:
add.l #ITEM_STRUCT_SIZE,a1
dbra d1,.loop