mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
parent
911750c4a6
commit
a159f55520
@ -206,7 +206,7 @@ func (g *Game) drawGroundImage(screen *ebiten.Image, ground *ebiten.Image) {
|
||||
// z is in [2, -1]
|
||||
rate := float64(j) / float64(ph)
|
||||
z := (1-rate)*2 + rate*-1
|
||||
if z <= 0 {
|
||||
if z <= 1e-3 {
|
||||
break
|
||||
}
|
||||
op := &ebiten.DrawImageOptions{}
|
||||
|
Loading…
Reference in New Issue
Block a user