Initial delay mode code.
This commit is contained in:
parent
61ef24a9e8
commit
c024598ce5
|
@ -361,6 +361,9 @@ CanPieceFit:
|
||||||
|
|
||||||
|
|
||||||
TrySpawnPiece::
|
TrySpawnPiece::
|
||||||
|
; Always reset these for a new piece.
|
||||||
|
ldh a, [hCurrentLockDelay]
|
||||||
|
ldh [hCurrentLockDelayRemaining], a
|
||||||
ldh a, [hCurrentFramesPerGravityTick]
|
ldh a, [hCurrentFramesPerGravityTick]
|
||||||
ldh [hTicksUntilG], a
|
ldh [hTicksUntilG], a
|
||||||
|
|
||||||
|
@ -771,6 +774,9 @@ FieldProcess::
|
||||||
|
|
||||||
|
|
||||||
.postmove
|
.postmove
|
||||||
|
; TODO: Do we need to reset the lock timer?
|
||||||
|
; TODO: Do we need to decrement the lock timer?
|
||||||
|
; TODO: What tile do we use to draw the piece?
|
||||||
|
|
||||||
|
|
||||||
; Draw the piece.
|
; Draw the piece.
|
||||||
|
@ -791,7 +797,6 @@ FieldProcess::
|
||||||
pop hl
|
pop hl
|
||||||
pop de
|
pop de
|
||||||
call DrawPiece
|
call DrawPiece
|
||||||
|
|
||||||
ret
|
ret
|
||||||
|
|
||||||
ENDC
|
ENDC
|
||||||
|
|
|
@ -248,7 +248,12 @@ pieceInMotionMode:
|
||||||
ld [wMode], a
|
ld [wMode], a
|
||||||
|
|
||||||
; Do we go into delay state?
|
; Do we go into delay state?
|
||||||
; TODO
|
ldh a, [hCurrentLockDelayRemaining]
|
||||||
|
cp a, 0
|
||||||
|
jr nz, :+
|
||||||
|
ld a, MODE_DELAY
|
||||||
|
ld [wMode], a
|
||||||
|
; No fall through this time.
|
||||||
|
|
||||||
|
|
||||||
: jr drawStaticInfo
|
: jr drawStaticInfo
|
||||||
|
|
Loading…
Reference in New Issue