examples: Bug fix: import image/png explicitly (#500)

This commit is contained in:
Hajime Hoshi 2018-02-11 03:31:30 +09:00
parent a8148b968c
commit ba53475636
6 changed files with 6 additions and 0 deletions

View File

@ -19,6 +19,7 @@ package blocks
import ( import (
"image/color" "image/color"
_ "image/jpeg" _ "image/jpeg"
_ "image/png"
"math/rand" "math/rand"
"strconv" "strconv"
"time" "time"

View File

@ -18,6 +18,7 @@ package blocks
import ( import (
"image" "image"
_ "image/png"
"github.com/hajimehoshi/ebiten" "github.com/hajimehoshi/ebiten"
"github.com/hajimehoshi/ebiten/ebitenutil" "github.com/hajimehoshi/ebiten/ebitenutil"

View File

@ -18,6 +18,7 @@ package blocks
import ( import (
"image/color" "image/color"
_ "image/png"
"github.com/hajimehoshi/ebiten" "github.com/hajimehoshi/ebiten"
"github.com/hajimehoshi/ebiten/ebitenutil" "github.com/hajimehoshi/ebiten/ebitenutil"

View File

@ -17,6 +17,7 @@
package main package main
import ( import (
_ "image/png"
"log" "log"
"strconv" "strconv"

View File

@ -18,6 +18,7 @@ package main
import ( import (
"fmt" "fmt"
_ "image/png"
"github.com/hajimehoshi/ebiten" "github.com/hajimehoshi/ebiten"
"github.com/hajimehoshi/ebiten/ebitenutil" "github.com/hajimehoshi/ebiten/ebitenutil"

View File

@ -19,6 +19,7 @@ package main
import ( import (
"image" "image"
"image/color" "image/color"
_ "image/png"
"log" "log"
"strings" "strings"