Create BOARDEVENT_END_TURN as a transition between turns after landing on space (#25)

This commit is contained in:
xCrystal
2023-10-14 21:45:48 +02:00
parent b9ac41feb6
commit 7448da8380
3 changed files with 34 additions and 8 deletions

View File

@@ -2,20 +2,23 @@ BoardSpaceScripts:: ; used only for BANK(BoardSpaceScripts)
BlueSpaceScript::
scall ArriveToRegularSpaceScript
iftrue .done
.done
iftrue .not_landed
scall LandedInRegularSpaceScript
.not_landed
end
RedSpaceScript::
scall ArriveToRegularSpaceScript
iftrue .done
.done
iftrue .not_landed
scall LandedInRegularSpaceScript
.not_landed
end
GreySpaceScript::
scall ArriveToRegularSpaceScript
iftrue .done
.done
iftrue .not_landed
scall LandedInRegularSpaceScript
.not_landed
end
ArriveToRegularSpaceScript:
@@ -33,3 +36,12 @@ ArriveToRegularSpace:
ld hl, wDisplaySecondarySprites
res SECONDARYSPRITES_SPACES_LEFT_F, [hl]
ret
LandedInRegularSpaceScript:
callasm LandedInRegularSpace
end
LandedInRegularSpace:
ld a, BOARDEVENT_END_TURN
ldh [hCurBoardEvent], a
ret