mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 10:48:53 +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 {
|
||||
s.landingCount = 0
|
||||
} else if !s.field.Flushing() && !s.field.PieceDroppable(piece, s.currentPieceX, s.currentPieceY, angle) {
|
||||
if !s.field.Flushing() && !s.field.PieceDroppable(piece, s.currentPieceX, s.currentPieceY, angle) {
|
||||
if 0 < state.Input.StateForDown() {
|
||||
s.landingCount += 10
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user