Skip to content

Commit

Permalink
Solitaire: made hitbox areas a bit more forgiving when dropping
Browse files Browse the repository at this point in the history
  • Loading branch information
sik committed Jun 6, 2017
1 parent 6e4aa89 commit 7fc8abb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
Binary file modified indigo.bin
Binary file not shown.
Binary file modified source/kernel/blob/rom_fs.blob
Binary file not shown.
13 changes: 9 additions & 4 deletions source/solitaire/cards.68k
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,14 @@ DropCards:
move.b d7, d0

syscall OS_GETEVENTXY ; Check in which region it landed
cmp.w #7, d6
move.w a6, d7 ; Recalculating the tile-based
move.w a5, d6 ; coordinates in order to be a bit
addq.w #4, d7 ; more forgiving
addq.w #4, d6
asr.w #3, d7
asr.w #3, d6

cmp.w #8, d6
blo.s @ReturnIt

;----------------------------------------------------------------------------
Expand All @@ -242,9 +249,7 @@ DropCards:
blt @ReturnIt
and.l #$FFFF, d7
divu.w #5, d7
cmp.l #4<<16, d7
bhs @ReturnIt
cmp.b #6, d7
cmp.w #6, d7
bhi @ReturnIt

move.b d7, d0 ; Drop on this pile!
Expand Down

0 comments on commit 7fc8abb

Please sign in to comment.