ebiten: Remove the error returning value from NewImage

Updates #1380
This commit is contained in:
Hajime Hoshi
2020-10-06 00:33:05 +09:00
parent 54da0d9763
commit c6053bcf14
29 changed files with 153 additions and 243 deletions

View File

@@ -261,7 +261,7 @@ func main() {
},
camera: Camera{ViewPort: f64.Vec2{screenWidth, screenHeight}},
}
g.world, _ = ebiten.NewImage(worldWidth, worldHeight)
g.world = ebiten.NewImage(worldWidth, worldHeight)
ebiten.SetWindowSize(screenWidth*2, screenHeight*2)
ebiten.SetWindowTitle("Tiles (Ebiten Demo)")