mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-11 19:48:54 +01:00
parent
14e324ceff
commit
8803138464
@ -206,7 +206,8 @@ 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 <= 1e-3 {
|
||||
// Avoid too small z, or the scale (1/z) can be too big.
|
||||
if z <= 0.1 {
|
||||
break
|
||||
}
|
||||
op := &ebiten.DrawImageOptions{}
|
||||
|
Loading…
Reference in New Issue
Block a user