mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
examples/blocks: Bug fix: moving piece never landed (#178)
This commit is contained in:
parent
8dc3c2fb70
commit
65a8d4013a
@ -311,9 +311,7 @@ func (s *GameScene) Update(state *GameState) error {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if moved {
|
if !s.field.Flushing() && !s.field.PieceDroppable(piece, s.currentPieceX, s.currentPieceY, angle) {
|
||||||
s.landingCount = 0
|
|
||||||
} else if !s.field.Flushing() && !s.field.PieceDroppable(piece, s.currentPieceX, s.currentPieceY, angle) {
|
|
||||||
if 0 < state.Input.StateForDown() {
|
if 0 < state.Input.StateForDown() {
|
||||||
s.landingCount += 10
|
s.landingCount += 10
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user