mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-12 22:17: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]
|
// z is in [2, -1]
|
||||||
rate := float64(j) / float64(ph)
|
rate := float64(j) / float64(ph)
|
||||||
z := (1-rate)*2 + rate*-1
|
z := (1-rate)*2 + rate*-1
|
||||||
if z <= 0 {
|
if z <= 1e-3 {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
op := &ebiten.DrawImageOptions{}
|
op := &ebiten.DrawImageOptions{}
|
||||||
|
Loading…
Reference in New Issue
Block a user